Questions tagged as 'c++'

1
answer

SPOJ returns "Wrong answer" for seemingly correct solution

I tried to solve the problem of BANCO12 - Bank , but when submitting my C ++ code, the system returns " wrong answer". Here's my code: ' #include <iostream> using namespace std; int main(){ int nc, np, i, c, livre=0, cont=0; cin...
asked by 25.03.2016 / 05:29
0
answers

Targeting failed when sending output to std :: cout C ++ 4.3.2 [closed]

This code, which allocates in the area variable the amount of 1s there is in a zeroed array (yes, it only does this), compiles in ideone.com and does not give Runtime Error: #include <iostream> #define MAX 1500 using namespace std; int...
asked by 24.03.2016 / 06:12
0
answers

Problem following the MSDN WinUSB Tutorial

I have encountered problems following the Microsoft MSDN tutorial on WinUSB. The tutorial is Write to Windows desktop app on the WinUSB template . Following the instructions, at the stage where I need to create a WinUSB application, the site...
asked by 21.02.2016 / 15:31
0
answers

Mongo (3 shards) C ++ Driver: SyncClusterConnection error

I'm having trouble running the upsert on the mongo when I connect in 3 shards in cpp. Now when I connect in only one of the shards I can do the operation. Does anyone have an alternative or do you know the reason for this error? CODE: Conne...
asked by 26.07.2016 / 21:57
1
answer

What is the operator for in the context of virtual memory paging?

I'm seeing the virtual memory implementation and I have this code: #define INDEX_FROM_BIT(a) (a / 8*4) #define OFFSET_FROM_BIT(a)(a % (8*4)) static void set_frame(u32int frame_addr) { u32int frame = frame_addr/0x1000; u32int idx =...
asked by 15.12.2015 / 22:35
0
answers

Binary Tree Path C ++ [closed]

I'm solving this exercise: link , but I do not know the logic of, from the result of the search in a tree of pre-order and order, get the result of post-order, that is, it give me the result of the search in pre-order and in order and I have to...
asked by 19.10.2015 / 15:40
0
answers

Reusing threads

I'm making an addon for nodejs. One of the functions is responsible for making parameterizations the incoming audio of the various clients. I want this parameterization done in a thread. void buffering(const FunctionCallbackInfo<v8::Value&g...
asked by 22.10.2015 / 15:29
2
answers

Program communication in C ++ with one in C # [closed]

Good people, I'm going through a little problem, I have a c ++ application and I have to get the output of it to be read by a C # program. I would like to know if there is any way to do this? I wanted to have a communication between them.     
asked by 12.04.2016 / 13:13
1
answer

Use Method of a defined class in an executable

All good, people? I am implementing some functionality here to a one game server, I have the PDB file where I can look for the OFFSETS. I was able to reference the global functions by OFFSET this way: Arquivo .cpp pXXX YYY = (pXXX) 0x00403B...
asked by 30.07.2015 / 13:57
1
answer

Stop accepting data to queue

I need to stop queuing when the user types a negative number (-1), check if the queue is empty so that when typing the negative number does not give any error and the main, I need the user to tell what specific value he #include <iostream&g...
asked by 26.11.2014 / 12:59