Date: Mon, 21 Feb 2000 22:49:22 +0500 (MVT) From: Prashant TR X-Sender: prashant_tr AT midpec DOT com To: Nite Hawk cc: djgpp AT delorie DOT com Subject: Re: Newbies need help too! In-Reply-To: <88q38n$6cf$1@news3.infoave.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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");