Questions tagged as 'c++'

1
answer

Why could I initialize a string with a direct initialization but not with a reference?

Because I can initialize a string with a direct initialization string tentative("TENTATIVE"); string motAffiche = tentative; but not with a reference string tentative("TENTATIVE"); string motAffiche = tentative; Indeed, gedit tells me...
asked by 14.03.2017 / 02:21
0
answers

How is a matrix ordered in C ++?

I want to sort an array in C . The criterion is in zig-zag (like the game of the little vibrator), the smaller one must be left down to the right, then it goes up and down without stopping until it reaches the left above. The following is a...
asked by 13.03.2017 / 02:53
0
answers

How Clion is configured to work with SDL

I am learning to use SDL in C ++ in codeblocks but I decided to use Clion, the IDE of Jetbrains, look how I could configure it but it did not work. If I can call the libraries, but when compiling, send me this error. Someone knows how to s...
asked by 23.02.2017 / 18:54
1
answer

How VAOs work in OpenGL

I have tried to look through lots of tutorials and online documentation about HOVs because they cost me a lot to understand them, but it seems impossible. From what I understand, it is assumed that if you call glBindVertexArray, from there wh...
asked by 28.01.2017 / 19:35
1
answer

Problems in compiling this C ++ program

I am trying to compile the following program: main.cpp: #include <Windows.h> #include "apphelp.h" HMODULE hAppHelp; pfnSdbCreateDatabase pSdbCreateDatabase; pfnSdbWriteDWORDTag pSdbWriteDWORDTag; pfnSdbWriteStringTag...
asked by 30.01.2017 / 12:05
0
answers

I get error LNK1561

I am learning to design classes and I have found a source file of the book "C ++ for C programmers" in which an elementary implementation is made for complex numbers (I already know that the type exists complex in the STL , but what interes...
asked by 12.01.2017 / 20:29
1
answer

C ++ Win32 Project: Error "Unable to start program. Can not find the file specified "

I have a problem with visual studio 2010. When creating a new project using Win32 Project and running it without making any changes, this error occurs: Unable to start program 'c:\users\....\xx.exe'. Cannot find the file specified" Could s...
asked by 28.02.2017 / 13:17
2
answers

Error reading with QDataStream

Hi, I'm using qdatastream to read binary data from a stream. Well the code that basically implements is the following: QFile *archivoStub; archivoStub = new QFile(); archivoStub->setFileName(QApplication::applicationFilePath()); archivoStub...
asked by 15.12.2016 / 19:43
1
answer

Vector dispersed operations

I'm doing this class called matrix, and I want to work with dynamic arrays, istreams ostreams, with scattered vectors, but I have not been able to start, this is what I did, any idea is appreciated: // Operaciones con matrices:suma,resta,multi...
asked by 26.02.2017 / 12:56
1
answer

You doubt. Why can not I create the file?

int main() { struct cliente { int documento; char nombre[20]; char apellido[20]; char telefono[10]; int ocupacion; int sueldo; }; char opc; entrada.open("datoscliente.txt",ios::out|ios::app)...
asked by 29.11.2016 / 16:46