C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 6th, 2012, 02:42 PM
ebecker1234 ebecker1234 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 ebecker1234 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 22 sec
Reputation Power: 0
General - Please help!

So my CS teacher assigned this to us today. Now I am by no means asking anyone to do this for me! I just need help getting started because honestly, I have no idea where to start. Thanks!

Note: Do not use array!
Write a program that inputs from keyboard a number, call it N,
followed by N integer values.
You are to
1. Store the numbers in a new file that you create called
data1.dat.
2. Close the file
3. Open the file for reading.

4. Determine and print the numbers in the file followed by the largest and
smallest numbers appropriately labeled.
5. Have the program request 5 numbers, one at a time, from the
keyboard. For each number, see if it occurs in your data file.
If it does, print a message saying so. If it does not, then print
a message saying so. In the hand in test run for this step,
you are to have as part of the 5 numbers, 2 numbers that are
not present in the file, the first number in the file, the last
number in the file and any other number different from the
previous four numbers.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > General - Please help!


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap