Questions tagged as 'c++'

1
answer

Best GUI Designer IDE [closed]

I'm currently using Visual Studio 2012, and to create window applications, I need to use C ++ / CLI, but I've seen that it's outdated (wikipedia). What would be another alternative? is WxWidgets recommended?     
asked by 23.12.2014 / 02:41
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
1
answer

Memory leak in Video Player

I'm implementing an application in C ++ / cli and WinForms that presents videos continuously. During execution, when the videos are loaded the memory increases and is released later. I noticed that after a while, the memory used goes up. At the...
asked by 24.10.2014 / 17:01
2
answers

How to do a search in txt file?

How do I search a .txt file that contains, for example, a list of numbered names, type: 1 - João 2 - Maria ... I would enter the desired number and the return would be the name, or say nothing was found. It can be in C, or C ++.    ...
asked by 05.05.2015 / 16:02
2
answers

Download all files from a directory

I have an application that transfers files via socket, but one by one. I need this application to download an entire directory. I should provide a directory, EX: "c: \ users \ Server \ PASOW_DOWNLOAD" and then the program should transfer...
asked by 01.05.2015 / 19:21
1
answer

Pair of vector c ++

I have implemented the traveling salesman and show the minimum cost of all the paths. Now I want to show the path that corresponds to the lowest cost. I'm using to do this a pair<int, vector<int> > x , where as first I put the...
asked by 07.10.2014 / 18:14
2
answers

Making cmd slower

Is there any command for cmd to run a program that I run from the compiler? I would like to Debug what I did, and as I often fall into an infinite loop, I want to know if I can do cmd run slower (much slower) so I can see at what p...
asked by 14.06.2015 / 01:13
1
answer

Pointer to method

I started studying object orientation and I'm trying to call pointer to method, but I'm having trouble. The implementation of the startAllegro method of the Application class is as follows: void Application::startAllegro(){...
asked by 12.06.2015 / 10:45
1
answer

Call up a specific function according to your choice in the menu

I need to make a program that simulates an ATM from a bank in C ++, presenting a menu that has Deposit, Withdrawal and Payment of Tickets. How will I do that? I've already done the following: #include <iostream> using namespace std; boo...
asked by 04.04.2014 / 01:21
1
answer

C ++ - Is it correct to create new types using using?

Once in a post here in the sopt vi that creating new types in C ++ with typedef should be a practice to be abandoned since this is a practice of C, and in C ++ the correct one would be to use using nomedotipo = tipo; , so using this...
asked by 21.12.2018 / 12:44