886 questions
The size of the array is determined at compile time, so to declare an array of dynamic sizes int size;scanf(%d, &size);int* arr = (int*)malloc(sizeof(int) * size); I was taught to do this, but eve...
We are currently running ALDS1_8_A.It's a two-minute search tree.The answer codes are as follows:In the insert function, x is the current comparison node, y is the parent node, and z is inserted.I thi...
Question detailsRegarding the presentation code, I would like to substitute an anonymous function for the pointer variable related to the code below, but every implementation will fail.How do I define...
#include <stdio.h>int main(void){ int num1, num2; char arithmetic; printf (Please enter 2 numbers and an operator.\n\n); printf (Operators are as follows:\n); printf(plus:+, subtract:-, multiply...
Question detailsI'd like to know how to correct the position and draw it in the same way as when two objects collide with each other in a 2D game.ConditionsRectangular, square, etc.I would like to ass...
Question detailsThere is an error in the source file below, but I do not understand the meaning of this error code.expected initializer before 'Render' What should I do with the initializer that I nee...
Question detailsI'd like to know how to make a game loop process.As it is asynchronous, one of them ends first, so what should I do then?What I checked and foundAn object to be drawn by calculation is...
Question detailsI'd like to know how to correct the position and draw it in the same way as when two objects collide with each other in a 2D game.ConditionsRectangular, square, etc.I would like to ass...
The inline variable inline structure {intx;}y; using an unnamed structure has a different entity (with different addresses) for each translation unit and cannot be shared beyond the translation unit.W...
The following implementation was written as the implementation of the iterator_trites structure.Why are there differential_type and value_type types in the namespace of the Iter class?In my opinion, w...
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.