c++ tag

886 questions


1 answers
23 views
0
vector parameters in C++ array form

#include <iostream>#include <vector>// // Ascending ordervoid bubbleSort(std::vector<int> arr) { <--- ! int length = (int)arr.size(); int temp = 0; for (int i = 0; i < length; ...

c++
2 years ago

1 answers
23 views
0
Insert c++ Array Data (Full Beginner)

Hello, I am a student who is studying while listening to C++ class.I'm working on a program because I have a task. int value;int data[n]; for (int i=0; i> value ; data[i] = value;}Like this I'd lik...

2 years ago

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

Hello.I'm asking you this question because I don't understand something because I'm a C++ beginner.#define CHECK(condition) \ do { \ if (UNLIKELY(!(condition))) { \ Fatal(__FILE_...

c++
2 years ago

1 answers
46 views
0
When do you use reference and pointer, respectively?

I know how to write reference and pointer.What I want to know isWhich is more appropriate to write reference or pointer.In some cases, this is specified (for example, the ++ operator only writes refer...

2 years ago

1 answers
86 views
0
Why is there no tree container in C++STL? Please let me know what I can use instead

We need a hierarchy of trees, not for performance.I looked it up to see if it was in STL, but it wasn't there.Why doesn't C++STL have tree container? tree is useful.Can anyone tell me if there's anyth...

2 years ago

1 answers
23 views
0
To obtain the size of a C++ one-dimensional array after transferring it to a factor (primary)

Hello, I'm a C++ beginner. You want to create a function that sends a one-dimensional array as a factor and obtains size, item, and a print function to output.I made it as far as I know, but it's bloc...

c++
2 years ago

1 answers
41 views
0

2 answers
20 views
0
Why can't I change it?

int c, f;f=(int)((9.0/5)*c+32); for(c=0;c<=50;c+=10) printf(c=%d f=%d\n,c,f); return0;I squeezed it out, but 9.0/5 keeps coming out as zero

c++
2 years ago

1 answers
123 views
0
How to determine if double/float is NaN?

Does C++ have a function like ishnan()?C was in <math.h> but C++ does not have <cmath>?*Oh, I'm using MinGW.

2 years ago

1 answers
18 views
0
Can't I get it with a pointer when I overload the operator?

Rect* r1 = new Rect(40);Rect* r2 = new Rect(80);cout << r1+r2 << endl;I want to overload the class that I received with a pointer like this so that I can calculate it. So,friend Rect &...

c++
2 years ago
« - 73 - »

© 2024 OneMinuteCode. All rights reserved.