c++ tag

886 questions


1 answers
49 views
0
Can the code compiled in C++03 and C++11 produce different results?

It's the same as the question.Can the code compiled by C++03 and C++11 produce different results?Not if it doesn't work on one side. Is there a case where both are executed, but the results are differ...


1 answers
43 views
0
C++ List STL's Etherator Usage

#include <iostream>#include <list>int main() { std::list<std::string&> list = {January, February, March, April, May}; std::list<std::string&>::iterator listItr = list.b...

2 years ago

1 answers
25 views
0
I have a question about the algorithm problem.

I encountered the following problem, but I don't know how to solve it.First of all, there's this kind of ignition.f(n) = 3f(n-1) + f(n-2) - f(n-3), f(0) = 0, f(1) = 1, f(2) = 2And the problem is just ...

c++
2 years ago

1 answers
36 views
0
This is a question about changing the seed encryption value of Java to C language.

If the value is exceeded by an encrypted value (using seed128 cbckisa open source) on the web, we will try to decrypt it with c.Java Side private static byte pbUserKey[] = StringUtil.StringToByteLengt...

c++ c
2 years ago

1 answers
27 views
0
How do I add data to the append instead of the back in Linked List code?

Below is part of the singly linked list code. If you type 'I 1', 'I 2', and 'I 3' after you run it, I want to make sure that the 3 entered later comes out first as the head, but on the other hand, it ...

c++
2 years ago

1 answers
67 views
0
Can you combine the pointer array and the array pointer?

void com() { struct TTT { char isDup[10]; char readData[10]; struct TTT* link[9]; }; struct TTT case1; char* data; data = read(); for (int i = 0; i < 9; i++) { case1.readData[i] = data[i]; ...

2 years ago

1 answers
23 views
0
Is 0 a decimal or an octal?

Is 0 a decimal or an octal?I know it's zero regardless of whether it's decimal or octal, but I'm just curious.

2 years ago

1 answers
49 views
0
Can I make a function like string find (string number1, string number2) in c++?

In c++, string find (string num1, string num2)I'm going to make a function called find, but can I use the return type as a string?

2 years ago

1 answers
23 views
0
C++ question. Beginner

//#include <iostream>#include <string>using namespace std;class Employ { string name; string type;public: Employ(string name, string type) { this->name = name; this->type = type; } ...

c++
2 years ago

2 answers
23 views
0
Your class should have a constructor that initializes the three data members.

I'm asking you this question because I don't understand exactly what it meansTo sum up, this is a class example, but it's a class for vehiclesGive 5 member variables and make set and get functions for...

c++
2 years ago
« - 60 - »

© 2024 OneMinuteCode. All rights reserved.