Well i use Dev-c++ 4.9.9.2 for programming..i m using it from last two years...recently i learned java and saw that all java programs are run through command prompt. I tried tha same in c++. i saved my program in dev-cpp/bin .but i am not able to do this..what is the exact procedure please tell me.. and How to pass command line argument. Is there any limitation on the type of arguments passed to main. like i saw somewhere int main(int argc,string args[])
rajatC
-1
Junior Poster
Recommended Answers
Jump to PostHere's a couple links to command line argument help:
http://malun1.mala.bc.ca:8080/~wesselsd/csci161/notes/args.html
http://www.cprogramming.com/tutorial/lesson14.htmlAs to running your program, be sure you opening the command window in the folder where the .exe file …
Jump to Poston linux, i would do
# g++ -o foo foo.cpp # ./foo this is a test program
Jump to Postthanks for the links...they are really useful...
but my problem is that i dont know what are commands to compile and run the cpp program..ok see
steps are
1.save file in bin
2.run command prompt
3. type incd c:\dev-cpp\bin
now i m in the same directory where the …
All 9 Replies
vmanes
1,165
Posting Virtuoso
rajatC
-1
Junior Poster
bugmenot
25
Posting Whiz in Training
iamthwee
rajatC
-1
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
AlexOverLord
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
joaquince
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.