c++ tag

886 questions


2 answers
28 views
0
I want to know the meaning of code mixed with standard libraries.

If you know what the code below is doing, please let me know.std::sheard_ptr<std::vector<std::sheard_ptr<RxInfos>>>rxinfo;

c++
2 years ago

2 answers
43 views
0
Understanding the Presence of -0

I think -0 exists for the float type, but I don't know why.Do you use it for something or treat it as an error like inf or Nan?

c++ c
2 years ago

1 answers
122 views
0
Creating a Model in Qt Creator

I'm developing using Qt creator. If you create a non-Qt c++ application, you'll get a model of the program that says Hello world.Is it possible to change this initial state arbitrarily?Specifically, I...

2 years ago

1 answers
55 views
0
R's sample() in C++

I think R has a function called sample() that allocates probability to each vector x (sample(x,size,replace=FALSE,prob=NULL)). Is it possible to do the same thing in C++ (for example, by using a libra...

c++
2 years ago

1 answers
34 views
0
It's C++

using namespace cv;using namespace std;int main(){Mat image;.image = imread(hwfig01.jpg, IMREAD_COLOR); // If (image.empty()) { cout << Image cannot be read << endl;}show (output image, im...

c++
2 years ago

1 answers
161 views
0
How to Create an Interface

How do I set up a class that represents the interface?Can I just write an abstract class?


1 answers
132 views
0
Calling a constructor within a constructor

When I developed C#, I used it like the code below, but I wonder how I do it in C++.I wrote this() to call out the class name, but it says noWhy? class Test {public: Test() { //DoSomething } Test(int...

2 years ago

1 answers
98 views
0
I want to add string and int

I thought it would be easy, but it's hard ㅜㅜㅜWhat should I do to make string name become John21 in the code below?string name = John;int age = 21;


1 answers
75 views
0
What do you call an operator?

How does the next code run?It's my first time seeing it in C grammar when I think it's going well in GCC ㅜㅜWhere's that thing?What's that called?#include <stdio.h>int main(){ int x = 10; while (...


1 answers
37 views
0
Can the source running in both C and C++ produce different results?

C and C++ are different languages. Not all C-codes work in C++.ThenIs there a code that produces different results between C and C++ sources?Except for preprocessors and type limits,If it's different ...

c++ c
2 years ago
« - 33 - »

© 2024 OneMinuteCode. All rights reserved.