CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How to reference a value from earlier in your code?

  1. #1
    Join Date
    Mar 2012
    Posts
    1

    How to reference a value from earlier in your code?

    Hello there. Im taking a intro to programming and logic class. Im working on my final project. We have to write a program that makes reservations to a hotel. You ask if they want to make a reservation, how many nights, what kind of suite, if they need transportation, ect. Then at the very end you need to use all of there answers to create a bill for them. Maybe it is just the stress of finals, or the fact that I am HORRIBLE at programming. But for the life of me I can not figure out how to make it work. Ive got the whole program set up except the final part where I need to do the calculations.

    So to sum things up I guess my question is, how do I get those responses that were entered earlier, so I can use them for the calculations.

    If you could help me out I would appreciate it so much. Thank you!!

  2. #2
    Join Date
    May 1999
    Location
    DELAWARE, USA
    Posts
    9,917

    Re: How to reference a value from earlier in your code?

    Use variables to store responses.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)