c++ tag

886 questions


1 answers
97 views
0
Problem occurs in the destructor. Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

I keep getting errors from the extinction person, but I'm using xcode, so I don't know which part is the problem ㅜ

2 years ago

1 answers
23 views
0
C++ beginner's question ㅜㅜ

We are making a betting game that ends when the amount after starting betting becomes five times the starting amount or when the amount after betting becomes zero. When the amount becomes zero, the pr...

c++
2 years ago

1 answers
79 views
0
I want to call the structure declared in class private in C++ in the main function

In the header file, a class named Student has been declared and a structure named collector has been declared in private. I want to make one more cpp file and then make an electro structure in the pri...

2 years ago

1 answers
22 views
0
c++ polymorphism

#include Account.hint main() { Account user; EnglishAccount user1; int setting = 0; cout << This is language setting << endl; cout << 1. Korean 2. English << endl; cin >>...

c++
2 years ago

1 answers
23 views
0
I have a question about C++. I'm really a beginner ㅜ( (complex matrix)

Creating 3*3 complex matrix. I haven't learned #include yet, so I'm writing it through operator overloading, but even if I think about it and try it, I keep getting errors. I'd appreciate it if you co...

c++
2 years ago

1 answers
24 views
0
c Questions about language arrangement

This is Corinne. I want to put the prime numbers in the b array and get it back to zero when it's not a prime number. I think I made the wrong code for the few, but what's the problem?#include<stdi...

c++
2 years ago

1 answers
20 views
0
I have a simple question for beginners of c++ Array.

#include <iostream>#include <string>using namespace std;int main() { int arrayName[3] = { 1, 2, 3 }; cout << arrayName[2] << endl; cout << Array size is << **array...

c++
2 years ago

1 answers
24 views
0
How is this possible when the computation can be done at compile time?

There is a content that is calculated at compile time while studying tmp or constexpr. How can a compilation be calculated during this process when you know it's simply changing the source code to mac...

c++
2 years ago

1 answers
42 views
0
It says 'dataIn was nullptr'.

QUEUE* Node = createQueue();int* dataIn;int* dataOut;void BreadthFirstprint(Tree* tree) { if (tree) { *dataIn = tree->data; enqueue(Node, &dataIn); BreadthFirstprint(tree->left); Breadth...

2 years ago

2 answers
22 views
0
Please tell me why the c++ code error is coming up

#include<iostream>using namespace std;class First{public: void SimpleFunc() { cout << First << endl; };};class Second :public First{public: virtual void SimpleFunc() { cout << ...

c++
2 years ago
« - 82 - »

© 2024 OneMinuteCode. All rights reserved.