delorie.com/archives/browse.cgi | search |
Message-ID: | <366197D5.DFD@cam.org> |
Date: | Sun, 29 Nov 1998 13:52:05 -0500 |
From: | Vic <tudor AT CAM DOT ORG> |
X-Mailer: | Mozilla 3.0Gold (Win95; I) |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
To: | djgpp AT delorie DOT com |
Subject: | Re: argv and Djgpp Yahoo club |
References: | <005c01be1bbf$b00d07a0$5df5ffc2 AT default> |
Reply-To: | djgpp AT delorie DOT com |
Susanne Hassing wrote: > > How do you use the argv command too make a programm like this: > > c:\>calc 21 3 > 21-3=18 > 21+3=24 > 21/3=7 > 21*3=63 a=atoi(argv[1]); b=atoi(argv[2]); argv[1] contains 21, atoi converts a string to integer. the operations are as usual a-b a+b etc.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |