Debugging storiesOnce I spent 2 days debugging a single function. All I had to do was to change [code] int diff_new=...
How do I convert a C++ string to a char array?Use strcpy() function: [code]strcpy(cFilm,sFilm.c_str());[/code] http://cplusplus.com/reference/cli...
Reading and writing... Problems in while loops.The [code]processData()[/code] function reads file character by character, which is not very practic...
copying an array to an array[code]*m = *d;[/code] should be [code]*d = *m;[/code] [code] cout << "The distance is " << *m++ << ...
How to check if two template parameters are the same?[quote]is there a way to check if T1==T2?[/quote] [code]template<typename T, typename T2> bool some_...