![]() |
| ||
| pls help hello, am doing a project for my school . am asked to , 1. open a file 2. tokensise the contents and then change the case of all the letters to lower case 3. search for all the words in tat file with another file so there are 2 files one contails the file that is tokenised and the other a list of words (like a database) . i need to search that database for all the words in the file that ve tokenised the program i ve written is in c++ . am having a few problems with matching . can someone pls help #include<iostream.h> |
| ||
| Re: pls help The way you are comparing looks to be ok. Perhaps there's a problem with the tokenising part? Dunno not really looked at it properly, looks too much like C. |
| ||
| Re: pls help #include<iostream.h> #include<string.h> #include<fstream.h> You must be using an ancient c++ compiler -- maybe Turbo C++? If you want to learn c++ language you will have to toss that compiler into the bit bucket and get a modern one -- Dev-C++ is a good one. |
| ||
| Re: pls help Toss out all that C code and replace it with c++. use std::string and >> insert operator and you don't have to do any tokenizing at all. Here's an example #include <iostream> |
| ||
| Re: pls help thankx :) it worked wel . now using trhe STL for most of the things |
| All times are GMT -4. The time now is 9:01 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC