886 questions
Why does C++ use header files and .cpp files separately?
In C++, there are many ways to dynamically allocate, right?Then when should I use malloc and when should I use new?malloc If you finished freeIf new is done, deleteI know I shouldn't mix the two.
We're going to approach the arrangement from the back to the frontI'd like to know a better way than the source code I madefor (int i = myArray.Length - 1; i >= 0; i--){ //take care of sth myArray[...
C++ class is overriding the virtual extinctionShould I call a parent class extinction within the extinction?MyChildClass::~MyChildClass(){ //Call Parent Class Destructor this->MyBaseClass::~MyBaseC...
How do I write vector literacy?Source code 1 is running normally, but source code 2 shows warning.C++ I just learned itIn the past, unsigned was something that was told to be very carefulunsigned It's...
If you compile the code below into the gcc -Wall /-Waddress option,warning: the address of ‘i’ will always evaluate as ‘true’ [-Waddress]It appears.I don't know why it's coming up. I don't know what i...
!I'm asking =! not =.We didn't even assign a value in the code belowWhy is false coming out?int main(){ int a; int b = 3; return if(a =!b) { //false cout << a =! b is true! << endl; } els...
The factor will enter float and Is there a standard library function that does this?
Is there a function that takes int as a factor and returns QString?I'm looking for a function like intToQSTring() in the code below!int i = 42;QString s = intToQSTring(i)
I'm asking you a question because I saw such a strange code.I don't know why ([](){})()); is compiled normally in the source code belowI'm not a function pointer, I'm not an operator.But if you run it...
« | - 36 - | » |
© 2024 OneMinuteCode. All rights reserved.