All pastes #2067024 Raw Edit

Mine

public text v1 · immutable
#2067024 ·published 2011-05-22 16:44 UTC
rendered paste body
				std::ifstream textFile ("D:\\1.txt");
				std::string textBuffer;
				int k, size = 0;
				int numberOfWordsLowercase = 0;
				int numberOfSpaces = 0;
				while (getline(textFile, textBuffer)) 
				{ 
					++size; 
					int len = textBuffer.length();
					for (int k = 0; k<len; k++) {
						if (textBuffer[k] == ' ') {
							if (!isupper(textBuffer[k+1])) ++numberOfSpaces;
						} 
					}
				}
					
				textFile.close ();