c++ tag

886 questions


1 answers
26 views
0
C++ question crying

**Write a pair of print function templates The first 'print' function template has a C++ templated L-value reference parameter. It prints using cout (or wcout) the parameter value and the phrase L-Val...

c++
2 years ago

1 answers
130 views
0
I have a question about the c++ pointer!

Hello.I got curious while implementing the stack with a linked list.I implemented to release the memory of the node that has data that will be pop when pop operation is performed. Does the pointer of ...

2 years ago

1 answers
24 views
0
Copy Creator Question!

class TestClass{ int data; TestClass() : data(2) {} TestClass(const TestClass& tc) {}}For example, when you run the copy generator aboveI want to call the default generator without parameters to m...

c++
2 years ago

1 answers
26 views
0
This is a c++ variable declaration grammar question.

Question code const std::vector<const char*> checkList = {midi_null_data};Question contents When declaring a variable called checkList, I understand const at the beginning, but I don't understan...

c++
2 years ago

1 answers
34 views
0
I have a question about using cpp memmove().

Hi, how are you?I can't use JNI or JNA due to current circumstances I'm transcribing the cpp code to java Code is typedef unsigned char BYTE;char *Data1;BYTE *Data2;for(... memmove(&Data1[i * 2], ...

2 years ago

1 answers
32 views
0
What is Sentinel?

I was reading the code and saw the expression Sentinel I'm curious because it doesn't come out well even if I google itWhat grammar or expression do you use?

c++
2 years ago

1 answers
30 views
0
The console window pops up, but it's not working

using namespace std;//Class class vehicle{private:int speed;public:void SetSpeed(int _s){ speed=_s;}int GetSpeed(){ return rand()%(speed+1);}};class car : public vehicle{};class truck : public vehicle...

c++
2 years ago

1 answers
81 views
0
Compare c++ string characters and string arrangements ㅠㅠ

I'm comparing string characters and string arrays. #include <iostream>#include <string>int main(){string Subway[] = {Bulgwang, Hapjeong, Mapo-gu Office, Mangwon};string a = Telescence;int ...


1 answers
22 views
0
It's a non-class type

using namespace std;int main(){ char str[80]; char find[10]; char change[10]; char* pstr; char* temp = new char[80]; cin.getline(str, 80); cin.getline(find,10); cin.getline(change,10);pstr =strstr(str...

c++
2 years ago

1 answers
24 views
0
C2659 Resolution Questions

#include <iostream>using namespace std;class Rectangle {int width, height;public:Rectangle();Rectangle(int, int);int getWidth() { return width; }int getHeight() { return height; }int area(void) ...

c++
2 years ago
« - 49 - »

© 2024 OneMinuteCode. All rights reserved.