Beginner learning C++?

I’m just attempting to make an effective program acquiring the scores of A FEW games and obtaining average ones.my program code is as follows:

#include

applying namespace an std;

int main()

int GAME1 = 1000;
int GAME2 = 550;
int GAME3 = 300;
int amount;
2 bottle avg;

cout << "Your best three rates are "<<GAME1, GAME2, GAME3<<".\n";
amount = (GAME1 + GAME2 + GAME3);
avg = sum/3;
cout << "Your overall score for everyone three playthroughs will be "<<sum<<".\n";
cout << "With your current average credit score being:"<<avg<<".\n";

return 0;

naturally remember I’m a newb on this nonetheless I keep qualifing for the error connected with error C2297:'<<':illegitimate, right operand includes type 'const char 3'

Any kind of help can be appreciated to help me discover.thanks

cout << "Your best three rates are "<<GAME1, GAME2, GAME3<<".\n";
modify to cout<<"Your major scores are "<<GAME1<<GAME2<<GAME3<<"\n";
i tried using it plus it worked.and have a shot at putting newlines between the results it might look tidier.
Ex:cout<<"Your best scores are generally "<<GAME1<<"\n"<<GAME2<<"\n"<<GAME3<<"\n"
hope i made it easier for you, Get care

try:
cout << "Your best three rates are "<< GAME1 << " "<< GAME2 << " " << GAME3<<".\n";

rather then:
cout << "Your best three rates are "<<GAME1, GAME2, GAME3<<".\n";

Leave a Reply