I just got into C++ prgramming and am trying to start simple by making a simple console application that takes two integers and adds them. I have no clue what is wrong with this code, although it is probly a simple fix I have no clue what im doin.
#include <iostream>
using namespace std;
int main()
{
int firstnumber;
int secondnumber;
int answer;
cout<<"Enter an integer: ";
cin>>firstnumber;
cout<<"Enter a second integer: ";
cin>>secondnumber;
do
{
firstnumber+secondnumber==answer;
}
cout<<"The sum is: "<<answer;
return(0);
}
I am using Dev C++ compiler. It says there is a parse error in the bolded line. I dont know where it is, probably becuase I dont know wat a parse error is. Someone please help.