Questions tagged as 'c++'

1
answer

Help to add an option to a menu

Hello good night or early morning. You can help me know that maybe it's something obvious but I need to add option 5 to my program but I can not think of how to do it. Help please. This is the code, I've already put the option Mostar ca...
asked by 20.10.2017 / 09:29
1
answer

The file.exe stops working

I'm doing a blackjack simulator but when compiling the .exe file it stops working, showing the empty console. I leave the main in case the problem is there. int main(){ Baraja *Inglesa; Jugador *Jugador1; Jugador *Jugador2; Crupier *crupier;...
asked by 09.10.2017 / 04:14
1
answer

Member of the class "was not declared in this scope"

I have the following exercise:    Implement the int bsearch method (int i, int d, const T &   x) of the vector_t class that performs the recursive binary search in an ordered vector, returning the position of the found element and -1 if i...
asked by 22.07.2017 / 15:19
2
answers

doubt triangular matrix superior c ++

I had doubts about the route of the upper triangular matrix, for me the upper triangular is that of the photo: for (int i=1; i<=m_-1; i++){ for (int j=i+1; j<= n_;j++){ Could you start at i = 1? Why the stop condition for the f...
asked by 26.07.2017 / 01:35
1
answer

doubt procedure output by screen data from a list c ++

Good, I have an exercise in which I'm stuck, this is the statement:    Implement the RECURSIVE method (DO NOT CONFUSE PLEASE WITH ANOTHER EXERCISE THAT YOU PUT WHERE YOU SAY NO RESOURCE, THIS IS RECURSIVE) of the class dll_t ostream&...
asked by 24.07.2017 / 20:39
2
answers

Error when deploying an array pointer in C ++

I'm doing college programming exercises and I'm with this:    Write a program in which a type is defined, PunteroArray, pointer to ARRAY of a thousand positions whose data   stored is a pointer to int:        Declare and write a procedure,...
asked by 19.06.2017 / 22:05
2
answers

Register only if it is a specific number in c ++

Good! I'm starting with C ++ in Codebloks and they've left me with a task I've stuck on: I need you to just register the values 1,2,3,4,5 and 10 otherwise I'll request the number again. the exercise is a game of darts: Receive the poin...
asked by 25.06.2017 / 00:10
1
answer

Pass a char to int in a data structure in c ++

Maybe this is easy but I am starting on this and would like to pass a char to int in c ++     
asked by 23.05.2017 / 21:49
1
answer

random number with decimals? c ++

I need to randomly generate Ogre::Real , but I doubt that anyone works with Ogre , so with a float it reaches me. Between 0.01 and 3.0     
asked by 29.06.2017 / 11:03
2
answers

Esc to exit, Any key to start c ++ / c

I remember seeing in a random videotutorial that the boy used in his code "Press any key to start the execution, Esc to exit" and I used to think something with a tag called getch or similar, I must implement that in my project and That is one o...
asked by 26.05.2017 / 22:26