no matter how many times I compile this thing it won't run, even if I make it compile and run it doesn't do it! What is going on?
someone help me here because I can't really do anything till I get this sorted
no matter how many times I compile this thing it won't run, even if I make it compile and run it doesn't do it! What is going on?
someone help me here because I can't really do anything till I get this sorted
The question is kind of vague, are there any errors when you compile the code?
yeah that's very vague. Maybe if you told us what you're compiling, what your compiling it with and where you are compiling it (OS).
http://cboard.cprogramming.com/showthread.php?t=13473
Read that and then post your code correctly. Also, as mentioned above, post the errors you are given (including details such as the line number they occur on), your compiler and your OS.
I tried compiling it myself, and I couldn't get it to run either--I'm stumped.no matter how many times I compile this thing it won't run
Last edited by 7stud; 04-06-2005 at 12:22 AM.
Ok so it compiles but doesn't run?
I think I might have an inkling as to what's going on. Ok firstly, I'm gonna have to make a few assumptions.
My first assumption is that you are using Devshed++, which you probably downloaded from the net as freeware?
My second assumption is that you are a newbie so your first program
will probably be the classic *hello world*.
You say that in some circumstances you get in to compile but it doesn't run.
Try this:
Code:#include<iostream> using namespace std; //this is always needed int main() { cout<<"Hello World"<<endl; int stop; cin>>stop; // I suspect this is what your problem is // You need to pause it so you can see what you got // Remember in devshed the 'return 0;' doesn't pause // it in fact you don't even need it. }
thanks the example shown must have been incomplete or something then.