c++ tag

886 questions


1 answers
120 views
0
Is the code order followed when initializing by writing the initialization list?

In the initialization list, in the order in which you wrote down the code,I wrote the code thinking that initialization was happening.For example, class A{private: OtherClass var1; AnotherClass var2;p...

2 years ago

1 answers
72 views
0
What does "void *p = &&abc;" do?

void *p = &&abc;I saw a code like this, but I don't know what it's doing. I've seen a lot of double pointers, but doesn't & mean the address?And you need two operands, so this isn't it.Wha...

2 years ago

1 answers
152 views
0
Compare _beginhread / _beginhreadex / CreateThread in Windows threading

I want to know the pros and cons of comparing those three.All 3 functions create a new thread.I know that it's easier to know the error when you call CreateThreadCan you compare how the other three ar...

2 years ago

1 answers
88 views
0
Is there an easy way to initialize the entire C/C++ array to -1?

int array[100] = {0};I heard that the entire silver element is set to zero, so I thought I just need to set oneint array[100] = {-1};So the first element is minus 1, and the rest is zero.I don't want ...


1 answers
30 views
0
Requires a C/C++ code to screen capture in a Windows environment

We are producing a screen casting program for Windows to film game videos.Speed is important. I'm looking for a way other than GDI, but I can't find the relevant information well.Which way should I lo...

2 years ago

1 answers
98 views
0
What does void mean in C-affiliated languages?

What does void mean in C-affiliated languages?Void is used a lot like this, but I wonder what void means.

2 years ago

1 answers
80 views
0
Type specifier %i, %d difference

I know that you can use both the format specifiers %i and %d when printing integers. What's the difference between you two? Did you make it separately?

2 years ago

1 answers
98 views
0
Can I write or in #ifdef?

It's a very basic question, so I'm a little shyI'm going to do the same thing on Linux and Android, so I'm going to tie them up. I thought I could do | of course, but I couldn't...How should I write o...

2 years ago

1 answers
127 views
0
Is it right to use exit or return in main?

Is it right to use exit or return in main?The main() also has a return type, so I think it's right to use return, but I've seen some codes use exit() together. Which one should I use?

2 years ago

2 answers
79 views
0
Is there any C++ graphics library/framework that supports GUI together?

There are many graphics (directX, openGL-based) libraries, but I couldn't see the GUI (buttons, text boxes, etc.) class together.I looked it upopenFrameworks: I think this is the best fit, but I don't...

2 years ago
« - 39 - »

© 2024 OneMinuteCode. All rights reserved.