Questions tagged as 'c++'

1
answer

Where is the LITTLE_ENDIAN_HOST macro defined and how does it behave?

After finally understanding how to decode opcodes with a project of a CHIP-8 emulator I decided to go back to an old project of mine, a Gameboy emulator, so I started to implement the CPU and its registers, gameboy is similar to the 8080 and z80...
asked by 04.07.2018 / 13:06
0
answers

Visual C ++ save a photo from a panel with drawings

I'm working on a simulator, where I have a panel (simulationArea) and moving objects, as well as drawings that are made of some lines drawn between points representing the routes to be traveled by such moving objects. However, my problem is that...
asked by 11.07.2018 / 01:28
0
answers

Error: can not be called in the list of arguments c ++

I've been trying to use the bunifu transition in windows form c ++, but without secesso because of the error. In c # would be "bunifutransition.showsync (panel);" but in c ++ neither a c # converter for c ++ solves. C # Private: System::Voi...
asked by 15.07.2018 / 01:02
0
answers

Use a custom font

Hello, I have a code that, although it does not give a compilation error, is not working: LPCSTR szFontFile = "Myfont-Regular.ttf"; AddFontResourceEx( TEXT("Myfont-Regular.ttf"), // font file name FR_PRIVATE, // font character...
asked by 26.06.2018 / 20:49
0
answers

error: ld returned 1 exit status C ++

I wrote this code in C ++ in Codeblocks with class Register_moradores, but this is giving the error    error: ld returned 1 exit status I did not find anything to help me on the internet. I do not know how to program very well yet. In...
asked by 24.06.2018 / 01:36
0
answers

OpenGL 3D Cylinder and lookAt

Hello, I would like to know if there is a problem in the code below. I need to draw a cylinder in the center of the window and make rotations through the mouse. The code below generates a very large cylinder with the camera looking in the middle...
asked by 26.06.2018 / 05:18
2
answers

Problem replacing strings

Hi, I'm starting to create an interpreter of equations, I want to replace operators with words, but things are not going well ... main.cpp #include <string> #include <iostream> #include <fstream> #include <vector&...
asked by 19.06.2018 / 04:19
0
answers

Read N numbers in a vector, and calculate the repetitions

Hello, I need help with an issue, the statement asks Read a sequence of n real numbers in a vector, calculate the quantity and percentage of times that each of the numbers repeats. the number 'n' of numbers should also be read from the keyboa...
asked by 18.06.2018 / 18:38
1
answer

Kruskal's Algorithm sorted with selection sort

I am trying to compare two variables of a struct type, however it is returning error. struct aresta{ int v1; int v2; int peso; }; ... aresta peso[62816]; aresta aux; int i, j=0; for(i=0; i<(tamanhoVetor - 1); i++){ int...
asked by 11.06.2018 / 09:45
0
answers

Failed to execute the Problem Bags (Guloso | D) - CodeCad

Hello, I'm trying to do an exercise in CodCad called Pouches, where I need to use greedy algorithms. Link: link I have tested several types of input and all have hit the exit of my program, I need help to know where the error is and because...
asked by 13.06.2018 / 02:47