How would that look in code? I tried this but got errors:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#include <iostream>
#include <string>
#include <fstream>
#include <cstdlib>
using namespace std;
int Time = 0;
int main()
{
while(Time <1){
Time++;
for(Time){
cout << Time;
}
}
return 0;
}
|
Errors:
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp||In function 'int main()':|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|16|error: expected ';' before ')' token|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|18|warning: statement has no effect|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|19|error: expected primary-expression before '}' token|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|19|error: expected ';' before '}' token|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|19|error: expected primary-expression before '}' token|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|19|error: expected ')' before '}' token|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|19|error: expected primary-expression before '}' token|
C:\Users\Chay Hawk\Desktop\C++ Projects\C++\main.cpp|19|error: expected ';' before '}' token|
||=== Build finished: 7 errors, 1 warnings ===|