I'm very new to C++ and I keep getting a parse error for the bolded line below. I'm not understand why this is.

#include<iostream>
using namespace std;
int main()
{ int a;
cout<<"\nPlease make me easier to read..."; a=2+2
cout<<"\nLook what I can do:2+2" <<a;
cout<<"\nIcan do more, but only if you will help...";
cout<<"\n Thanks a lot\n";
return 0; }

this is the c# forum. try the c++ forum

Your error is that you do not have a semicolon after 'a=2+2'

C++ ignores whitespace and all statements must end with a semicolon

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.