Questions tagged as 'c++'

1
answer

Failed to retrieve a custom item in a QListWidget

I'm trying to retrieve data from a QListWidgetItem when I click on the list, but I'm not getting it. I made a custom Widget to list the elements, however although I can not visualize I can not in the click event retrieve my element. Applicati...
asked by 31.08.2018 / 19:02
1
answer

How to debug a C / C ++ application remotely using ECLIPSE, different operating systems?

I'm developing a C ++ application that runs a NanoPI M3 card with Linux specially compiled for my purpose, and there have been some unexpected errors and behaviors, I wish I could debug the application remotely since the NanoPI M3 is a Cortex-A5...
asked by 08.10.2016 / 09:00
1
answer

Understand C ++ / Assembly code

I am studying a Node, and in this process I decided to help in the study to migrate a system in c / c ++ to node, however I am not familiar with c / c ++ and I have a code snippet that I can not understand very well he does, could you help me?...
asked by 03.09.2016 / 05:13
1
answer

why does g ++ not compile the code that visual studio compiles?

and how do you guys think you can handle it? G ++ output Loader w Version Checker.cpp:35:2: error: 'b' does not name a type } w h i l e ( P r o c e s s 3 2 N e x t ( S n a p S h o t , & p r o c E n t r y ) ) ; ^ W...
asked by 25.01.2018 / 04:22
1
answer

Open Visual C ++ with arguments to compile

I'm starting with the visual C ++ and I have a project where it is necessary to visual c ++ compile the program automatically. so I thought of arguments like we can use at the normal prompt like: cmd /k cd c:/Windows But I have not figured...
asked by 25.01.2018 / 05:54
1
answer

Working with data received by socket in C

I have a script that receives data via socket made in C, and I'm having trouble working with this data. The data received from the client: "imei: 123123123,23123, tracker, 0.0 ......". I need to receive this data and give an explode type t...
asked by 15.03.2018 / 16:19
1
answer

How to use map / create keys to store cycles c / c ++?

What is the most efficient c / c ++ framework I can use to create and store cycles, so that I ensure that repeated cycles are not stored? I have a struct CYCLE, such that: struct CICLO { vector<Arco> rota; float COST; } struc...
asked by 27.03.2018 / 16:25
1
answer

Problem with file recognition.h

I've created arquivo.h and arquivo.cpp , arquivo.cpp by including #include "arquivo.h" automatically recognizes, already in my main.cpp does not recognize so I can not use the data of this file.     
asked by 14.08.2015 / 15:05
1
answer

Class Vector and random numbers in C ++

The function only returns the memory address, how do I get it to return the contents, not the memory address? #include <iostream> #include <time.h> /// por causa de srand() #include <stdlib.h> // para poder gerar os pesos...
asked by 23.06.2015 / 00:16
2
answers

Adding a char to a char pointer in C / C ++

I need to add char to a char pointer. For example: I have a pointer of char named name, which receives "log", after the process, I want it to be "log1". I tried to implement this, but it did not work. bool trocarNome(c...
asked by 27.04.2016 / 19:33