c++ tag

886 questions


1 answers
67 views
0
C++ General Function Genericization Question.

void insert (int a, int b[], int index) { b[index] =a;}void insert (char a, char b, int index) { *(b+index) = a;}The goal is to make these two functions generalized generic functions, but I don't unde...

2 years ago

1 answers
73 views
0
auto convert? auto casting? On implicit casting in the CPP.

Constant *putsFunc = module->getOrInsertFunction(puts, putsType);There's a code like this.If I write it like this, the return type on the right is automatically casted as the return type on the lef...

2 years ago

1 answers
37 views
0
No instance of constructor matching C++ argument list.

#include <iostream>#include <vector>#include <string>#include <list>#include <algorithm>using namespace std;enum Menu { continent_search = 1, hwak, die, wanchi, EXIT };en...

2 years ago

1 answers
18 views
0
c++ Grammar Questions

Hi, everyoneWhat's the mechanism or grammar for the next code to work?The testFunc() function receives object D as a factor, and it works even if you insert object C pointer.#include <iostream>c...

c++
2 years ago

1 answers
62 views
0
C++ Logical Operations Questions

#include <iostream>using namespace std;int main(){ char id[6] = apple; if (id == apple) { cout << True; } else { cout << False; } return 0;}== among operators is an operator that c...


1 answers
53 views
0
C++ Char Questions

#include <iostream>using namespace std;int main(void){ char ID[10]; cin >> ID; cout << ID << endl; return 0;}I wrote it as above, but I set the size of the character array call...

2 years ago

1 answers
70 views
0
Visual studio code C/C++ compilation error C1034: iostream: No include path set.

To create C++ with VSCode, install the Visual C++ build tool in Visual studio build tools, set environment variables, and press Build> Executing task: cl.exe /Zi /EHsc /Fe: c:\Users\Administrator\D...


1 answers
22 views
0
I want to print strings randomly

There are many strings When I print it out like this, I want to press refresh number 6, and I want to make a random string, so what function should I use? It's an example from a book, but I can't solv...

c++
2 years ago

1 answers
20 views
0
What is the difference between the basic input and output of cin and cout from printf and scanf in c++?

I'm doing c++, and printf and scanf are all input and output, so I'm curious Is there a reason why I only use cin and cout because it's printed the same well as cin and cout?

c++
2 years ago

1 answers
28 views
0
To express calculus in coding (cpp, c)

I like mathBut you know calculus is a lot needed in coding and lifeHowever... There are many cases of differentiation or integration, so it is not easy to make differentiation or integration codeIs th...

c c++
2 years ago
« - 78 - »

© 2024 OneMinuteCode. All rights reserved.