Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 86,374 C++ Programmers. There are 1,424 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a C++ Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Code Review

 
Reply to this topicStart new topic

Code Review, Can't pull data

cooplis
post 8 May, 2008 - 06:57 AM
Post #1


D.I.C Head

**
Joined: 11 Sep, 2007
Posts: 77



This function is suppose to pull data from a file I got it to pull the first number but it won't find the next number. Help please.


CODE

void GetData(int& x, double& y)
    {
       char next;
       while (! in_stream.eof())
      {
     cout << "\n\n  Enter transaction code (0 to exit) ";
     in_stream>>(next);
     cout<< next;
            
     cout << "\n  Enter transaction amount ";
        in_stream>>(next);
       cout<< next;
       cout<< "\n";
        }
    }



Thank you,
Cooplis
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
Time is now: 5/17/08 02:46AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month