Posts by L.Hora • 303 points
9 posts
-
0
votes1
answer34
viewsA: Is it possible to pointer pointer access class member?
I was able to resolve the situation with a feedback on the gcc.gnu.org website. It seems that it was a compiler bug that sent the wrong message: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91138…
-
0
votes1
answer34
viewsQ: Is it possible to pointer pointer access class member?
I’m starting a Gtkmm app with Glade. I want to put all event handling functions in a separate class from which the Glade file is being instantiated. Following the example of the book Programming…
-
6
votes3
answers144
viewsQ: Type declaration in parentheses
I am porting an application done in c to C++ and found the following function statement: set_funcao(0, (double)pow((double)2, 32) ); What does the type in parentheses mean? It is the type of return…
-
2
votes3
answers606
views -
1
votes1
answer189
viewsQ: Segmentation failure
I created a class to display a string at the terminal, but in addition to displaying the string, also, displays the following message: "segmentation failure". I debug with GDB, but could not resolve…
-
2
votes1
answer150
views -
1
votes1
answer451
viewsQ: File reading.ini
It is possible to read variables in arquivos.ini with C++? Ex: host = "localhost" name = "username" pass = "password" port = 1010 When reading from this file I set through the ifstream. ifstream…
-
2
votes1
answer2339
viewsQ: Check if a variable is numeric or string
Good afternoon, Is there a function in C++ that checks whether the variable is a string or numeric? An example is: In PHP use is_string(variable) or is_numeric(variable).
-
4
votes1
answer199
viewsQ: What is the reference of C++?
class Data { int d, m, a; public: void inic(int dd, int mm, int aa); void soma_ano(int n); void soma_mes(int n); void soma_dia(int n); }; void timewarp(Data& d) { } From what I understood the…