Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 3rd, 2006, 9:49 AM   #11
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 266
Rep Power: 4 Cache is on a distinguished road
Quote:
Originally Posted by nnxion
Hmm yeah, lol.
Can you tell me what I'm missing then? As far as I can see, the program will crash every time it's given a file with more than 102 lines. So what am I missin' here?
Cache is offline   Reply With Quote
Old May 3rd, 2006, 10:04 AM   #12
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by Cache
Can you tell me what I'm missing then? As far as I can see, the program will crash every time it's given a file with more than 102 lines. So what am I missin' here?
I don't know, I just said you were correct. :o
I meant that anyway.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old May 3rd, 2006, 10:15 AM   #13
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 266
Rep Power: 4 Cache is on a distinguished road
Quote:
Originally Posted by nnxion
I don't know, I just said you were correct. :o
I meant that anyway.
Ah, my bad. For some reason I thought you meant I was wrong, and I couldn't figure out why..lol. Sorry.
Cache is offline   Reply With Quote
Old May 3rd, 2006, 10:55 AM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I didn't say he had an error because of it, Ruben, I said it's problematic. It has nothing to do with whether you're using C or C++, but which functions you're using and how you use them. He DOES have possible validity problems as it stands, though. Consider whether his last text is followed by no, one, two, or whatever newlines.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 4th, 2006, 7:46 AM   #15
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
AWESOME.

Thanks for you help guys I've just managed to get 60,000 entries from a text file.

I think for once, an idea might actually work!!!


Oh, I have cursed it now for sure!!!!


Thanks again Ade
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:09 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC