Questions tagged as 'c++'

2
answers

How to delete the last line of a text file in the C language

Well, I'm wondering how I should delete the last line of a file using the C language. Could anyone help me please. Below, follow my code. int quantidadeDeUsuarios = 0; Usuario *_usuario; void sair() { free(_usuario); } void removerU...
asked by 25.02.2017 / 21:10
0
answers

Compile error in this line of code

I have an algorithm here that is displaying compilation error in this line #include "filadvet.hpp" . I will not show the whole code because the algorithm is large and there is no need. The rest of the code works, but the compile error appe...
asked by 16.03.2017 / 00:44
1
answer

How to identify whether or not the area of an object is within another area desired by the user, drawn by mouse

Hello! I recently started to venture into the OpenCV library in C ++. Today, I want to create a program that applies a classifier in a polygon ROI (5 points), obtained through 5 clicks with the mouse on the cam image. The classifier can only sta...
asked by 13.02.2017 / 00:44
1
answer

How to create a child process to an existing process in windows - C / C ++

I need to call via CreateProcess () or another windows function a process and bind to an existing process, is it possible? Thank you!     
asked by 14.02.2017 / 14:55
0
answers

I'm using c ++ with the openGL library

I'm using c ++ with the openGL library, I'm having a bit of trouble creating a method. I need to create some buildings randomly, but not to create one inside the other I need to compare the 4 points of the building. If anyone can help me. stri...
asked by 23.02.2017 / 18:26
0
answers

How to edit the Full Path property of the file in Visual Studio

I added an existing file to my project. With that, it fixes the Full Path of my file, and I can not change it any more. What I need to do is to edit this value by using variables like $(SolutionDir) , so that the project compiles indepe...
asked by 23.02.2017 / 21:23
1
answer

Eclipse c ++ Neon does not recognize Toolchain

I'm trying to install eclipse on a computer, and it does not recognize the GCC toolchain I've already changed the Paths and everything but does not show up when creating a project, has anyone ever faced this problem or know how to solve it?     
asked by 19.01.2017 / 14:26
1
answer

Doubt C ++ - basic solution Northwest corner

I'm a little forgetful of programming and I have a mathematical algorithm to do, it's the transport problem, I'm in the northwest corner phase. My question is a compilation error. Code: #include<iostream> #include<conio.h> us...
asked by 12.01.2017 / 01:40
1
answer

How to remove the executable class name without losing dynamic_cast?

My goal is to just remove the executable classes name, but still continue with the ability to use dynamic_cast . The problem is that if RTTI is removed, and thus the class names, there is no substitute for dynamic_cast . I have tr...
asked by 10.01.2017 / 16:30
0
answers

Is there a text editor with integration with Github?

I'm using Notepad ++ to program in Lua (small programs, I'm still studying), and I usually save the codes in Github when I have to stop to continue later. But manually I need to go to the Github website and add the file, and if you want to ch...
asked by 05.01.2017 / 00:10