I need a help with understanding the following:
I overloaded << operator. I wrote a test program. I didnt include the "using namespace std" code. But the program worked out well.
#include <iostream>
#include "fraction.h"
//using namespace std;
int main(void)
{
//constructing two fractions
Fraction a(4, 2);
Fraction b(17, 11);
//modifying them that is entering a fractions from keyboard
cin>>a;
cin>>b;
//computing product and quotient and printing them using cout
cout<<a*b<<endl;
cout<<a/b<<endl;
}
But as you can see I used "endl" which is from standard namespace. Can you explain me the "paradox" I m getting here.
P.S I didnt include .h and .cpp file because I think they are irrelevant.