home *** CD-ROM | disk | FTP | other *** search
- Path: su3.in.net!news
- From: mave@in.net (John J. Maver, Jr.)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Help with an easy C issue.
- Date: 13 Jan 1996 02:30:59 GMT
- Organization: INTERNET Indiana
- Message-ID: <737.6585T1284T2078@in.net>
- Reply-To: mave@in.net
- NNTP-Posting-Host: pm3-26.in.net
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- This is going to be rediculously easy to solve. thanks in advance!!
-
- I have a value entered as a string like,
-
- char *mystring;
-
- printf("Enter your age>");
- scanf("%s",&mystring);
-
- Now I want it to be an int, so:
-
- myint=atoi(mystring);
-
- I mess around with the int:
-
- myint=myint+10;
-
- And I want to turn myint back into a string.
-
- HOW???
-
-
- I am writing a small GUI-based prog that has a string gadget and a text
- gadget. I want to be able to take an integer from the string-gad, change it,
- and then put the answer in the text-gad.
-
-
- Thank you,
-
-
-
-
-
-
-
-
- --
- <tsb> John J. Maver, Jr.
- <sb> mave@in.net
- <sb> A4000/040
- Pride invites calamity; humility reaps its harvest.
-
-