python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What can I do to make my code more efficient and not use global variables
So today I built a very simple number guessing game and the below code is what I wrote. I understand that it's incredibly inefficient and I use global too much, which is generally known as a bad pract...
Ahmedh Aaqil Rifky
Votes: 0
Answers: 2
Python change the scope of classes dynamically created with type() function
I have a factory class with a method that generates classes dynamically.
This class is within a factory.py file.
class Factory:
def __init__(self, ast):
self.ast = ast
self.classes...
ibi0tux
Votes: 0
Answers: 0
no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) ()'
I am making a project in C++ and it gives the following error:
in function 'int main()': Line 35; Col 12; [Error] no match for call
to '(std::string {aka std::__cxx11::basic_string}) ()'
This is Lin...
thes_real
Votes: 0
Answers: 2
Why does my QT C++ application not update a pushbuttons' text inside the event routine when directed to do so?
I'm very new to Qt Creator and have a question regarding the reason that an update to a pushbuttons text is not occurring at the time I am expecting it to. Below is a snippet of the code showing the p...
Mark McC
Votes: 0
Answers: 1