c++11 tag

31 questions


1 answers
284 views
0
odd difference between parentheses and curly brackets

Regarding the example of cppreference, I don't understand this error.Both should be initialized with two constructors of arguments, but I would appreciate it if you could tell me why the first std:: i...

2 years ago

4 answers
74 views
0
What is the difference between int type, long type and long type in C++ language?

I would like to know the difference between int type, long type and long type in C++.In particular, I would like to know about the upper limit values that can be expressed, so I looked into them and f...

2 years ago

1 answers
70 views
0
Understanding Calling a Virtual Function During c++ Inheritance

I have a question about the virtual function of c++.Prepare a very simple base and inherited Derived as follows:#include<iostream>US>structure Base {virtual void f(){ std::cout<<Base<&l...

2 years ago

1 answers
105 views
0
SYMBOL RESOLUTION IN IN-LINE DEPLOYMENT OF TEMPLATE

Consider the following code:1. inline Specified Template Function func2. Class A accessing members of Class B through func3. Class B implementation is later than Class Atemplate<class T>inline f...

2 years ago

1 answers
97 views
0
SYMBOL RESOLUTION IN IN-LINE DEPLOYMENT OF TEMPLATE

Consider the following code:1. inline Specified Template Function func2. Class A accessing members of Class B through func3. Class B implementation is later than Class Atemplate<class T>inline f...

2 years ago

1 answers
130 views
0
a way of earning more points by finding the length of a route

Hello. Thank you for your continuous support.Now I'm making a game like Packman, and I'm making something like AI of enemy characters.At that time, I could ask for the shortest route to take the item,...

2 years ago

2 answers
132 views
0
Information on how to implement a job system using C++11

Thank you for your help.for use in gamesI don't think I can create a job system using std::thread.Possible interfaces are://Generate std::thread by specifying the number of coresint threadNum = 8;JobM...

2 years ago

4 answers
124 views
0
Do I need new, delete if I can use C++11 smart pointer?

C++11 has weak, shared, unique, but is it meaningful to use instance generation using only new and delete in an environment where these can be used?In C++11, is the method using only new, delete posit...

2 years ago

1 answers
116 views
0
std::regex_search implementation error?

Some of the std::regex implementations in C++11 seem to not work well.std::regex_search overloads that are used in the following code are not compiled:#include<iostream># include <regex>in...

2 years ago

1 answers
75 views
0
Understanding Bit DP Thinking Circuits

I don't really understand the thinking circuit of the algorithm in the code below.They seem to be using bit DP, but I don't know how to use bit operators to become DP (I don't know why DP is establish...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.