Questions tagged as 'c++'

1
answer

Depth Test is not working correctly in OpenGL

I'm having a problem with Depth Test . I have a scene where it contains three objects. A plan a cube and a cylinder. In my Render I'm doing for when rendering the cube it should disable the Depth Test. With this the cube (in orange) should...
asked by 04.02.2018 / 18:43
1
answer

How to save in a single vector, base classes and derivatives?

I have a C ++ job, and I need to write to a single vector, a base class, and two derivatives. How to make this vector?     
asked by 25.03.2018 / 03:59
1
answer

program does not take the system date

I have a program that I'm doing a test to see how it works out but I could not find the error that causes it not to return the system date and time, I thought it was regex but it is not already mexi practically in the constructor whole and nothi...
asked by 14.09.2017 / 06:15
1
answer

About __forceinline and __inline

What's the difference between using __forceinline or __inline ? And can you use __forceinline or __inline in large functions? Example: __forceinline void funcao1(void) { cout << "Funcao 1" << endl;...
asked by 28.09.2017 / 20:26
1
answer

Is it possible to include dynamic libraries in static?

The final goal is quite complicated, I'll try to explain as much as possible: There is the libA.so file and the libB.so file, both are required to use the code of my own libC library, which I would like to compile to be s...
asked by 25.07.2017 / 13:22
2
answers

Why do you accept values beyond the size of the vector?

INT vetor[3]; vetor[0] = 110; vetor[1] = 12; vetor[2] = 30; vetor[3] = 13; vetor[4] = 1; Cout << vetor[0]; Cout << vetor[1]; Cout << vetor[2]; Cout << vetor[3]; Cout << vetor[4]; In shor...
asked by 01.08.2017 / 04:19
1
answer

What would be Pro * C / C ++?

From what I saw it is using in Oracle, but can I use it with another bank? Pro * C / C ++ is useful today? Could you pass an example code? Does it have PL / SQL difference? Or are they used together?     
asked by 08.08.2017 / 13:47
2
answers

How to clear the vector name so that it does not stay with the rest of the previous strings

#include <iostream> #include <string.h> using namespace std; int main() { int condicao; cin >> condicao; //Determina o tamanho do vetor // while(condicao != 0){ char nome[100]; for(int iniciar =...
asked by 16.03.2017 / 02:52
1
answer

Error compiling this simple program that shows the corresponding month

I'm trying to compile this program here in Code :: Blocks but I can not and can not understand why. #include <iostream> #include <string> #include <stdlib.h> #include <stdio.h> using namespace std; using std::endl; usin...
asked by 22.02.2017 / 16:40
1
answer

Dynamic Array Allocation in C ++

I would like to allocate this array dynamically in C ++: int main() { int n,m; cin>>n>>m; if(n>m){cedula tabela[n][n];} else {cedula tabela[m][m];} return 0;} But the code does not compile, I think it has to d...
asked by 13.02.2017 / 13:29