Coding Thread, help with simple code in Coding and Web Development; Hi,
I'm trying to revise my "knowledge" in C++ and program probably worked is doing something stupid. Program should read ...
-
19th July 2008, 10:51 PM #1
-
-
IDG Tech News
-
20th July 2008, 01:33 AM #2 
Originally Posted by
greguk
I'm trying to revise my "knowledge" in C++
It's been a while since I did any C++, I should do this too...
Instead of that program writes to file details of first person from file either she got higher score than user or not
That's because that's exactly what you tell it to do:
Code:
InFile.open("Records.txt");
InFile >> FirstName >> LastName >> Score;
OutFile.open("HighScores.txt");
OutFile << FirstName << LastName << Score; Try just:
Code:
InFile.open("Records.txt");
OutFile.open("HighScores.txt"); Lab 5 question 1? Are you sure this isn't homework?
Note that this is Windows-specific.
I bet it's simple but i'm groping.
Maybe that's your problem - try keeping both hands on the keyboard next time, aids concentration. 
--
David Hicks
-
-
20th July 2008, 05:40 PM #3
-
SHARE: 
Similar Threads
-
By SimpleSi in forum EduGeek Joomla 1.5 Package
Replies: 7
Last Post: 25th May 2008, 11:21 AM
-
By Jona in forum Web Development
Replies: 2
Last Post: 2nd May 2008, 02:43 PM
-
By Scotmk in forum Web Development
Replies: 2
Last Post: 5th March 2008, 12:14 PM
-
By laserblazer in forum General Chat
Replies: 34
Last Post: 12th October 2007, 12:26 PM
-
By adamyoung in forum Hardware
Replies: 3
Last Post: 21st December 2006, 08:52 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules