Questions tagged as 'c++'

1
answer

Converting STRING, WriteProcessMemory ()

I have the following situation, the user must enter a memory address: (I'M USING THIS METHOD, IT MAY NOT BE CORRECT FOR THE FOLLOWING SITUATION) std::string TEMP_MEMORY_ADDRESS; std::string MEMORY_ADDRESS = "0x"; std::cout << "Digit...
asked by 12.02.2015 / 20:03
2
answers

Print the N major notes and names among the values that are in the struct vector

Hello, I would like some help here, more specifically in case 4 if. I would like some solution without having to sort the vector. Thankful. #include <iostream> #include <cstdlib> #include <stdio.h> #include <stdlib.h> #...
asked by 03.03.2015 / 21:36
1
answer

Showing the value of ReadProcessMemory C ++

Since I used the function below: BOOL readyProcessMe = ReadProcessMemory(process, (LPCVOID)memory, &value, 4, 0); How can I show the correct value in a label?     
asked by 26.10.2014 / 09:39
1
answer

How to use the cURL library for c ++ correctly?

I'm having trouble copying a simple test using the cURL library for C ++ because it always returns this error: C:\Users\Raphael\Desktop\HTTP Request\collect2.exe [Error] ld returned 1 exit status Makefile.win     # Project: SQL Request    ...
asked by 16.09.2014 / 10:00
1
answer

Add pointer to a std :: vector

Hi, I need to add in a vector<TimedCommand> tCommands; access references for TimedCommand instances, eg: TimedCommand command1("*.*.*.*.*.*",&sonCommand,"13"); (...) tCommands.push_back(&command1); Unfortun...
asked by 05.11.2014 / 14:58
1
answer

C / C ++ - Error comparing char with strcmp ()

I need help, I'm having trouble comparing two variables using strcmp (). [Error] invalid conversion from 'char' to 'const char *' [-fpermissive] struct transicao{ int estado; //estado em que o DFA esta char simbolo; //simbol...
asked by 12.09.2014 / 16:37
2
answers

Problems with vectors and structs

I'm a beginner in C ++ (even because the code is basic) and I'm having a problem with an exercise that needs to save the data of 10 people (name, date of birth and height) using structs. The structs are: typedef struct { char nome[50];...
asked by 29.07.2014 / 21:43
1
answer

Pass pointer as C ++ function parameter

Good morning, I have the following problem: I have a class that represents a List, and from it I have created three objects (I do not know what happens) list1 (5), list2 (5), list3 (10). template<class T>class Lista{ private:...
asked by 11.06.2014 / 14:44
1
answer

C ++ Function Error: can not be used as a function

Square can not be used as a function. Can someone tell me how to fix it? #include <iostream> #include <string.h> #include <sstream> #include <cmath> using namespace std; struct leituras{ float vetor[1000]; int n; }n...
asked by 09.06.2014 / 03:08
1
answer

Error in vector (one-dimensional array)

Does anyone know what is wrong with this algorithm? Make a program where the user enters N values and stores the first 10 even numbers in a vector named pair. When you reach the tenth even number, close the program and print the vector .......
asked by 07.06.2014 / 22:47