Sublime Forum

C++& MinGW w/out output

#1

im haveing realy strage problem

im righting in c++ and i build the program and then run it but i get no output
(pic of program and results)
http://puu.sh/1O4Ty

my build thing is:

{ "path": "c:\\MinGW\\bin\\", "cmd": "mingw32-g++.exe", "-Wall", "-time", "$file", "-o", "$file_base_name"] }

my Program is:

[code]#include
#include

using namespace std;

int main(int argc, char* argv])
{
int lucky ;
cout << “Enter your lucky number and press return: " ;
cin >> lucky ;
for (int i=1; i<=10; i++) {
cout << i << " hello world” << endl ;
if ( i == lucky ) {
cout << “that was lucky!” << endl ;
} else {
cout << endl ;
}
}
}[/code]

Ps. im dyslexic so sry for the spelling

0 Likes