Hey all. I'm new to C++ and this code I'm working on is my first "project" if you will. It's not complex at all, but I can't figure out where I'm going wrong. Every time I try to compile it I get the error: C:\Dev-Cpp\main.cpp In function `int main()': . Here's the code:
#include <iostream>
using namespace std;
int main ()
{
int a;
cout<< "Please enter a number: ";
cin>> int a;
int b;
cout<< "Please enter another number: ";
cin>> int b;
int c;
int a+int b= int c;
cout<< "The sum of the two numbers you entered is: " << int c << "\n";
return 0
}
The underlined/bolded line is where I'm getting the error. I've googled this and poked around these forums, but I haven't found a fix.