Questions tagged as 'c++'

0
answers

My texture is not displayed in SDL

What happens is that I define code to show a texture part in C ++ with the SDL libraries. Something like this: #include <SDL.h> #include <stdio.h> SDL_Window * ventana; SDL_Renderer * render; SDL_Texture * textura; SDL_Rect tRe...
asked by 02.09.2018 / 17:15
1
answer

About std :: tuple, and how to use it as a member of a class

I have an implementation that works for me in the following way: // clase de enteros modulo el parametro N template<unsigned N> int_mod_N { unsigned m_i; // unico datro miembro /* ... implementacion ...*/ }; // clase que es una...
asked by 31.07.2018 / 21:02
0
answers

Problems with the buffer in structures with a lot of data c ++

I have this structure: struct Alumno{ string nombre; long ci; char sexo; int edad; string direccion; long telefono; Alumno*siguiente; }; Alumno*listaAlumno=NULL; and with this function I create my students (befor...
asked by 24.07.2018 / 02:57
0
answers

Error compiling OpenGL project

I was programming a project in C ++ with OpenGL that worked before I had to reinstall Ubuntu. After reinstalling Ubuntu, I installed the libraries using the following commands in the terminal:    sudo apt-get install freeglut3 freeglut3-dev...
asked by 24.06.2018 / 17:29
2
answers

Obtain window in Linux by coordinates (C / C ++)

I would like to know if someone can tell me if there is any way to obtain information from a window that exists on the desktop given certain coordinates. That is, if there is an alternative to the Windows "WindowFromPoint" function but for Li...
asked by 22.05.2018 / 02:42
0
answers

Parallel matrix calculations with MPI (Scatter Gatter)

This program is an example to try to parallelize a matrix tam * tam. Each process must have the same load, except the process 0 that makes size too many iterations. Each piece of Al must receive all 1 and then send it back to All 2. I've been...
asked by 03.05.2018 / 00:23
0
answers

Problem in sum overloaded with array pointers [closed]

I have an overloaded operator + that returns an object of type IntArr, the sum of arrays is done well inside the function but when I do A = B + C the first two elements are not copied, leaving any numbers, why Does this happen? Thanks Over...
asked by 21.04.2018 / 17:01
0
answers

error when importing library in c ++

I need help. I created a library and at the beginning I put the: #ifndef _PILA_H #define _PILA_H ...... ...... #endif but it causes problems when importing it into two different .cpp files, I also import it into another library .h both libr...
asked by 15.04.2018 / 02:42
0
answers

Stop reading events with SDL2 until the resource load is finished

Hello stackoverflow! I come to ask you for help with the famous SDL2. As you know the pile where the events are stored grows and grows constantly unless it is released for example in the following way: SDL_Event ev; ... while(continuarJuga...
asked by 28.03.2018 / 19:27
0
answers

Problems with the Menu to declare an array of the C ++ Room

How do I get it to enter the menu and select the room indicated and fill in the vector? I know I have to declare an array for the rooms and these are filled and emptied at the user's will but I do not know how to make it functional between ob...
asked by 10.04.2018 / 18:50