c++ tag

886 questions


1 answers
21 views
0
Question about the delete operator of C++.

In C++, new uses if(!p) to check memory allocation, but is there a way to check if delete returned memory? And when I use new to allocate memory, should delete be used in the main, should I use it in ...

c++
2 years ago

1 answers
20 views
0
I have a C++ Code Fight question.

I have two questions while looking at Code Fight answers.

c++
2 years ago

1 answers
133 views
0
Insert link list in ascending order

I am studying single linked list with c++ now. I want to insert values in ascending order, but I keep getting errors. Putting 1 and 0 works well, but putting 0 and 1 does not work. Maybe if (p == NULL...

2 years ago

1 answers
22 views
0
I'm a beginner at coding. Double link list. Assignment question

Hello, I made a code that uses a double connection list to input Corona information by country and print it out, but there are dozens of compilation errors I don't know what the problem is Attached is...

c++
2 years ago

1 answers
48 views
0
Can I put thread inside thread in C++?

Can I put a thread inside the thread?If you put a thread inside the thread now, Python can put a thread inside the thread (if you say a thread inside the thread A is B)AB / AB / AB / AB... It repeats ...

c++
2 years ago

1 answers
21 views
0
Business) C++ Array Application Six Wood Questions

Hello,I asked the programming related to the array application yesterday, but the code I worked on is not working well, so I'd appreciate it if you could take a look.Recently, I just learned the arran...

c++
2 years ago

1 answers
23 views
0
I have a question about C++

I'm a beginner at C++ and I have a question. include <iostream>using namespace std;void main(){ int myage = 25; cout << I am << myage++ << years old. << endl; cout <&l...

c++
2 years ago

2 answers
25 views
0
c++ code error question

#include <iostream> //2 using namespace std; struct student { int id; int name[10]; int sc[3]; int total; double ave; }; void main() { struct student ST[5]; int i, j; for (i = 0; i < ...

c++
2 years ago

1 answers
31 views
0
c++ code error question

#include <iostream> //11 using namespace std; enum itemcode { keyboard = 100,mouse,scanner,lase=200,inkjet,plotter }; void main() { enum itemcode item; cout << Enter item code :; cin &g...

c++
2 years ago

1 answers
55 views
0
In Cpp, a grammar that uses Pointer as a function?

Hello.It's Cpp Newbie, but there's a grammar I've never seen before, and I'm not sure how to search for it, so I'm posting a question like this.It's nothing but, like the title of the question, the da...

2 years ago
« - 77 - »

© 2024 OneMinuteCode. All rights reserved.