Mar 4, 2013 at 3:42pm Mar 4, 2013 at 3:42pm UTC
Okay im trying to compile this and run it im just trying to run this code
and i dont have admin rights when i try to compile and run it says source file not compiled. What is Source file ?
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Users\Tyre.Pickett\Desktop\Untitled3.cpp" -o "C:\Users\Tyre.Pickett\Desktop\Untitled3.exe" -g3 -g3
Execution terminated
/* my second program in C++
with more comments */
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World! "; // prints Hello
World!
cout << "I'm a C++ program"; // prints I'm a
C++ program
return 0;
}
Last edited on Mar 4, 2013 at 6:09pm Mar 4, 2013 at 6:09pm UTC
Mar 4, 2013 at 4:09pm Mar 4, 2013 at 4:09pm UTC
The comments need to be preceded by //
// World!
and
// C++ program
Mar 4, 2013 at 4:09pm Mar 4, 2013 at 4:09pm UTC
Does it compile if you comment out this line:
cout << "I'm a C++ program" ; // prints I'm a C++ program
?
Edit :
I just assumed the OP c/p'ed hid code like that. With comments on each line without the '//'.
Last edited on Mar 4, 2013 at 4:11pm Mar 4, 2013 at 4:11pm UTC
Mar 4, 2013 at 4:23pm Mar 4, 2013 at 4:23pm UTC
Its still not working its says source file not compiled for testing give me a short code that works for you and post it here and i'll see if it works
Mar 4, 2013 at 4:38pm Mar 4, 2013 at 4:38pm UTC
Dev-C++ no admin rights @L B i can compile but i cant run it says source file not compiled
Mar 4, 2013 at 4:49pm Mar 4, 2013 at 4:49pm UTC
im guessing windows then?
screw around with the build options and see if you can get it to remove the comments
Mar 4, 2013 at 5:17pm Mar 4, 2013 at 5:17pm UTC
yes windows 7
Last edited on Mar 4, 2013 at 5:53pm Mar 4, 2013 at 5:53pm UTC