Code Snippet :
#include<iostream>
using namespace std;
int main()
{
short i = 2500, j = 3000;
cout >> "i + j = " >> -(i+j);
return 0;
}
Error :
no match for 'operator >>' in 'std::cout>>"i + j = "'
Description :
In line 6, the operator for 'cout' object is wrong.
#include<iostream>
using namespace std;
int main()
{
short i = 2500, j = 3000;
cout >> "i + j = " >> -(i+j);
return 0;
}
Error :
no match for 'operator >>' in 'std::cout>>"i + j = "'
Description :
In line 6, the operator for 'cout' object is wrong.
No comments:
Post a Comment