c++ tag

886 questions


1 answers
107 views
0
Why is the size of the structure different from the total size of the member variable?

Looking at it, the structure size is larger than the combined size of the member variables. Why is it like this?

2 years ago

1 answers
20 views
0
This is a c++ DLL question.

This is my first time to create a DLL, so I have a question.The function I'm trying to make into a DLL is a function that takes another DLL and uses it, but if I make it into a DLL, can I bring additi...

c++
2 years ago

1 answers
134 views
0
How do I write C99 stdint.h in Visual Studio?

I looked it up and I heard that the visual version I use doesn't have stdint.hThen I can't write anything in this header? TT?

2 years ago

1 answers
78 views
0
There are no conditional statements in the for statement in this code. Why?

I'm changing the C++ algorithm to C#, and I saw a for statement like this. for (u = b.size(), v = b.back(); u--; v = p[v]) b[u] = v;Errors appear on C# and work well on C++.I don't know what this repe...

2 years ago

1 answers
75 views
0
What is c++ L"string"?

json::value obj;obj[Ltitle] = json::value::string(U(count1));obj[Lnum] = json::value::number(1);wcout << obj << endl;// Create http post requesthttp_client client(U(http://localhost:3000/c...

2 years ago

1 answers
29 views
0
Is there a way to force the program to end in a function other than main in C/C++?

For example, void Queue::push(int _data) { if (isFull()) { cout << Queue is Full. You can't push the data. Exiting program..; //Forced to end here! } else { ~~ }Like above, in the main functio...

c c++
2 years ago

1 answers
108 views
0
How to raise the float

We need a float raise function that runs like the code below math.h has ceil() and floor() but not round().Is it in another C++ library or not at all?float round(float);round(0.1) = 0round(-0.1) = 0ro...


1 answers
21 views
0
[C++ fstream write] How do I insert \0 in the last letter when I write a string?

The code below is the code that replaces the word Customer written on the file with the word Admin.The end may not have been handled well with NULL, but it overlaps with the existing text (Customer) a...

c++
2 years ago

1 answers
59 views
0
How many pointers can be used in one variable?

It's the same as the title.How many pointers can be used in one variable?int ****************a;Can I put on an infinite number of stickers?

2 years ago

1 answers
95 views
0
Is there any way to prevent "deferred conversion from string constant to 'char*'" from appearing on GCC?

I recently upgraded to gcc4.3, and the following warning appears after that.I think this happened by writing char* where you need to write const char*. My code is really long. (Almost 500 files)Cannot...

« - 58 - »

© 2024 OneMinuteCode. All rights reserved.