Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Extreme newbie
Index -> Programming, C++ -> C++ Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tony




PostPosted: Sun May 04, 2008 1:26 pm   Post subject: RE:Extreme newbie

he meant that using the command prompt is a preferred way to starting your program

code:

cd "C:/path/to/app folder"
./app_name.exe


Since this is the type of an application you are developing.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Steven Toews




PostPosted: Sun May 04, 2008 6:31 pm   Post subject: RE:Extreme newbie

He meant run theprogram while inside of the command prompt.. example: run>>cmd>>cd desktop/ >> programname.exe
Newguy




PostPosted: Sun May 04, 2008 7:55 pm   Post subject: Re: RE:Extreme newbie

Steven Toews @ Sun May 04, 2008 6:31 pm wrote:
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. Smile

On a side note. Very good and useful forum here and the members seem to be very helpful. Very Happy

Also on another side note. Razz Do any computer classes after grade 10 teach C++? Is it school dependant? Do ALL schools teach Java?
Tony




PostPosted: Sun May 04, 2008 8:11 pm   Post subject: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 19 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: