ack, need help!
ok, so I just started my trek to learn c++ today, i got a compiler, Dev-C++, and ive read several tutorials, so I understand very raw basics such as functions, and variables, and all stuff related to variables like operators, integers, floating point numbers, and thats about it besides cout, and iostream.h but
but anywho now that im learning code, I''d like to put some of it to use! you know, hands on learning, but I havent the foggiest idea how to use this damn compiler.
So how do I get the following code into a compiler(just an example):
#include <iostream.h>
int main() {
/
cout << "Hello, World!" << endl;
return 0;
}
and how would I turn it into a program, or be able to see the code at work instead of just stare at it all day long? if anyone will plz reply with a short tutorial answering my questions that would be great, and if your just going to send me to a different site, or whine. Dont bother, just reply if your willing to explain it for me yourself!
Thanks a million to whoever helps!
Yeah, sure. Add this:
Dev-C++ doesn't lock the console open, so that is necessary to see your program's output. Then, go 'Execute'->'Compile & Run' from the menus at the top. The should do ya.
EDIT: source tags
EDIT: stupid source tags
[edited by - ze_jackal on August 28, 2002 3:27:55 AM]
[edited by - ze_jackal on August 28, 2002 3:29:11 AM]
//add this at the top (with #include <iostream>)#include <cstdlib>//add this before 'return(0);'system("PAUSE");
Dev-C++ doesn't lock the console open, so that is necessary to see your program's output. Then, go 'Execute'->'Compile & Run' from the menus at the top. The should do ya.
EDIT: source tags
EDIT: stupid source tags
[edited by - ze_jackal on August 28, 2002 3:27:55 AM]
[edited by - ze_jackal on August 28, 2002 3:29:11 AM]
You want to start by creating a project. Dev-C++ will ultimately provide you with a source file into which you''ll want to type your "Hello World" program. Then you''ll want to select the "compile" or "build" option. To see the code at work you''ll need to get a debugger. Iirc, bloodshed provides a version of the Insight debugger. Beyond that, the best course that you can take is too read all of the documentation that came with the package and all that you can from the bloodshed website. The more you know about the compiler, the better coder you will be. It''s not a quick process, but don''t fear it. You have to walk before you can run, you know? Sorry I can''t be more helpful than that. I have Dev-C++ installed, but I don''t use it that much so I''m not totally acquainted with it myself.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
Thanks for the help, I really wanted to use MSVC++6, and i bought it a year or two ago, yesterday I went searching through my millions of CDs, I was actually lucky enough to find it! But when I went to install it, I realized that I need a keycode, which I dont have, since I dont have the case anymore is their anyway I could still use MSVC++6?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement