Thread: Adding and subtracting.

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    23

    Question Adding and subtracting.

    how do i add the value from a variable named money : to a variable named : ihave , and then remove the value in a variable named : lost from the variable named : ihave

    anybody knows how to do this?

    .. zzz soooo tireed.

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    30

    That is very simple coding...

    ihave+=money;
    ihave-=lost;

    As simple as that.
    "You... Remarkably made it rain. Rain of blood." - Tomoe

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    23
    Thanks!
    A guy gave me the same code but backwards.

    His code didn't work.

    I'll try this one to see if it works.
    .. zzz soooo tireed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. subtracting fractions in classes
    By rushhour in forum C++ Programming
    Replies: 1
    Last Post: 03-18-2009, 07:26 PM
  2. Adding and subtracting time?
    By JCCC in forum C Programming
    Replies: 3
    Last Post: 03-29-2002, 02:25 PM