Posts by Renato • 41 points
8 posts
-
3
votes2
answers60
views -
-1
votes1
answer55
viewsQ: How to create a multidimensional array in c++?
I have a matrix float m2D[4][4]. For the purposes of my program, I need at the same time to change the values in the components of m2D be able to save the status prior to that change. It’s basically…
-
0
votes2
answers51
viewsQ: C++ - pointer this
The Rotatex(float) and Scale(float, float, float) functions of the mat4 class return the this pointer. The purpose was to create a temporary instance of mat4 to store the pre-multiplication between…
-
0
votes2
answers46
viewsQ: Implementation of member functions
It was overloading operators and defining them within the class itself, I found it natural to do so for these functions, but then a small doubt arose. Is it wrong to define member functions within…
-
0
votes1
answer131
viewsQ: How to enter the PK value of a table in the FK of another table
I created a table usuario using: CREATE TABLE usuario( usuario_id int NOT NULL auto_increment PRIMARY KEY, nome varchar(200)); Then another table using: CREATE TABLE image( id int NOT NULL…
-
0
votes1
answer802
viewsA: Error while trying to compile files. h in c++
I found the problem by looking at the contents of the page https://stackoverflow.com/q/19886397 @Jefferson Quesado. The classeID. h and classeID.cpp files have never been properly associated with…
-
0
votes1
answer802
viewsQ: Error while trying to compile files. h in c++
The code is this: #include "stdafx.h" #include "classeID.h" #include <iostream> #include <string> using namespace std; int main() { id label("default", 0); cout << "Nome: "…
-
0
votes1
answer583
views