c++ tag

886 questions


1 answers
42 views
0
C++ Builder error during Windows Twisted installation.

When installing scrapy to crawl with Python, an error occurred while installing a package called twitted.They said there was no cl.exe, so after all the rumors... I installed Visual Studio C++ Build T...

2 years ago

1 answers
135 views
0
Why do you use > or < instead of != when increasing by 1 in the for statement?

Why do you use > or < instead of != when increasing by 1 in the for statement?In the chords that other people made,I've rarely seen a for statement that increases by 1.Is there any special reaso...

2 years ago

1 answers
71 views
0
Which is faster, stack allocation or heap allocation?

I think the stack is faster. But she's not a friendin my experienceIt takes different time depending on the situationI didn't do that when I used the stackWhich is faster, stack allocation or heap all...


1 answers
43 views
0
Why doesn't the C/C++ compiler give an error even if you put b[4] in a function that takes a[1] as a factor?

#include<iostream>using namespace std;int dis(char a[1]){ int length = strlen(a); char c = a[2]; return length;}int main(){ char b[4] = abc; int c = dis(b); cout << c; return 0;}I'm asking...

2 years ago

1 answers
33 views
0
I can't install g++ on fedora ㅜ

How do I install g++ on Fedora Linux?yum install g++They say they found nothing Gcc is already installed

2 years ago

1 answers
88 views
0
Why do you use an editor, not an index?

//code1for (int i = 0; i < some_vector.size(); i++){ //...}//Code2for (some_iterator = some_vector.begin(); some_iterator != some_vector.end(); some_iterator++){ //...}Usually, when you use a conta...

2 years ago

1 answers
127 views
0
Is it possible to do the epilogue of enum?

As far as I know, ++ or += cannot be used in enumThen, how do I translate C++ enum from beginning to end?

2 years ago

1 answers
102 views
0
What is segmentation fault?

There are 3 things I'm curious about.

2 years ago

1 answers
88 views
0
I have a question about C++

There are programs 1 and 2.Importing and using the same dll/lib However, after changing the value of the variable in dll in program 1, run program 2. I want to use the dll value changed in program 2, ...

2 years ago

1 answers
22 views
0
This is a static variable definition question for the parent class!

template <typename T>class Singleton{protected: Singleton() {} Singleton(const Singleton& single) {} ~Singleton() {}protected: static T* m_pInst;public: static T* GetInst() { if (!m_pInst) ...

c++
2 years ago
« - 67 - »

© 2024 OneMinuteCode. All rights reserved.