c++ tag

886 questions


1 answers
337 views
0
Within llvm14.0.0 libcxx, there are function templates that you don't know how to materialize.

There was something I didn't understand while studying SFINAEThe details have become longer, so I'll write it down in a simplified way.I think the main idea is how to call f() to make the next code co...

1 years ago

1 answers
450 views
0
MFC Mouse Event Handling Questions.

WM_LBUTTONDOWN, WM_MOUSEMOVE, WM_RBUTTONDOWN 등If all mouse events are handled in the same location, the coordinate values of the mouse where the event occurred are the same Only WM_MOUSEWHEEL has diff...

1 years ago

1 answers
368 views
0
c++ class dynamic assignment array constructor

using namespace std;class Student_info{private:char s_name[10];int s_age = 0;char s_university[100];char s_major[100];public:Student_info();Student_info(char* name, int age, char* univ, char* major);b...

c++
1 years ago

1 answers
259 views
0
I want to pass the class type to the function argument

classBaseClass{ // member variable // member function};class FirstClass:public BaseClass {};classSecondClass:publicBaseClass{};classThirdClass:publicBaseClass{};void func(){ autoptr=std::make_shared&l...

c++
1 years ago

1 answers
372 views
0
Unable to determine cause due to differences in output

https://atcoder.jp/contests/abc083/tasks/abc083_bThe output result will be 0 in the code below, but I do not know which part to correct, so I would appreciate it if you could let me know.entering20 2 ...

c++
1 years ago

1 answers
415 views
0
Environment dependent characters? are displayed.

https://atcoder.jp/contests/abc058/tasks/abc058_bIn the code section below, environment dependent characters? will be displayed.Why do environment-dependent characters appear?I would appreciate it if ...

c++
1 years ago

1 answers
398 views
0
C++ STRCAT Implementation Partial Question

using namespace std;class My_string {private:char* str;public:My_string(char *a) { str = a; };~My_string() { };int my_strlen() {int b = 0;while (1) {if (str[b] == NULL){break; } b++; } return b;};vo...

c++
1 years ago

1 answers
423 views
0
I want to get the number of elements in the array of non-static members of the class as a constant expression

I would like to get the number of elements in the array of non-static members of the class as a constant expression within the non-static member function, but using the std::size function results in a...

c++
1 years ago

2 answers
219 views
0
I want to view index, but the data stored in the array is displayed.

https://atcoder.jp/contests/abc068/tasks/abc068_bIn the excerpt code below, I would like to display the index in max, but the data stored in the array will be displayed instead of the index.How should...

c++
1 years ago

1 answers
386 views
0
FreeRTOS is not available in SPRESENSE

Currently, I am thinking of using the FreeRTOS library to make it multi-threaded with SPRESENSE's Arduino compatible.However, when I did the verification, the following error occurred and I cannot use...

1 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.