-
June 5th, 2011, 01:59 PM
#1
Beginning C++
I am beginning to code in C++ and got an assignment from school. I need some help and direction on how to go about this.
I have an input file input.txt and each line contains 5 nonempty strings separated by white spaces. I need to give a C++ function to verify if the total number of characters of every line is smaller or equal to 65.
Thanks
-
June 5th, 2011, 02:45 PM
#2
Re: Beginning C++
Originally Posted by dkbose
I am beginning to code in C++ and got an assignment from school. I need some help and direction on how to go about this.
What specific problem are you having?
I have an input file input.txt and each line contains 5 nonempty strings separated by white spaces.
Do you know how to open a file? Read a file? String handling? What exactly are you having trouble with?
You also need to show what code you have, or you'll get the patented Skizmo click as a response:
http://www.codeguru.com/forum/showpo...83&postcount=2
Regards,
Paul McKenzie
Last edited by Paul McKenzie; June 5th, 2011 at 02:48 PM.
-
June 7th, 2011, 06:14 AM
#3
Re: Beginning C++
Can I just say I can give you that answer , however if I do you will never learn , as a rule discover it yourself is more fun and stays with you , than someone telling you.
-
June 7th, 2011, 06:15 AM
#4
Re: Beginning C++
you can start with,
unsigned char and std::fstream
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
|
Click Here to Expand Forum to Full Width
|