Questions tagged as 'c++'

1
answer

the .exe file stops working in c ++

I'm doing a blackjack in c ++, which when compiling it stops working the .exe file (blackjack.exe), I tried to change the main, the classes, everything but still does not work. I leave the program to see if that is the problem. class Carta{ pr...
asked by 10.10.2017 / 01:43
1
answer

Stacks and queues in C ++?

I have this code in which it is to verify queue data in C ++ Codeblocks: #include <iostream> using namespace std; class nodo { public: nodo(int v, nodo *sig = NULL) { valor = v; siguiente = sig; } private: int valor; nodo *sigu...
asked by 27.04.2017 / 23:44
1
answer

Calculator does not give solutions

the program performs basic arithmetic operations (addition, subtraction, multiplication ...) and calculates functions sin, cos, Ln (neperian logarithm.) the calculator must be able to validate grouping signs in order to calculate complex express...
asked by 09.11.2016 / 06:36
1
answer

Avoid repeated names in c ++ arrangement

As part of my subject of data structure we have left the following exercise:    Create a data structure that allows to store the data of the total purchases of customers from a warehouse.   You want to store the following information: Number...
asked by 03.09.2017 / 07:26
1
answer

Sudoku c ++ how to check if there are repeated numbers in an array or a multidimensional array [closed]

All I have to do is grab a solved sudoku and check if the solved sudoku is correct. What I do not know, is whether to make an array of "int sudoku [9] [9]" or make an array for each row and column I'm new to c ++ using namespace std; int...
asked by 12.09.2017 / 22:16
1
answer

cin in array in c ++

How can I enter data in an array of ints from the cin? int leer[5]; cin>>leer;     
asked by 30.12.2017 / 17:17
3
answers

I can not enter a char type vector in a linked list

#include <iostream> #include <stdlib.h> using namespace std; struct nodo{ int nro; // en este caso es un numero entero string nombre; char cedula[9]; string apellido; struct nodo *sgte; }; typedef struct n...
asked by 16.12.2018 / 02:17
3
answers

Program in C ++ or Java that works as a Unix command interpreter?

I wanted to know how to do, through object classes, a C ++ or Java program that is able to implement the following functions: string pwd() : returns the full path from the root in the same format as Unix. void ls() : shows b...
asked by 11.04.2016 / 20:14
2
answers

Error searching for value in a matrix

I'm doing a search for a string in an array, but it flags me in the IF. The error arises when compiling: "[Error] invalid conversion from 'char' to 'const char *' [-fpermissive] void listado(char pers[100][9], int& lim){ char busqD[40...
asked by 04.03.2018 / 21:35
1
answer

My loop only works once, then it does not run again, and I have no idea why, it should run until the condition is n

//Algoritmo de números perfectos. #include <iostream> using namespace std; int main(void) { //Perdonen tantos comentarios. int n, c=1, a=0, r; char auxiliar, opc='n'; do{ cout<<"-------------------------------\n"; cout<<...
asked by 25.11.2018 / 22:02