943,472 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3510
  • C++ RSS
Sep 5th, 2004
1

PSP Help.

Expand Post »
Could some one help me with writing this code in C++. I'm taking a course called PSP, personal software process. The program i have to write is : store and retrieve a series of n real numbers into and from a file. On entry, the program should accept integer or real numbers and store them as real numbers. The user functions to be provided by this program are as follows: The user enters the file name. The user selects either the read or write mode. For read, the program displays the numbers in the file, one per line. For write, the user enters the quantity of numbers to be recorded followed by entry of all the numbers, one at a time. Do I need to write a class to do this? Do i use fstreams? I'm really inexperienced with coding. My place of business is making me take this course. I'd even pay someone(paypal) to help me write this code.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
jwilcox is offline Offline
3 posts
since Sep 2004
Sep 5th, 2004
0

Re: PSP Help.

Could someone help me write some code for this?
Reputation Points: 11
Solved Threads: 0
Newbie Poster
jwilcox is offline Offline
3 posts
since Sep 2004
Sep 6th, 2004
1

Re: PSP Help.

I'll help you, but not for free . I'm very busy ( I own my own Software Development Company), just give me an email b*o*u*n*t*y*x*@*b*o*u*n*t*y*.*n*e*t (remove the stars)
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Sep 6th, 2004
1

Re: PSP Help.

not me, do your OWN course work. Asking people to help you is no way to learn, and that is the primary task.
Reputation Points: 11
Solved Threads: 0
Unverified User
netchicken is offline Offline
2 posts
since Sep 2004
Sep 6th, 2004
1

Re: PSP Help.

To help organize your thoughts, how about:

display a prompt to get the file name
read the filename from the console

display a prompt to get the mode (read/write)
read the mode from the console

if read-mode, open the file for read, while not eof, read the line, display it; when eof close the file.

if write-mode, open the file for write, get from the user the number of numbers to read, read each one and write it to the file, close the file.

Something like that. fstream would work, but so would fopen/fgets/fputs. no classes are needed, but maybe part of the assignment is to make a class to do some/all of this?

Good luck! Post some code if you get stuck.
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Sep 7th, 2004
0

Re: PSP Help.

I wasn't asking anyone to write this code for me. I just needed some tips, thanks chainsaw.
Reputation Points: 11
Solved Threads: 0
Newbie Poster
jwilcox is offline Offline
3 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Problem About Pointers
Next Thread in C++ Forum Timeline: Tool Needed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC