WaitForsingleObject http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/waitforsingleobject.asp[^] Eric Premature optimization is the root of all evil
qfegd
Posts
-
Capturing Events -
fstream helpIn those situation stringstream can be cool! http://www.cplusplus.com/ref/iostream/stringstream/[^] Here is the code to read one line in your file and to compute the average score. std::ifstream ifs("FileName", std::ios::in); char buffer[255]; ifs.getline(buffer, 255); std::istringstream iss(buffer); char n1[255]; char n2[255]; double grade, mean=0.0; int nGrade = 0; iss >> n1 >> n2; for(; iss >> grade; ++nGrade) mean += grade; mean /= nGrade; ifs.close(); // end Now figure a way to do this for the whole file :) Eric Premature optimization is the root of all evil
-
Loading resources?You can also use AfxFormatString1 & AfxFormatString2 if your resource HELLO_ID is: "Hello %1" you can do: CString result; AfxFormatString1(result HELLO_ID, "World"); it gives u Hello World Eric Premature optimization is the root of all evil
-
MFC CHM ReferenceThere is microsoft documentation http://msdn.microsoft.com/library[^] lokk for MFC reference eric Premature optimization is the root of all evil
-
what is a smart pointerit mean: Everywhere you go, glory will follow Premature optimization is the root of all evil
-
what is a smart pointerqfegd = quo fas et gloria ducunt
-
totally confused about UINT_PTRThere is 2 definitions for UINT_PTR: if _WIN64 is defined it is a unsigned __int64 (a integer on 64 bit) if not it is defined as an unsigned int (a integer on 32 bit) Eric
-
what is a smart pointerTake a look at the boost documentation. http://www.boost.org/libs/smart_ptr/smart_ptr.htm[^] Eric