Posts by Artur • 1 point
6 posts
-
0
votes1
answer10
viewsQ: Initialization list of members with attributes from another class (inheritance)
I know a member startup list declares and at the same instant initializes such an attribute(s), that’s what I know so far. In the following code: #include <iostream> // std::cout class Foo {…
-
1
votes0
answers20
viewsQ: What are the members' initialization lists and under what circumstances should they be used?
What is the purpose of a member initialization list that is used in class/struct constructors in the C++ language and under what circumstances it should be used.
-
2
votes1
answer70
viewsQ: Doubt about C++ pointers
Why if a char type raw pointer is pointing to some character of a std::string and print this pointer without the asterisk (*) it will show the rest of the string from the character it is pointing…
-
2
votes2
answers71
viewsQ: How to use comparison function on a Std::Sort
In the code below the program must order the vector campanha based on the number of votes of each councilor: #include <iostream> #include <vector> using namespace std; struct Vereador {…
-
0
votes1
answer20
viewsQ: How to change what is written on a Tkinter. Text in Python?
In a tkinter.Entry, to change what is written I could put a StringVar in a textvariable and I could change this StringVar there is any moment that would be changed in the tkinter.Entry also But in a…
-
0
votes1
answer37
viewsQ: Using Function that did not have the library included in C++
I was reading about the function max_element in the documentation of C++ which is a function that points to the largest element in a list, vector, etc... And there it said that this function belongs…