| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 21 Feb 2000 22:49:22 +0500 (MVT) |
| From: | Prashant TR <prashant_tr AT yahoo DOT com> |
| X-Sender: | prashant_tr AT midpec DOT com |
| To: | Nite Hawk <malcolm3 AT bulloch DOT net> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Newbies need help too! <smile> |
| In-Reply-To: | <88q38n$6cf$1@news3.infoave.net> |
| Message-ID: | <Pine.LNX.4.10.10002212247050.998-100000@midpec.com> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | dj-admin AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sun, 20 Feb 2000, Nite Hawk wrote: > 1. when I try to divide "taxPercent/100" it's value turns out to be "0" (I'm > dividing a whole # such as 6 by 100 to get .06) That's because you are dividing an interger by another integer. So, the result would be an integer. You need to do 6*1.0/100 to get .06. > 2. How do I get a variable to contain a name? (I'm trying to get a name as a > variable, is this possible?) char yourName[100]; To store the name: strcpy(yourName, "Nite Hawk");
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |