No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have if statement which doesn't return true even though it should. [CODE] std::vector<__int64> numbers; for( __int64 i = 2; i < input; i++ ) { numbers.push_back(i); } __int64 tmp = 4; for (unsigned int i = 0; i < numbers.size(); i++) { [U][B]if ( numbers[i] == tmp )[/B][/U] { … |
|
My c++ code [CODE=c] string map = "111111111111111111111111111" for (int i = 0; i < 20; i++) { int number = atoi(map[i]); } [/CODE] Gave me error: cannot convert parameter 1 from 'char' to 'const char *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style … |
|
Re:
Hey, I am making a small network game and I suddenly got some problems with my player class, specially when trying to call the getName function and using the second constructor I get this error: [code] 1>------ Build started: Project: RPG, Configuration: Release Win32 ------ 2>------ Build started: Project: Server, … |