Adding and subtracting.

This is a discussion on Adding and subtracting. within the C++ Programming forums, part of the General Programming Boards category; how do i add the value from a variable named money : to a variable named : ihave , and ...

  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, 01:25 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21