>It's a fairly large program and i can try to attach it to this >email 
>if you or anyone else would like to look through it or think it >might 
>help
Just post the relevant functions.
This might also help you clean up code--yahoogroups doesn't accept attachments, 
or this list doesn't, anyway.
You can just section things off in to functions which might help, but also look 
at what I asked before. "If you turn on all warnings, do you get warnings?"
Also before that loop, for debugging purposes, do something like:
for (int i=0;i<10;i++)
{
cout << names[i] << endl;
}
to see if your string array is getting filled.


Thanks,
_|_|_|_|_|  _|        _|_|_|_|            
    _|      _|_|_|    _|          _|_|_|  
    _|      _|    _|  _|_|_|    _|        
    _|      _|    _|  _|        _|        
    _|      _|    _|  _|_|_|_|    _|_|_|  
Visit TDS for quality software and website production
http://tysdomain.com
msn: [EMAIL PROTECTED]
aim: st8amnd2005
skype: st8amnd127
  ----- Original Message ----- 
  From: Paul David 
  To: [email protected] 
  Sent: Sunday, October 05, 2008 10:54 AM
  Subject: Re: [c-prog] file output


  It's a fairly large program and i can try to attach it to this email 
  if you or anyone else would like to look through it or think it might 
  help

  On Oct 5, 2008, at 9:52 AM, Tyler Littlefield wrote:

  > >Printed where?
  > I assume the file. it would help a ton if we had the code to look at 
  > though, and not just a loop with no variable declarations.
  >
  > Thanks,
  > _|_|_|_|_| _| _|_|_|_|
  > _| _|_|_| _| _|_|_|
  > _| _| _| _|_|_| _|
  > _| _| _| _| _|
  > _| _| _| _|_|_|_| _|_|_|
  > Visit TDS for quality software and website production
  > http://tysdomain.com
  > msn: [EMAIL PROTECTED]
  > aim: st8amnd2005
  > skype: st8amnd127
  > ----- Original Message -----
  > From: andrew clarke
  > To: [email protected]
  > Sent: Sunday, October 05, 2008 10:50 AM
  > Subject: Re: [c-prog] file output
  >
  > On Sat 2008-10-04 20:14:54 UTC-0700, Paul David ([EMAIL PROTECTED] 
  > ) wrote:
  >
  > > ofile << highscores[i] << endl;
  > > ofile << names[i];
  >
  > Did you intend to leave out the second "<< endl;" here?
  >
  > > In this code numhighscores is an int, highscores is an array of 
  > ints,
  > > names is an array of strings, ofile is an ofstream from the fstream
  > > header file
  >
  > In future please provide the full code.
  >
  > > Why are the highscores printed but not the names?
  >
  > Printed where?
  >
  > __________ NOD32 3495 (20081004) Information __________
  >
  > This message was checked by NOD32 antivirus system.
  > http://www.eset.com
  >
  > [Non-text portions of this message have been removed]
  >
  >
  > 

  [Non-text portions of this message have been removed]



   

  __________ NOD32 3495 (20081004) Information __________

  This message was checked by NOD32 antivirus system.
  http://www.eset.com


[Non-text portions of this message have been removed]

Reply via email to