Search found 158 matches

by wtetzner
Sun Feb 22, 2009 1:44 am
Forum: Programming Discussion
Topic: Command Line Arguments in C++
Replies: 10
Views: 942

Re: Command Line Arguments in C++

Haha, I just realized you might be actually typing the ">" in ">test.exe".
The ">" is just supposed to represent the prompt.
Just type: test.exe
to run the program.

Sorry about that.

-Walter
by wtetzner
Sat Feb 21, 2009 2:44 am
Forum: Programming Discussion
Topic: Command Line Arguments in C++
Replies: 10
Views: 942

Re: Command Line Arguments in C++

Hmm, I just compiled your code and it runs perfectly. What exactly are you doing when you run it from the command line? And what error are you getting?

Could you copy and paste the output after running the program from the prompt?
by wtetzner
Fri Feb 20, 2009 10:20 am
Forum: Programming Discussion
Topic: help, C problem
Replies: 4
Views: 642

Re: help, C problem

Could you post your main() function too? Also, you need to return an int from wait(), or change it to void wait().
by wtetzner
Thu Feb 19, 2009 10:36 pm
Forum: General/Off-Topic
Topic: I love
Replies: 31
Views: 3519

Re: I love

Its alot better than bcis! i fucking hate bcis
British Cardiovascular Intervention Society?
by wtetzner
Thu Feb 19, 2009 10:25 pm
Forum: Game Development
Topic: Caution: Extreme noobishness.
Replies: 16
Views: 2254

Re: Caution: Extreme noobishness.

DirectX works natively with C/C++.
DirectX SDK
by wtetzner
Thu Feb 19, 2009 8:36 pm
Forum: Programming Discussion
Topic: Command Line Arguments in C++
Replies: 10
Views: 942

Re: Command Line Arguments in C++

Ok i get the part about how you call the program through the command prompt now but i'm having trouble calling the function. When i try it i get test.exe is not a recognizable command. OK, when you open the command prompt, type: >cd [Path to folder containing executable file] and press enter. then ...
by wtetzner
Wed Feb 18, 2009 8:56 pm
Forum: Programming Discussion
Topic: Command Line Arguments in C++
Replies: 10
Views: 942

Re: Command Line Arguments in C++

Command line arguments are the parameters you pass in to your program when running it from a command prompt. For example, if you program executable file is a.out, you would call it like this: $./a.out If you want to pass an argument to it, say your name, you could do this: $./a.out myname where myna...