ok im new to C++ but when i try to run a small program i made the program executes aand closes automaticly, is that a thing with XP or a problem with my program? it runs fine from inside of the programming environment but not outside
here is the code:
// TrialRun.cpp
// Our First program
#include <iostream>
using namespace std;
int main()
{
?cout << "Some people think programming windows"
? ?<< endl
? ?<< "is like nailing jello to the ceieling..."
? ?<< endl
? ?<< "easy with the right nails."
? ?<< endl << endl;
?return 0;
}
Question
AltecXP
ok im new to C++ but when i try to run a small program i made the program executes aand closes automaticly, is that a thing with XP or a problem with my program? it runs fine from inside of the programming environment but not outside
here is the code:
// TrialRun.cpp // Our First program #include <iostream> using namespace std; int main() { ?cout << "Some people think programming windows" ? ?<< endl ? ?<< "is like nailing jello to the ceieling..." ? ?<< endl ? ?<< "easy with the right nails." ? ?<< endl << endl; ?return 0; }Link to comment
Share on other sites
9 answers to this question
Recommended Posts