
-----------------------------------
Newguy
Sat May 03, 2008 3:04 pm

Extreme newbie
-----------------------------------
Ok I am extremely new to C++ and I managed to get my hands on a copy of Visual Basic C++ (the latest version) for free. I created a new project as a "General" prject adn it is empty. Then I added a new item as a .cpp file. Then I entered basic code to display a message as:

#include 
using namespace std;

int main ()
{
	cout  run -> cmd
I know what the command prompt is I don't know what he meant by "using the command line"

-----------------------------------
Tony
Sun May 04, 2008 1:26 pm

RE:Extreme newbie
-----------------------------------
he meant that using the command prompt is a preferred way to starting your program


cd "C:/path/to/app folder"
./app_name.exe


Since this is the type of an application you are developing.

-----------------------------------
Steven Toews
Sun May 04, 2008 6:31 pm

RE:Extreme newbie
-----------------------------------
He meant run theprogram while inside of the command prompt.. example: run>>cmd>>cd desktop/ >> programname.exe

-----------------------------------
Newguy
Sun May 04, 2008 7:55 pm

Re: RE:Extreme newbie
-----------------------------------
He meant run theprogram while inside of the command prompt.. example: run>>cmd>>cd desktop/ >> programname.exe
No I know how to run the program inside command prompt I just didn't know if he meant C++'s command line window at the bottom or command prompt. Also I tried running it through command prompt and it still closes but it doesn't close when I use system ("PAUSE") which means it is going on to return 0; and quiting. Therefore I guess it was a problem with my code. If you think not than please tell me what else is wrong. :) 

On a side note. Very good and useful forum here and the members seem to be very helpful. :D

Also on another side note. :P Do any computer classes after grade 10 teach C++? Is it school dependant?  Do ALL schools teach Java?

-----------------------------------
Tony
Sun May 04, 2008 8:11 pm

RE:Extreme newbie
-----------------------------------
What should happen is that you open the command prompt, run the application, have it print the output, finish, exit. The command prompt should remain open. If your application is closing the otherwise open terminal, you are doing something wrong.

On your unrelated note -- it is school dependent. Some schools don't teach upper year CS at all.
