Questions tagged as 'c++'

0
answers

Old Game in C with MiniMax. Problem printing impressions

I and two other friends are doing a game of the old in C using MiniMax and tree as a Data Structure project and we are having a problem when it comes to receiving the game, and also when it is time to show it to the user. We believe that the err...
asked by 30.06.2017 / 05:09
0
answers

Combination of various items

I have a set of items and each item has the following elements: E = (índice, espessura, largura, demanda) i = índice; e = espessura; l = largura; d = demanda; I have two more variables: int min, max; Let's call the possible combination...
asked by 01.06.2017 / 22:57
1
answer

pstree in c ++ program

The process tree should be shown at the beginning of the execution, at the moment in which all processes are created and at the end of the program. (pstree -s) This requirement in bold is part of the development of this code below, the code...
asked by 23.06.2017 / 21:38
0
answers

Binary tree - Scroll and display elements

I would like to know how to go through and display the values of the tree in post order, I tried several ways and I could not. #include <cstdlib> #include <iomanip> #include <iostream> using namespace std; struct arvore {...
asked by 27.06.2017 / 15:35
0
answers

Problems in integration between C ++ and C #

Hello, I'm having problems integrating a C ++ DLL with Unity C #. I found some code ( link ) This is my C ++ code, in it theoretically I send a structure with 2 points for Unity in C #. struct Pontos { int i; float f; }; Pontos **pontos; Dl...
asked by 02.05.2017 / 21:26
0
answers

C ++ conversion for PHP [closed]

In the conversion of a code into languages like C ++ and others related to PHP we have to convert the direct manipulation of the pointers, in this case, what interpretation should I have about the following code: long teste(unsigned char *lpMe...
asked by 04.05.2017 / 19:29
0
answers

Parallelization of BubbleSort Open-MP C ++

I'm trying to paralyze the bubblesort algorithm using Open-MP and C ++, and the parallelization strategy is the pipe. The following code, to me, makes sense, but does not work, and only sorts the sub-vectors (Input Size) / (N) with N being the n...
asked by 09.04.2017 / 23:10
0
answers

SFML Compile Error in Code :: Blocks

I need to make a game for a college subject using the SFML library and the C ++ language. I followed that tutorial to set up the Code :: blocks, and pasted the following test file indicated in the tutorial: #include <SFML/Graphics.hpp>...
asked by 16.05.2017 / 22:12
1
answer

How to put punctuation in a sql row

Well I'm looking for a way to put punctuation on a rows count that is made from my mysql. If the returned value is above 1000 it inserts scores, for example: 1000 = 1000 1000000 = 1,000,000 The code is as follows: void sql_rows(MYS...
asked by 01.04.2017 / 22:50
1
answer

Code :: Blocks doubts

1-how do you put it as default?
asked by 31.03.2017 / 17:47