I'm trying just to mkae a simple while loop and I am getting the following errors.....
c:\Documents and Settings\Philip McCarthy\My Documents\Visual Studio Projects\messin\messin.cpp(32) : error C2001: newline in constant
c:\Documents and Settings\Philip McCarthy\My Documents\Visual Studio Projects\messin\messin.cpp(37) : error C2143: syntax error : missing ';' before 'return'
c:\Documents and Settings\Philip McCarthy\My Documents\Visual Studio Projects\messin\messin.cpp(32) : error C3861: 'setw': identifier not found, even with argument-dependent lookup
Here's the code I can't seem to figure out what I'm missing =/
Code:
#include <iostream>
using namespace std;
const int INCREMENT_VALUE = 5;
int main()
{
int count;
int result;
count = 0;
result = 150;
cout<<"Column Heading: "<<"Count "<<" result "<<endl;
cout<<" Output: "<<count<<" "<<result<<endl;
while (result < 0)
{
count = (result – count * count);
cout<<" Output: "<<count<<" "<<result<<endl;
}
cout<<setw(30)<<"test<<endl;
return 0;
}
For some reason I can't use setw() ??