Posts by guinalz • 96 points
8 posts
- 
		2 votes2 answers565 viewsA: Improper Infinite Loop no whileConditional control (if) is outside the while, it means that it runs not n-times, but only once: after the exit of the while. No real sum of numbers; The specifier "%f" is for floating point types… 
- 
		4 votes1 answer133 viewsQ: C++: Addition of ". cpp" implementations in Visual Studio and GCCIn C++, what is observed in a quick internet search is the orientation that only ". h" files should be included. A sample of this can be observed here and especially here. In Visual Studio, the… 
- 
		1 votes1 answer315 viewsQ: How to include header and cpp without resulting in LNK2005 error in Visual StudioThe source code below is an abstraction of a code in production. However, it is real, and the facts reported below are applicable to it. The code compiles usually in GCG (linux), but in Visual… 
- 
		0 votes1 answer197 viewsA: push_back in Vector 2D, emitting error "no matching Function for call"Well, as mentioned, my knowledge of C++ is limited. While searching here and here, although I did not get all the knowledge involved in the subject, I realized that unlike array, as TCoord **Grid,… 
- 
		0 votes1 answer197 viewsQ: push_back in Vector 2D, emitting error "no matching Function for call"I’m a beginner in C++ programming, so I apologize in advance. As this question answered here, it is possible to use std::vector, 2D (grid) with push_back() directly (variavel[indice].push_back(...))… 
- 
		1 votes0 answers172 viewsQ: openGL - Save Complex Rendering in Memory for Future RestoreI am developing a c++ application using opengl, but my knowledge in c++ and opengl is limited, especially in the latter. I need to create a board similar to the chess board, however for each… 
- 
		0 votes1 answer114 viewsA: glBindTexture does not apply texture in GL_QUADSI found the solution, and the problem was in the function loadTexturePNG. Although I admit I don’t really understand the reason, the build test found that the changes fixed the issue. In case anyone… 
- 
		0 votes1 answer114 viewsQ: glBindTexture does not apply texture in GL_QUADSProblem: glBindTexture does not apply texture in "GL_QUADS" when using OPENGL in C++. My experience in c++, and mainly in OPENGL is limited, however, I based in this code. I made some few…