View Single Post
  #2 (permalink)  
Old December 12th, 2004, 02:14 PM
davekw7x davekw7x is offline
Authorized User
Join Date: Feb 2004
Location: , , .
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts

atoi() takes a c-style string (array of char, null-terminated)

You can use the c_str() member function of an ifstream to feed it:

  //getline (accfile, ucty); //<=== mistake? where is and what is ucty
  getline (accfile, na); // my guess, since you use na in the next statements
  atoi(na.c_str());  // <=== c-style string
This may get you to the point of debugging, I hope.


Reply With Quote