Questions tagged as 'c++'

1
answer

What is the difference between class implementation in C ++ and PHP?

I'm currently working on PHP and realized that at the time of implementing classes I can not just instantiate and then implement below the class using the :: scope selector. Example: class Lista{ public: Lista(){ first = last...
asked by 11.03.2015 / 19:41
1
answer

Read table in Lua through C ++

I have a table in Lua like this: myTable={ one = {a=1, b=2, c=3}, two = {a=4, b=2, c=1} } The file has already been loaded, how do I read the table data through C ++?     
asked by 21.03.2015 / 08:06
3
answers

Using Visual Studio and C ++ how do I prevent the debug screen from closing automatically?

Using the code below I type the two numbers, but if I give enter after entering the second number the answer appears quickly and the debug closes. int main(){ int num1, num2, answer; cout << "Digite um número:"; cin >> num1; cou...
asked by 03.10.2014 / 08:29
2
answers

Why in C ++ debug accented words and c? cip appearing unconfigured?

When debugging the accented words deconfigure. How do I correct this?  Using Visual Studio. int main(){ int apples = 50; cout << "Há"<< apples <<"maçãs."<< endl; return 0; }     
asked by 03.10.2014 / 07:58
2
answers

CreateProcess running EXE

I have an application, where the user uploads a file to the remote server, this same server when receiving this file should run this application. I'm using the CreateProcess method. The problem is, the file directory is already defined in a std...
asked by 13.01.2015 / 02:27
2
answers

How do I get the directory that the program is running?

I have an application running on the Windows platform. In one of my methods I need to capture the directory where the application is running, what is the correct way to do it?     
asked by 16.01.2015 / 06:32
1
answer

.exe has stopped working

Good night, I wrote a file in c ++ but it is no longer working, the code compiles everything right, but if I put it to run it appears the message that the program stopped working, if anyone can help me I will be very grateful. code below! #inc...
asked by 21.12.2018 / 02:39
1
answer

Take X size of a PictureBox?

I have a Picture Box , and in a certain part of the code I edit the horizontal size (x) of it, then down in the code, I need to edit only the vertical size (y). I want the size of (x) to continue the same as it is currently. Just one example:...
asked by 19.11.2014 / 01:52
2
answers

Reset variable

Is there any way to reset the variable without assigning all the values again? ex: int number = 5 + rand() % 5 + 1; cout << number << endl; cout << number << endl; If the randomization is equal to 3, in both cout's w...
asked by 21.12.2014 / 04:41
1
answer

Using the switch function in C ++ [duplicate]

The function switch and I do not know what I'm doing wrong I want to put the name marcos ai appear "marks and legal" and put murilo "murilo e bacana". I'm doing this: #include <stdio.h> #include <conio.h> int...
asked by 10.09.2018 / 00:54