or tag

453 questions


1 answers
154 views
0
+= operator in Java

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.


1 answers
128 views
0
Can I call a constructor from another constructor?

Is it possible for a constructor to call a constructor within the same class? Not the lower class.What do I do?

2 years ago

1 answers
143 views
0
Calling a constructor within a constructor

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...

2 years ago

1 answers
82 views
0
What do you call an operator?

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 (...


1 answers
140 views
0
How do I get the build version of an application?

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?


1 answers
85 views
0
Join STL vector

Is there a way to combine multiple STL vectors into one?

2 years ago

1 answers
47 views
0
What is #ifndef, #define in the header file?

I saw the source codeWhat are you doing?#ifndef HEADERFILE_H#define HEADERFILE_H...#endif

2 years ago

1 answers
64 views
0
When is a virtual extinction used?

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,...


2 answers
143 views
0
What does the explicit keyword in C++ do?

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...


1 answers
69 views
0
--, Do ++

There is no posterior operator in Python, but there is a potential operator?So I used it, but the price doesn't increase.Why doesn't Python support front and rear increments like C++?a = 1++aprint a

« - 11 - »

© 2024 OneMinuteCode. All rights reserved.