Questions tagged as 'c++'

1
answer

C ++ file import .txt

When I do the import a space is added at the beginning of the text. example: "A" How do I ignore it? Texto::Texto() { string pal, arquivoNome; char *palavra_aux; int i = 0; char *token = NULL; cout<<"Digite o nome do...
asked by 09.08.2018 / 21:08
1
answer

How do I put strings of type 'char32_t' and 'char16_t' in the console in C ++?

In the new C ++ 17 they added the characters char32_t and char16_t , they also added 'u16string' and 'u32string', but they did not create any way to put them on the console screen. For example: int main() { std::u16string u1...
asked by 13.08.2018 / 03:19
1
answer

How to use type TBitmap32 (Delphi) in a DLL called in C ++?

Hello I need to create a DLL in Delphi , to use it in a program written in C ++ . This DLL should manipulate an image (obtained through the path passed as function parameter). However, I'm having trouble loading the image into the DL...
asked by 08.08.2018 / 02:19
0
answers

Opencv: Optical Flow Farneback method inside a ROI

I'm capturing the optical flow in a video by Farneback's method, but I need to delimit it to be done only in one part, which I must select with the mouse. The problem is similar to this: link Someone has some idea how I can do this, I tried...
asked by 13.08.2018 / 20:20
2
answers

What is the C / C ++ volatile operator?

I've seen some code in C / C ++ statements like this: volatile int i = 0; I would like to know what the volatile operator is and in what cases I should use it.     
asked by 22.03.2014 / 15:16
0
answers

C ++ clr - error creating user control in visual studio

I am having an error when creating a user control using c ++ clr, I compile the solution and the user control appears but when I am going to add it it gives the following error: "Failed to load item from the toolbox" . I practically leave thi...
asked by 07.08.2018 / 20:28
0
answers

Deleting a record of a vector vector in C ++

Hello, I have a memory allocation problem, I have a class and this class I generate a vector, but because there is a lot of data, I end up saving all of them and eventually I use them only once, I would like to know if it is possible to delete...
asked by 04.08.2018 / 00:15
0
answers

Resizing dds image via software

I have a little doubt, I was analyzing the files of a software in DirectX 8 and I saw that it does something that I can not understand how, it takes a base image, let's call frame.dds and resizes it from an initial resolution of say 128x116...
asked by 10.08.2018 / 00:11
1
answer

C ++ program, string no longer accepts characters, and crashes the console, what happens?

I made a C ++ program that converts a morse code to letters. However, this program will receive up to 1000 characters. But I do not know what happens, it at most receives 400 characters, and then the console hangs . What happens? Fol...
asked by 02.08.2018 / 17:07
1
answer

How much can an unodered_map access cost hamper the performance of a game?

Can access cost to unordered_map cause FPS drop in a game if accessed thousands of times per second? class var { public: template < typename t = double > static inline auto get( const std::string& var_name ) -> t&a...
asked by 02.08.2018 / 19:15