Questions tagged as 'c++'

1
answer

Doubt of passage of vector of structures to a function in C

I get the following error when wanting to pass the vector to a function:    [Error] could not convert '(teachers *) (& prfsr)' from 'professors *' to 'professors'. I pass the code to see what's wrong, I've been trying for a while to s...
asked by 10.06.2018 / 06:07
0
answers

Use TerminateProcess to kill a process

Very good, lately I am having problems when trying to kill any process in C ++. And this is the code: #include <Windows.h> #include <stdio.h> #include <iostream> using namespace std; DWORD pid; int main(){ HWND Ventana = Fi...
asked by 09.06.2018 / 14:29
0
answers

Problem with reading GPS data with SIM808 module

It's been trying for a long time to run my SIM808 module, I have problems when reading the data, execute the power-on and parameterization functions correctly, the problem is when reading the data, since it does not return anything and the progr...
asked by 06.06.2018 / 16:27
1
answer

Use long text in sqlite3 Database

I'm doing a program in C ++ in which I use a SQLite database. I have attributes of type string that I save as text. The problem is that when these strings are of great length, do not insert or read as you should, but other characters appear, des...
asked by 03.06.2018 / 16:56
0
answers

Problem with "quotes" and Paths in a CMD script (Batch), passing arguments to an EXE

Something very strange is happening to me with this script. For some reason the variable% PTH% is giving problems with the quotes, and because of this you can not use PATHs that contain spaces. @echo off set CurrDir=%cd% set BatchFileDir=%~dp0...
asked by 29.05.2018 / 18:28
0
answers

Modify a record in a text file

#include <cstdlib> #include <iostream> #include <fstream> #include <conio.h> #include <string.h> using namespace std; main() { ifstream Archivo; ofstream Auxiliar; Archivo.open("Articulos.txt", i...
asked by 25.05.2018 / 00:28
2
answers

How to intersect two text strings?

With the intersection I mean that if I have two sentences I keep the words and not the same characters //Programa para la interseccion de dos cadenas de texto #include<iostream> using namespace std; int main(){ string x,y,frase; cout...
asked by 19.05.2018 / 20:13
0
answers

Infija a Posfija in c ++ using batteries

Hi, I need to do a program that converts an equation in infixed notation to a posifija notation and prints the equation in infix and posfija notation. I already reviewed it several times and made some modifications but I can not find the error,...
asked by 16.05.2018 / 05:01
0
answers

Rotate QGraphicsItem does not respect the angles

I am having problems with something that I thought would be simple ... but it is complicating me. I have a QGraphicsItem that has a line that goes from A to B. I need to turn the QGraphicsItem so that the line from A to B is quite straight on th...
asked by 16.05.2018 / 18:52
1
answer

How to convert a struct * to a type variable const * char?

I'm using a third-party library called "graphics" with which I'm trying to show a binary tree type data structure graphically, my problem is that there is a function called: outtextxy(posicionX,posicionY,const *char) and I have a struct don...
asked by 15.05.2018 / 00:25