Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
Questiona few important questions about forms ? Pin
cmpeng3418-May-06 2:59
cmpeng3418-May-06 2:59 
AnswerRe: a few important questions about forms ? Pin
stancrm18-May-06 3:13
stancrm18-May-06 3:13 
AnswerRe: a few important questions about forms ? Pin
Leyu18-May-06 8:13
Leyu18-May-06 8:13 
QuestionThe Server is not operational when authenticating user to active directory Pin
krishna nimmalapudi18-May-06 2:46
krishna nimmalapudi18-May-06 2:46 
AnswerRe: The Server is not operational when authenticating user to active directory Pin
mav.northwind18-May-06 5:20
mav.northwind18-May-06 5:20 
QuestionRe:Palm Desktop software Pin
Smithasondur18-May-06 2:31
Smithasondur18-May-06 2:31 
Questiontrying to change screen resolution Pin
Alex Cutovoi18-May-06 2:21
Alex Cutovoi18-May-06 2:21 
QuestionRemoving stopwords Pin
Rizwan Rathore18-May-06 1:51
Rizwan Rathore18-May-06 1:51 
Hi all, i need help in removing stop words i mean i ve an ArrayList wich contains about 10000 words each word is stored at each index of ArrayList and i ve to remove all the occurences of some 300 words wich are also stored in an array list well i m trying to do this like this

for(int i = 0; i < stopWords.Count; i ++)			
{
	while(totalWords.Contains(stopWords[i]))
	totalWords.Remove(stopWords[i]);
}


i have also tried to do this through this way

for(int i = 0; i < totalWords.Count ; i++)
{
	for(int j = 0; j < stopWords.Count; j++)
	{
		
		if(totalWords[i].Equals(stopWords[j]))
		{
			totalWords.Remove(totalWords[i]);							
			i--;
		}
	}
}


but both of these methods r taking ages to complete Frown | :( .... so plz anyone tell me some better and efficient appraoch then this....in the above code totalWords is the arraylist wich contains all the words and stopWords is the arraylist that contains the words wich r to b removed
lookin forward for help

Regards,





-- modified at 8:09 Thursday 18th May, 2006
AnswerRe: Removing stopwords Pin
Robert Rohde18-May-06 2:36
Robert Rohde18-May-06 2:36 
GeneralRe: Removing stopwords Pin
Rizwan Rathore18-May-06 2:49
Rizwan Rathore18-May-06 2:49 
GeneralRe: Removing stopwords Pin
Robert Rohde18-May-06 3:00
Robert Rohde18-May-06 3:00 
GeneralRe: Removing stopwords Pin
Rizwan Rathore18-May-06 4:12
Rizwan Rathore18-May-06 4:12 
GeneralRe: Removing stopwords Pin
Robert Rohde18-May-06 4:21
Robert Rohde18-May-06 4:21 
GeneralRe: Removing stopwords Pin
Rizwan Rathore18-May-06 5:19
Rizwan Rathore18-May-06 5:19 
GeneralRe: Removing stopwords Pin
Robert Rohde18-May-06 5:52
Robert Rohde18-May-06 5:52 
Questionquestions for .NET compact Framework Pin
GDavy18-May-06 1:32
GDavy18-May-06 1:32 
Questionstatusstriplabels problem? :( Pin
cmpeng3418-May-06 1:17
cmpeng3418-May-06 1:17 
AnswerRe: statusstriplabels problem? :( Pin
Office Lineman18-May-06 6:33
Office Lineman18-May-06 6:33 
Questionhowto enable enter key active on a specific button ? Pin
cmpeng3418-May-06 1:11
cmpeng3418-May-06 1:11 
AnswerRe: howto enable enter key active on a specific button ? Pin
rah_sin18-May-06 1:35
professionalrah_sin18-May-06 1:35 
AnswerRe: howto enable enter key active on a specific button ? Pin
Rizwan Rathore18-May-06 1:57
Rizwan Rathore18-May-06 1:57 
QuestionThread.Abort() (Should I use try..catch?) Pin
Shy Agam18-May-06 1:02
Shy Agam18-May-06 1:02 
AnswerRe: Thread.Abort() (Should I use try..catch?) Pin
Robert Rohde18-May-06 1:34
Robert Rohde18-May-06 1:34 
AnswerRe: Thread.Abort() (Should I use try..catch?) Pin
Guffa18-May-06 1:36
Guffa18-May-06 1:36 
QuestionHelp needed in Reference Parameters Pin
Ashraj198218-May-06 0:42
Ashraj198218-May-06 0:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.