
-----------------------------------
weijie
Thu Jun 03, 2010 8:00 pm

comparing strings and characters
-----------------------------------
I need to compare strings of words (which extracted from a txt file) with local alphabet (a to z).
the problem accur when i using strcmp . anyone can help ?

#include 
#include 
#include 

using namespace std;

int main()
{
	char* alphe;
	int i,j;
	int alphe_flag[256]={0};
	string line;
  
	ifstream myfile ("example.txt");
	if(myfile.is_open()){
		while(!myfile.eof()){
			getline(myfile,line);
			alphe="e";
			for(i=0;i