I am just starting to teach myself C++ and i have no coding experience so please bear with me on this if I ask you to explain your reasoning behind your response.
My code is:
// operating with varables
#include <iostream>
using namespace std;
//declarations
char STAR;
int PRIME = 71;
//begin main body
int main ()
{
int count, sum, ex, num;
sum = count + PRIME;
num = count * 1 + 2;
(sum + count = ex);
ex = sum * count;
count = 25.67;
cout << " Count = " << count << ", Sum = " << sum << ", Prime = " << PRIME << endl;
return 0;
}
Debug errors received:
Error 1 error C2106: '=' : left operand must be l-value (error on line in bold)
Warning 2 warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
Let me know what you all think.