Questions tagged as 'c++'

0
answers

Help with minimax in OSO game

I have a problem, I am developing the AI paper game AI OSO, it turns out that minimax is designed for players in turns in which whatever the player's move the next turn will correspond to the next, so in the game of BEAR this is not fulfilled be...
asked by 04.07.2017 / 01:42
1
answer

Error in TAD operations C ++ matrix

I am implementing some operations for a matrix TAD, the operations are: addition, subtraction, multiplication and transpose. Most of the TAD is already programmed in the exercise, I just have to define and implement those operations. The c...
asked by 21.06.2017 / 10:21
0
answers

Send email from C ++ (boost)

I have an Ubuntu server where an application made in C ++ that uses the boost library to send email from a < em> GMail . This part of the program was made by another person with whom I no longer have contact. Now I have created a twin...
asked by 21.06.2017 / 17:09
1
answer

Stop running, adding and displaying files with C ++ delimiters

I have a program in which I capture and show with delimiters, I try to use tokens with the function strtok to separate the record by the same delimiters but at the time of printing it only prints the first record of the file and then stop...
asked by 04.09.2017 / 06:28
0
answers

It does not work if I do not put the manual image because?

void MainWindow::on_tableView_clicked(const QModelIndex &index) { if(!index.isValid()){ return; } btnEdit->setEnabled(true); btnDelete->setEnabled(true); btnSave->setEnabled(true); btnImg->setEnable...
asked by 26.05.2017 / 12:57
1
answer

Assign a matrix to the space of another matrix c ++

I need to match a matrix to a space in another "Larger" matrix but trying the following code int main () { int Matriz [3][3],i,j; int SubMatriz [3][3],a,b; Matriz [0][0] = SubMatriz; } I try to match the space 0,0 of the first matr...
asked by 26.05.2017 / 16:42
0
answers

Friendly function between classes

Good morning, I have a problem with the declaration of a friendly function: #ifndef _TABLERO_H_ #define _TABLERO_H #include "matriz.h" #include "jugador.h" class Tablero { friend int Jugador::escogePosicion(Tablero& tab); ......
asked by 03.06.2017 / 20:47
0
answers

Paint and delete opengl C ++ object?

Good, I edit the doubt in opengl in c ++ These are the main functions where my question is located (I have deleted the camera configuration code, lights and color buffers to simplify). The "drawRoom" and "drawMesa" functions combine primitive...
asked by 23.05.2017 / 16:40
2
answers

Compile but not run. wxwidgets

How about. I am new using this tool. I'm trying to run a program in c ++, with the wxsmith plugin in code :: blocks. I recently installed wxwidgets, and I wanted to run a program with a single button, compiling it compiles without any problem...
asked by 28.05.2017 / 05:33
0
answers

Compiled error: ([Warning] unknown scape sentence "\ 040 [enabled by default])"

I'm trying to solve some c ++ exercises in devc ++ and when I print on the screen with prinft I get an error that says: ([Warning]unknown scape sentence "0 [enabled by default])". It appears in the code: #include<stdio.h>...
asked by 27.05.2017 / 06:41