RSS Forums RSS
Please support our C++ advertiser: Programming Forums

array/funtion problem, please help

Join Date: Jul 2007
Location: Bristol, England
Posts: 8
Reputation: spider_pig is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
spider_pig spider_pig is offline Offline
Newbie Poster

Re: array/funtion problem, please help

  #5  
Jul 31st, 2007
Your code is some way short of a working solution.
I don't think you need a for loop in the main function, probably
a loop is needed in the data entry function. It is not clear whether
there is a set number of names to be entered or if the array is to be created dynamically as suggested in a previous post. If so then a while loop may be needed here eg
while (More)
{
cout << "Enter next name: ";
cin >> InString;
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:01 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC