c++11 tag

31 questions


1 answers
265 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...

1 years ago

4 answers
61 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...

1 years ago

1 answers
54 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...

1 years ago

1 answers
92 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...

1 years ago

1 answers
89 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...

1 years ago

1 answers
117 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,...

1 years ago

2 answers
117 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...

1 years ago

4 answers
109 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...

1 years ago

1 answers
100 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...

1 years ago

1 answers
66 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...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.