Questions tagged as 'c++'

1
answer

Call a function based on struct passed in reference?

How do I call the menu function by passing more than one struct per reference according to validation in the validation function? I'm sorry I'm starting now and I decided to do this little exercise to practice functions, classes, and structs...
asked by 10.01.2018 / 14:04
1
answer

Failed to access vector option that does not exist

I did a few years ago an inheritance and polymorphism algorithm it is working properly but if I type 7 which is a nonexistent option on the menu it returns segmentation failure instead of returning nothing by printing the phrase, what's the prob...
asked by 18.01.2018 / 18:02
0
answers

Reading and writing binary file in iteration

I'm doing a college job that requires us to create a system that writes various structures read from the standard output into a binary file, leading to the need (?) of iteration usage. Unlike the ease we have in text files, I'm having trouble...
asked by 08.01.2018 / 23:26
0
answers

Close specific program in java (.jar) with C ++

I have a program in java running, I would like to close it if necessary with a monitor written in C ++. As in taskmgr only appears java.exe, how to close the specific program.jar?     
asked by 15.01.2018 / 13:41
0
answers

Create application to communicate with SYSFAN output of the motherboard

Hello, I need a library, language, code idea, so you know where I can write the code to communicate with the Fan output from the motherboard. To better understand the idea, there are applications like SpeedFan that do this work. However, I ne...
asked by 15.01.2018 / 01:07
1
answer

How to check the status of a Gtk :: RadioMenuItem object?

I'm building a dynamic menu using gtkmm. The menu is built as follows: Gtk::RadioButtonGroup appRadioGroup; bool groupInitialized = false; Gtk::Menu *driverSubMenu = Gtk::manage(new Gtk::Menu); driverSubMenu->set_visible(true); Inicio Loo...
asked by 05.01.2018 / 22:56
1
answer

Opengl Unbind Texture?

I have a list of objects; Home Each object has different amounts of texture; Home When I make glBindTexture of 2 textures (diffuse and specular) for an object, it may happen that the next object can only have 1 (diffuse) texture; Home It...
asked by 30.12.2017 / 20:57
1
answer

Syntax of the for without the counter

I'm a beginner in programming and I'm studying the C ++ language, so it's also my first time using this site. But finally after doing a basic course on the referred language, I downloaded a source code to understand a little of the practice....
asked by 26.12.2017 / 04:03
0
answers

Failed to create a dll with constructors in classes

I created a header with the dll settings: globaldef.h #pragma once #ifdef OPENXML_LIB #define OPENXML __declspec(dllexport) #else #define OPENXML __declspec(dllimport) #endif // OPENXML_LIB I've created two classes so far: xmldoc....
asked by 27.12.2017 / 12:46
0
answers

Julian calendar with wrong date

I made the following program based on one of my scripts that does other calculations but the same is returning wrong dates for the Julian calendar, because March 14, 1964 falls on Friday, and 29/03/1987 falls on Saturday and 29/02/2000 falls on...
asked by 19.12.2017 / 05:41