Originally Posted by
truetrini20
this question is part of an assignment, so i know i have to fix it so that it runs but im not sure
Without knowing what you are trying (or are supposed) to do, we cannot say any more than your compiler has told you. What I can do is give you an example of initialisation:
Code:
#include<iostream>
using namespace std;
int main()
{
int a = 1, b = 2;
cout << " a = " << a << " and b = " << b;
cout << "\n " << b << "\n" << a;
return 0;
}
Notice that I have indented the code to make it more readable.