| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Adam, In C++, you don't have to put your variables at the start of code blocks. In fact, you shouldn't, because objects may perform initialization when you declare them. That is what is happening in your case. In C++, variable scope is much more significant than in C. Lookup constructors and destructors. If you move the line "ifstream fin("input.txt");" just before the line " fin.getline(arr_words, 49); //using getline to get whole words" it should work slightly better. You still have problems, but I'll leave those as an exercise for the programmer. John On Feb 7, 2007, at 7:30 PM, Adam wrote: Hello all, |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >Using fstream (From: Adam <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.