![]() |
|
#1
|
|||
|
|||
testing word file "need help"CPP / C++ / C Code:
here is the test file contents...copy/paste and save it as test3.dat 12.34. .3 3..3 .3.4 ..8 .this test.this test.12.34 test1.this test1.12.34 compile the code and run it... "programname test3.dat" current result: filename : wtest3.dat COUNT | WORD ------+------ 1 | ..8 1 | .3 1 | .3.4 1 | .this 1 | 12.34. 1 | 3..3 1 | test.12.34 1 | test.this 1 | test1.12.34 1 | test1.this expected result shouldbe alexandro@alex#wordcount wtest3.dat filename : wtest3.dat COUNT | WORD ------+------ 1 | .3 1 | .3.4 2 | 12.34 2 | 3 1 | 8 2 | test 1 | test1 1 | test1.12.34 3 | this Number of unique words in wtest3.dat is 9 Total number of words in wtest3.dat is 14 CAN ANYONE PLEASEEE HELP MEEEEEEEEEEEE!!!!! Last edited by dsmith : 02-Jun-2004 at 17:09.
Reason: Please use [c] & [/c] for syntax highlighting
|
|||
|
#2
|
||||
|
||||
|
Hi Alexandro,
What is it you're actually tryng to do?? You posted a complete code with the results you get and the expected result, but still I can't figure out what you are tryng to do... is that some king of sorting the data?? And it would be better if you could point where actually in the code youre having problem with. since it would take time to analyze your code one by one before anyone could figure it out.. __________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds |
|
#3
|
|||
|
|||
thanks for helpingactually i want to make ..8 is 8
and 3..3 is 3 with two occurences but like 3.4 is still counted one word may be my tokenizer must be recoded again can you bug it for me? thank a lot |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 12:28 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 03:26 |
| Re: Programming Techniques | WaltP | C Programming Language | 0 | 10-Mar-2004 00:56 |
| read specified range of lines from file | etron | C Programming Language | 8 | 18-Feb-2004 09:04 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The