c++ tag

886 questions


1 answers
112 views
0
When do you use friend in class?

I know the friend declarationI've never used it beforeI don't know when to use it.If you think about the encapsulation of OOP,Isn't friend an exceptional function?

2 years ago

1 answers
20 views
0
Please tell me what's wrong with the c++ operator overloading

I tried to implement the + part while overloading the operator, but it didn't work I generally hit it to check, but it didn't work, so I'm leaving a message.I think it's a grammar problem, but I don't...

c++
2 years ago

1 answers
24 views
0
linked list k Find and clear the element (c++)

It's a program that connects elements (e1, e2, ..., en) of the list given to the Singly Linked List in chain format and stores elements (e1, ..., en). (The link of the last node in the Singlely Linked...

c++
2 years ago

1 answers
98 views
0
Aski Code Case Conversion Problem

After receiving a string in an array without using a conditional statement, you should create a code that converts uppercase letters to lowercase letters and lowercase letters to uppercase letters. I ...

2 years ago

2 answers
143 views
0
How to Use For Statements Using C++ Auto

int * buff = new int[10];for(auto x : buff?? ){ x = 0;}I want to initialize all the buffs that were assigned dynamically to zero, buff?Please tell me how to write down.I tried buff[], buff, etc., but ...


1 answers
77 views
0
I want to change the int to a string

Not the way I know itPlease tell me the easiest way to change the int type to string!//1.int a = 10;char *intStr = itoa(a);string str = string(intStr);//2.int a = 10;stringstream ss;ss << a;stri...


1 answers
69 views
0
What is the difference between constint*, constint*, and int const*?

const int*const int * constint const * What's the difference between these three?


1 answers
111 views
0
How do I figure out the length of the array?

How do I figure out how many elements can fit in an array?It's not how many values I've allocatedI'd like to know how many can fit.

2 years ago

1 answers
105 views
0
:: To find out if there is a particular key map std.

std::map I want to find out if the key already exists or notWhat should I do?My code is making an error typedef map<string,string>::iterator mi;map<string, string> m;m.insert(make_pair(f,+...

2 years ago

1 answers
82 views
0
Question about epsilone()!

I'm reading the code that someone wrote epsilone()epsilon() appears in the associated document as double type minus 1 from the smallest number greater than 1.So epsilone() is the smallest number great...

2 years ago
« - 62 - »

© 2024 OneMinuteCode. All rights reserved.