Hey everyone.
I just recently started a class in C++ earlier this semester. I downloaded CodeLite so I could compile and run my programs. It downloaded and installed perfectly, So to test it out I took a simple program from my textbook that looks like this:
1 2 3 4 5 6 7 8 9
#include <iostream>
usingnamespace std;
int main()
{
cout << "Programming is ";
cout << "great fun!";
return 0;
}
I clicked the debug button, but nothing happened. Also tried F5, but still nothing. No errors, no actual build.
If someone could help with this that'd be great. I have programs to write for class
The code looks fine. Let me guess and ask that you try this:
1 2 3 4 5 6 7 8 9 10
#include <iostream>
usingnamespace std;
int main()
{
cout << "Programming is ";
cout << "great fun!";
system("PAUSE"); //maybe the console opens and closes too fast to see that it worked...
return 0;
}
Still nothing. I also tried using Dev C++ but when I try installing it, it gives me an error saying it can't initialize the plug ins directory. Very frustrating.
Also VS express, whenever I try to open a new project, it says it cant find a file.