886 questions
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 ...
I have two questions while looking at Code Fight answers.
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...
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...
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 ...
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...
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...
#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 < ...
#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...
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...
« | - 77 - | » |
© 2024 OneMinuteCode. All rights reserved.