453 questions
As far as I know, i+=j; and i=i+j have the same meaning int i = 5; long j = 8;If I = i+j;, it can't be compiled. If I = j;, it runs well I wonder why.
Is it possible for a constructor to call a constructor within the same class? Not the lower class.What do I do?
When I developed C#, I used it like the code below, but I wonder how I do it in C++.I wrote this() to call out the class name, but it says noWhy? class Test {public: Test() { //DoSomething } Test(int...
How does the next code run?It's my first time seeing it in C grammar when I think it's going well in GCC ㅜㅜWhere's that thing?What's that called?#include <stdio.h>int main(){ int x = 10; while (...
I want to know the build version of the re-app So I want to print it out on the UIDo I have to touch the Android manifest file?
I saw the source codeWhat are you doing?#ifndef HEADERFILE_H#define HEADERFILE_H...#endif
I understand that I have virtual attached to the constructor or other function,I don't know why virtual is used for extinction.When an object disappears, it automatically calls for an inherited class,...
I'm going around the internetgoI saw the C++ code below What does this explicit do for you?class String {public: explicit String (int n); //allocate n bytes String(const char *p); // initialize sobjec...
« | - 11 - | » |
© 2024 OneMinuteCode. All rights reserved.