c++ tag

886 questions


1 answers
33 views
0
Compilation error in G++: 'max' was not decoded in this scope

Thank you for your help. I am trying to compile CPP sources using G++ by installing MinGW in Windows 10, but I get an error when I compile the source code below.#define_USE_MATH_DEFINES# include <c...

c++
2 years ago

2 answers
33 views
0
About Loading and Displaying

I'm in trouble because I can't write exercises 1-5.I haven't started yet, so please let me know🙏I'm in trouble because I can't put the number I entered in the execution result#include<stdio.h>in...

c++
2 years ago

1 answers
84 views
0
android on cocos2d-x(v3.14.1) crashes during sdkbox::PluginShare::init()

Prerequisites/What you want to achieveI would like to implement sdkbox's twitter sharing function (with images) on Android.Android version only sdkbox::PluginShare::init();It will crash at the part of...


1 answers
35 views
0
Is it OK to use this in C++ to access members in the same class?

I am currently using DxLib in C++ to create a simple game.When accessing other member functions and member variables in the same class from member functions in the class, this->m_X, but looking at ...

c++
2 years ago

1 answers
35 views
0
What are the components of the TntComCtrls.hpp file?

The following error occurred when building in C++ Builder 10.3:[bcc32c fatal error] Main.h(14): 'TntComCtrls.hpp' file not found I searched the entire C drive in Explorer for this header file called T...

c++
2 years ago

2 answers
32 views
0
There is a problem with the float type.

I was doing an atcoder, but if I type 1.3 and 1.2 in this cin, unwanted behavior (error output) will occur.I've tried various things like casts, but I don't know the cause.If anyone understands, pleas...

c++
2 years ago

1 answers
33 views
0
C++ to bool argument (hoge==0)

Sorry for the rudimentary question, but As a member variable of the HOGE class, const pool abc;is declared Constructor HOGE abc(hoge1&hoge2)==0);describes the .Is this only bool abc initialized wi...

c++
2 years ago

2 answers
39 views
0
Enumeration type that can be converted from int to string and from string to int

In C++, you created an enumeration that can convert from int to string or from string to int.#defineENUM(name,...)\US>class name public:\ enum Tag {__VA_ARGS__};\ \ private:\ static std::unordered_map...

2 years ago

1 answers
63 views
0
C++ program using OpenCV has error "Identifier CV_WINDOW_AUTOSIZE, CV_WINDOW_FREERATIO not defined"

I would like to run the following sample program using OpenCV 4.0.0 and VisualStudio c++, line 33 CV_WINDOW_AUTOSIZE | CV_WINDOW_FREERATIO in the respective parts ofThe identifier CV_WINDOW_AUTOSIZE C...

2 years ago

2 answers
87 views
0
I want to control the rotation of the motor based on the values read from the file.

The file on the SD card contains values one line at a time, and I would like to rotate the motor by substituting the value for val in the interrupt function.The file contains 1500, 2500, 500... and on...

2 years ago
« - 24 - »

© 2024 OneMinuteCode. All rights reserved.