Questions tagged as 'c++'

1
answer

Simulate cd commands .. or change directory with c ++ and QT

Hello, I am trying to implement in C ++ with a vector that can simulate for example the command cd .. that way I could go back to my previous route or I could also save the current route to be able to show it. The code is as follows: //store t...
asked by 23.10.2016 / 19:50
3
answers

Majority number

In this exercise I am asked to write a funcion to know if a number is MAYORITARIO . That is, if there is an element stored in the vector that appears more than N / 2 times, where N is the number of vector elements Error on line 1...
asked by 16.10.2016 / 04:13
2
answers

Visual Studio error: Unable to start the program (Unable to start program)

I would like to know why, when you run the following code, there is a little window in which it says:    can not start the program followed by:    can not find the specified file It also gives these errors:    'fopen': This func...
asked by 01.11.2016 / 15:05
1
answer

Conversion wchar a string to pass it to unicode Qt

Hi, I'm doing the following conversion: wchar_t buffer[5]; QString string = QString::fromWCharArray(buffer); char *utf8encoded = string.toUtf8(); But it seems to give me the following error:    'initializing': conversion of 'QByteArray'...
asked by 04.11.2016 / 23:28
1
answer

Unresolved external symbol What have I done wrong?

I've been trying to solve a problem for a while, I've tried to solve it with different compilers and there's no way. The program is more complex but I have been able to summarize it in the following code: S.hpp #ifndef S_HPP #define S...
asked by 16.05.2017 / 22:48
1
answer

Functions of a class like callbacks in OpenGL c ++

I have had a problem in the development of a graphic engine using OpenGL. The fact is that I have defined the class DB in which I implement the method initContext(int argc, char** argv) in which I must make the corresponding calls...
asked by 21.12.2018 / 21:55
1
answer

Error with Irreducible Fractions

I am doing a program that when I receive a number with decimals, I take it to a simplified fraction. I did some tests and he does it well, but when I enter 0.24 he gives me a very high value. int main(){ float n; int aux; float de...
asked by 15.12.2018 / 20:51
0
answers

how to create a record in C using only #include "stdio.h" main ()

I'm new to this but I need an answer as fast as possible I'm looking to make an arrangement that contains a total of 5 records so far what I had was the whole program but I was not running because of the records if they can solve that problem ma...
asked by 09.12.2018 / 17:01
0
answers

Oracle 12c REF CURSOR error

I have a code in c ++ that works correctly in communication with Oracle 11g, recently updated Oracle 12c release2 and since then the code no longer works generating the error in execute: ORA-06550: line 1, column 7: PLS-00306: wrong number or...
asked by 30.11.2018 / 17:17
0
answers

Problem in dynamic matrices within a function

I would like to know if you could help me pass a function that is for a 3x3 matrix, for a dynamic matrix, is that I can not find the solution to create it, this is the function: bool yavisitado(cuadrito estado_a_verificar) { list < cuad...
asked by 29.11.2018 / 03:58