886 questions
#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; ...
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...
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_...
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...
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...
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...
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
Does C++ have a function like ishnan()?C was in <math.h> but C++ does not have <cmath>?*Oh, I'm using MinGW.
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 &...
« | - 73 - | » |
© 2024 OneMinuteCode. All rights reserved.