Thread: help me in conversion using pointer

  1. #1

    Unhappy help me in conversion using pointer

    hey guys help me in my conversion in dollar to peso nd peso to dollar i cant make it for just one night to analyze im not good in programming actually , im still studying right now this is my assignment .plssssss do help me........

  2. #2
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    We help those who help themselves. Please post your attempts first and we'll guide you through.
    Try not.
    Do or do not.
    There is no try.

    - Master Yoda

  3. #3
    You would need the exchange rate (i.e. - the value of 1 peso the the USD). Go here to work this out.

  4. #4
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    1.00 MXN Mexico Pesos = 0.102659 USD United States Dollars

    1 peso = .102659 * 1 dollar

    1 dollar = (1/.102659) * 1 peso

    replace 1 with any number you want and plug it in to get
    the values on both sides...

    dollars = (1/.102659) * pesos

    where pesos is a variable whose values are known
    and do it reverse too

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quick Pointer Question
    By gwarf420 in forum C Programming
    Replies: 15
    Last Post: 06-01-2008, 03:47 PM
  2. Question About Pointer To Pointer
    By BlitzPackage in forum C++ Programming
    Replies: 2
    Last Post: 09-19-2005, 10:19 PM
  3. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 11:31 PM
  4. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM
  5. Replies: 2
    Last Post: 02-07-2002, 09:39 AM