Message-ID: <366197D5.DFD@cam.org> Date: Sun, 29 Nov 1998 13:52:05 -0500 From: Vic 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.