Posts by reverse • 94 points
9 posts
-
1
votes1
answer23
viewsA: Problem changing player position to another Tile position on P5.js
And of course it wouldn’t work, you need to define the classes first and then you use them, otherwise Javascript won’t know where to find the class…
javascriptanswered reverse 94 -
0
votes2
answers514
viewsA: Pass class object as constructor parameter in C++
Missing copy constructor in class Data, On that line you call a copy builder no longer exists: this->data = d; That’s why the compiler shows these errors Here explains what a copy builder is and…
-
3
votes4
answers5082
viewsA: What does /= mean in Python?
Is the same as aux = aux // 10 // Integer division. python splits, returns an integer and applies the function .floor(round down) to the result .…
-
-1
votes3
answers3761
viewsA: Async/Await returning Promise{<pending>}
axios.get(url) returns a Promise, you’re passing a Promise to another Promise, and then calls an asynchronous function, expecting the result to be synchronous. I don’t think you understand how it…
-
0
votes1
answer369
viewsA: Configure sublime 3 to compile Nodejs
Show ÒXITO: o processo "node.exe" com PID 8256 foi finalizado. is not an error. The plugin Nodejs executes a command before taskkill /F /IM node.exe to end a previous Ode process opened, then it…
-
2
votes2
answers700
viewsA: Failed to execute "cmake." command at the prompt
Cmake did not find the compiler, in your case you are trying to compile in Visual C++, you need to install Visual C++
-
2
votes3
answers1668
viewsA: Event onmouseover random colors
var btnElement = document.querySelector('button.btn'); let count = 1; btnElement.onclick = function() { // Cria um novo elemento…
javascriptanswered reverse 94 -
0
votes1
answer237
viewsA: Set uint8_t to int
What you did was, the first printf you printed as hexadecimal and the second you printed as decimal. 13 in hexadecimal is equal to 19 in decimal. There was no truncation of the variable value.…
-
0
votes1
answer73
viewsA: Read Dates file and count days elapsed in the year
You did not initialize soma_meses, then became any value of memory (garbage) C++ initializes global and static variables with zero, local variables get any memory value To solve the problem just…