V
vsgdp
Why does the first statement output nonsense, but not the second. That
is, why aren't the statements equivelement?
#include<iostream>
#include <cmath>
using namespace std;
int main()
{
cout.operator <<("sin(2)=").operator <<(sin(2)).operator <<(endl);
cout << "sin(2)=" << sin(2) << endl;
}
is, why aren't the statements equivelement?
#include<iostream>
#include <cmath>
using namespace std;
int main()
{
cout.operator <<("sin(2)=").operator <<(sin(2)).operator <<(endl);
cout << "sin(2)=" << sin(2) << endl;
}