By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,513 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,513 IT Pros & Developers. It's quick & easy.

Reading numbers from a text file

P: 1
Create a notepad file named number.txt which consists of int type numbers separated with new lines on your hard disk. Write a program which read the numbers form this file and show them to screen, also display the total numbers in files and largest and smallest numbers to the screen.



Write a simple structure named Students. This structure consists of three variables Name, GPA and TotalMarks. Now write three variables of data type Students. Get value from user for these three students and show them on screen.
May 26 '07 #1
Share this Question
Share on Google+
2 Replies


DeMan
100+
P: 1,806
I think you might like to peruse the Posting Guidelines


Once you have read and understood them, you may also like to have a look at this here
May 26 '07 #2

nemisis
P: 64
Create a notepad file named number.txt which consists of int type numbers separated with new lines on your hard disk. Write a program which read the numbers form this file and show them to screen, also display the total numbers in files and largest and smallest numbers to the screen.
As DeMan said check the post guides and the link he has given will help you . If u still have trouble while building post it here.

Write a simple structure named Students. This structure consists of three variables Name, GPA and TotalMarks. Now write three variables of data type Students. Get value from user for these three students and show them on screen.
Again as DeMan said check POST RULES!!! now why did I bump into this which is EXACTLY same as yours but from a different user at an earlier time?
May 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.