Questions tagged as 'c++'

1
answer

Frequency counter using c ++ files

Good morning I'm doing a frequency counter, where indicating the address of the file (txt) show which are the letters that appear and the number of times they appear in the text. The problem I have is in the counter which does not show the le...
asked by 07.05.2017 / 07:58
1
answer

Problem with If and Vector when printing C ++

Good morning, I have the following fragment of an exercise, in which I am sent to print the data of a person that are stored in a vector. Initially I ask for your ID and immediately you throw me your data. The problem comes when I put a cedul...
asked by 07.05.2017 / 15:42
1
answer

QMessageBox close automatically

Please, can someone help me by saying how I can do to generate a QMessageBox that closes automatically after x seconds without pressing any button. I leave an example of the code that I have QMessageBox Logo; Logo.setIconPixmap(QPixmap(...
asked by 26.07.2017 / 18:49
1
answer

Debugging Lua embedded in C ++

I am trying to integrate Lua with C ++ and I have some doubts when debugging errors . When any part of a lua script fails, whether it is a run-time error or a syntax error, Lua returns control to the host program quite silently. Basically...
asked by 15.04.2017 / 21:51
1
answer

operate arrays from two different txt files

Hello! Good day :) I want to make a program (in Visual C ++) that makes several operations (with overloaded operators) with two arrays read from two different txt files. So far I have done this. typedef unsigned int uint; class matriz { privat...
asked by 16.04.2017 / 23:02
1
answer

Call to functions nested in STRUCT within a CLASS

I have this implementation of a class that handles linked lists. The issue is that I'm using primitive functions in the struct I use within the class, however I do not know much about it, and I do not know how to invoke the functions. Here...
asked by 11.05.2017 / 01:30
2
answers

Search / verify if a word (string) is infinitive

Good morning. My problem is this: I want to implement a program in c ++ that when entering a word, that is, a string, tell me if it is infinitive or not. The program has to be repeated as many times as the user wants (that is, with a while). Whe...
asked by 29.03.2017 / 01:38
1
answer

My program hangs showing the same result

Hi, I'm doing a program that takes a number, subtracts it until I get the kaprekar constant, everything is fine and it works very well, but I do not understand why sometimes when I put certain numbers it hangs up like the number for example 8...
asked by 11.03.2017 / 00:44
1
answer

Why does this code go into an infinite loop?

Good morning, I am learning to program in C ++. I'm writing a program to practice and I do not know why it goes into an infinite loop. I tried to clean the cin buffer but it does not work. while(state){ cout<<opciones<<endl;...
asked by 15.03.2017 / 00:30
1
answer

Dev-C ++ can not find the compiler file

Using Dev c ++, everything had been fine and I had never had any problems so far. But recently I find myself with the following error:    C: \ Users \ Documents \ g ++. exe [Error] CreateProcess: No such file or directory What's wrong? an...
asked by 18.02.2017 / 06:34