Questions tagged as 'c++'

1
answer

Converting vector from char to string - C ++

#include <iostream> #include <string> #include <vector> using namespace std; int main () { string vet[10], aux; std::vector<char> name; int count=0, sum=0; while (count<10) { getline(cin, aux...
asked by 22.02.2016 / 14:49
1
answer

Program does not perform expected flow

After "Hello, my name is Locao ......" for me, in logic, should continue, and if the user wrote 'talk' he would say "Oh, so you want to talk ?!". But at that moment it stops, it simply does not appear anything after that, then if I write anythin...
asked by 31.07.2015 / 00:22
1
answer

Program having unexpected exit

I'm having an unexpected exit problem and can not seem to find the error in my code, the output in question is the errors of all the sentences which are not "Dog walks.", a notorious observation is the fact that the user enter with "Dog" enter "...
asked by 29.03.2016 / 19:00
1
answer

Program requesting libgcc_s_dw2-1.dll

This error is occurring: I'm using Code :: Blocks, trying to create a program with wxWidgets.     
asked by 03.10.2015 / 23:24
1
answer

Send and Receive data via Socket [duplicate]

I'm a socket beginner, I'd like to know the best way to send and receive data. I'd like a better explanation of how it works.     
asked by 01.05.2015 / 05:21
1
answer

How to get the number separated by the integer function just below and sort it correctly as described in the main bold question in question in C ++

The function to separate an integer from a non-integer is simple void Inteiro(float n) { int x = n; float y = n; if (x==y) { cout << "E inteiro" << endl; } else { cout <...
asked by 25.05.2015 / 17:44
2
answers

Reactivate form when closing another

I have a main form and this way I click on a button and open another form , then when I open this other form I deactivate the main, until then everything well, then I wanted it when the user closed the second form , the main would resume wor...
asked by 05.11.2014 / 23:46
1
answer

Convert C ++ to C # [closed]

Well, I'm passing some code that I have, and I'm sure I can pass this code to C #, and I wanted the help of anyone who can help, in the following code below #include <dirent.h> #include <cstdlib> #include <iostream> #include...
asked by 03.09.2014 / 00:27
1
answer

Multiple Definitions in the moc.o file of a class

I'm having a lot of multiple definitions problems in QT. For common classes, and all classes in our library, the solution was to put the header and implementation in the same .hpp, and it worked. To be able to use the slots and signals, I made t...
asked by 20.04.2014 / 20:12
2
answers

I want to write the information in a .txt in c ++

The problem here is that it creates the file 'test.txt' but when it comes time to write to the file it does nothing ... I already saw the file permission and it's ok ... I did not understand, could anyone help me? #include <iostream> #in...
asked by 18.09.2014 / 18:44