c++ tag

886 questions


1 answers
130 views
0
c++ new operator error

https://github.com/j209446/BST_bag_class-c-/blob/master/main.cpp This is my cpp file. When I built it on VS2015, I got a C2668 errorAn error occurs in the new operator, but I don't know why.node->s...


1 answers
103 views
0
C++ Grammar Questions

While studying openCV, I encountered the following cases.Range r1(0, 3), r2(3, 7);int data[] = { 10, 11, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 30, 31, 32, 33, 34, 35, 36, 40, 41, 42, 43, 44,...

2 years ago

1 answers
171 views
0
Curious about parameter type inference of c++ function template

#include <type_traits>class A{};template< typename T > struct is_allowed { enum { value = false };};template<> struct is_allowed<A>{ enum { value = true }; };template< typ...

2 years ago

1 answers
25 views
0
Hello, I have a type part question. Derive a function whose int element returns a pointer to an array of four elements (there are no parameters of the function)

Based on the conversion type intPut the element behind the name of the np int[NP][4]Isn't it over if you write int(*[NP])[4] for the indirect operator?But up to here, I think it's a pointer type that ...

c++
2 years ago

1 answers
23 views
0
Error problem when entering c++ string

int money(int coin, int add) { int coin2;here:system(cls);coin2 = coin;menu(coin, add);cout << Please make a deposit. (Only 100 won units.) : <<endl;while (1) { cin >> coin; if (coin...

c++
2 years ago

3 answers
32 views
0
It's a question about the if statement

Code is Java, but not limited to Java. The code below is to create a class in a single tone pattern. public class Company { Create constructor with privateCompany(){}; //private private static Company...

2 years ago

1 answers
23 views
0
When writing the c++ code in Visual Studio 2017,

Can I check the blank project in the new project-windows wizard and add the source file...?Is it different from 2015?Is it okay not to use #include stdafx.h when starting the code?

c++
2 years ago

2 answers
26 views
0
c++ Second largest integer input question

It's a program that outputs the second largest integer when you receive the cleaning numberI think it's going well and there's no error, but I keep getting wrong answers. Please tell me what's wrong#d...

c++
2 years ago

1 answers
69 views
0
Questions about c++ cout

Hello, everyone I am a student studying c++.I am inquiring because there is something strange while studying c++.==================char c = 'a';char *d = &c;cout << d << endl;printf(%p...

2 years ago

1 answers
30 views
0
I'd like to ask you about how to get music information from C++

I am currently studying data structure at C++ and making music-related programsCurrently, the user directly inputs the title or album singer from the console window. If you receive only the title of t...

c++
2 years ago
« - 47 - »

© 2024 OneMinuteCode. All rights reserved.