Questions tagged as 'c++'

1
answer

Enter txt file in a datagridview

Hi, I have a question about how to send my records from a file with txt extension to a DataGridView work with C ++ in Visual Studio 2012 I enclose an example of how I have the txt file    Code, Name, Phone, Mail, Address   01, Samue...
asked by 07.05.2017 / 04:17
1
answer

Why do not they load the data from the table in the QLineEdit?

connect(tableView,SIGNAL (clicked()), this, SLOT(on_tableView_clicked(QModelIndex &index))); void MainWindow::on_tableView_clicked(QModelIndex &index) { if(!index.isValid()){ return; } QString id...
asked by 02.05.2017 / 12:12
1
answer

Insert in SQLite with C ++

With the "users" table created, I am ready to enter data in it. These data are entered by the user, and then inserted in the table. I have the following function: int registrarUsuario(string name, string second){ sqlite3 *db;...
asked by 31.05.2017 / 15:20
0
answers

Error compiling MPI C ++ in Eclipse

The error is as follows:    g ++ "-IC: \ Program Files (x86) \ Microsoft SDKs \ MPI \ Include \" -O0   -g3 -Wall -c -fmessage-length = 0 -o "src \ pt.o" ".. \ src \ pt.cpp" g ++: fatal error: no input files I have to say that I am working...
asked by 03.05.2017 / 23:49
1
answer

Why do not they load the data from the table in the QLineEdit?

connect(tableView,SIGNAL (clicked()), this, SLOT(on_tableView_clicked(QModelIndex &index))); void MainWindow::on_tableView_clicked(QModelIndex &index) { if(!index.isValid()){ return; } QString id...
asked by 02.05.2017 / 12:12
1
answer

TERM environment variable not set

I started doing my program on dev c without and I did not have any errors. Then I wanted to continue in codeblocks from mac but in the terminal I showed this TERM environment variable not set .. it appeared in each window as a title and as it...
asked by 17.04.2017 / 09:12
1
answer

Using linked lists, where is the error?

Greetings! Practicing chained lists, I can not find the error in the following code: #include <iostream> #include <string> #include <list> using namespace std; struct newNode { int info; struct newNode *link; }; typ...
asked by 23.04.2017 / 19:23
2
answers

Xcode does not print without a line break

A code that simple ... From one day to the next Xcode does not print anything without adding a \n to the end of the string. The same thing happens in c ++, it does not print without a endl . #include <stdio.h> int main()...
asked by 05.04.2017 / 06:26
1
answer

How to access members of a class with a class vector

I have the CClass class //clase.h class CClass{ public: int suma (int X, int Y); private: int X; int Y; } //clase.cpp //constructor aqui int CClass::suma(intX, int Y){ int resultado = 0; resultado = X + Y; return resultado; } And...
asked by 04.04.2017 / 20:38
1
answer

Print Multiple Data with a Vector in C ++

Good Night I have the following exercise in which I require that in the end I print the data (Name and Age) of people over 60 years. Until the moment it does not do it correctly and it prints all the cases and of step the age is not the indic...
asked by 15.04.2017 / 00:38