toggle menu
Icrontic
Categories
Discussions
Best of Icrontic
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Best of Icrontic
Sign In
·
Register
×
Home
›
Nerdery
›
Software
Discussion
command line arguments
Title
Author
Category
(All)
Announcements
Gaming
Team Fortress 2
World of Warcraft
Minecraft
Backlog of Shame
Nerdery
Hardware
Software
Movies & TV
Lifestyle
Music
Fashion
Food & Drink
Fitness
Home & Auto
Community
Events
Trading Post
Folding@Home
search subcategories
search archived
Tags
What to search
discussions
comments
polls
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
command line arguments
will4more
February 2007
edited February 2007
in
Software
Hello,
Does anybody know how to use command line arguments in c to ask the user to enter first name, last name, gender, and age.
Thanks.
0
Comments
jared
College Station, TX
Icrontian
February 2007
edited February 2007
one solution could be using scanf
http://goforit.unk.edu/cprogram/c_016.htm
0
JB
Carlsbad, CA
February 2007
edited February 2007
look into argv.
0
jared
College Station, TX
Icrontian
February 2007
edited February 2007
Radeon_Man
wrote:
look into argv.
yeah with scanf you would have to run the program and then you could make it prompt for the information
using argv, as Radeon pointed out, you could do it all in one line
executeapp jared atchison M 21
/\ something like that!
good luck and cheers :cheers3:
0
Sign In
or
Register
to comment.
Comments
http://goforit.unk.edu/cprogram/c_016.htm
yeah with scanf you would have to run the program and then you could make it prompt for the information
using argv, as Radeon pointed out, you could do it all in one line
executeapp jared atchison M 21
/\ something like that!
good luck and cheers :cheers3: