- #1
m0bius
- 15
- 0
Hey all, I decided to start learning some C++ and my book mentions compiling and running programs from the command prompt. I have taken a few classes in computer science, but those dealt mainly with java, along with some algorithms and data structures. Even though I have used computers since I was probably 6, I know nothing about the inner workings of them or how to use the command prompt. After some testing I was finally able to run a program from the command prompt, but the whole process seems very inefficient. Is there some advantage to using the command prompt or a point in learning how to use it?
So let's say I'm trying to compile my C++ program called prog1.c in the prompt. All the help online seems to require the use of Visual C++, but I'm using Code::Blocks for my compiler/IDE. I'm not even sure if I can do what I want in the prompt. Can you compile prog1.c, choose a new file extension for the compiled version, choose a folder to save it in, then run that file all using the prompt? I know I can do this easily through the Code::Blocks IDE but I'd like to learn how to use the prompt. Thanks for any help.
m0bius
So let's say I'm trying to compile my C++ program called prog1.c in the prompt. All the help online seems to require the use of Visual C++, but I'm using Code::Blocks for my compiler/IDE. I'm not even sure if I can do what I want in the prompt. Can you compile prog1.c, choose a new file extension for the compiled version, choose a folder to save it in, then run that file all using the prompt? I know I can do this easily through the Code::Blocks IDE but I'd like to learn how to use the prompt. Thanks for any help.
m0bius