Questions tagged as 'dev-c++'

1
answer

Switch case to compare strings [duplicated]

I have a question about the use of the control structure switch since I'm just learning C ++. Can you evaluate catacler chains in a switch ? According to me you can only integer values: #include <cstdlib> #include <iost...
asked by 27.10.2018 / 05:55
1
answer

Store space with cin.getline

Do I need support to be able to store several data in cin , separated by a blank space? CODE: cout << "\n\tEscriba Curp de cada integrante de la familia separado por un espacio " << i + 1 << ":"; cin.getline(*curp,...
asked by 01.09.2018 / 06:07
0
answers

How can I play a sound in c ++?

I have been trying for some time to add a sound to a mini-project to learn how to use it and be able to implement it in a real project, but of all the places I have investigated, none has been useful to me. I have to use DEV to do the projects,...
asked by 29.07.2018 / 18:37
0
answers

how to edit data stored in a MYSQL database through c ++

this is the code I have system("cls"); char sentencia[] = "SELECT * FROM c_alumnos WHERE Carnet=\'%s\'"; MYSQL_RES *res; MYSQL_ROW row; std::cout<<"EDITAR DATO ALUMNO"<<std::endl; std::cout<<"Ingrese Carnet...
asked by 27.05.2018 / 07:14
2
answers

How to intersect two text strings?

With the intersection I mean that if I have two sentences I keep the words and not the same characters //Programa para la interseccion de dos cadenas de texto #include<iostream> using namespace std; int main(){ string x,y,frase; cout...
asked by 19.05.2018 / 20:13
1
answer

Can you pass the value of a local variable to another function?

I have a local variable in my function main . Can data of that variable be passed to any function? For example, move from main to function x , the value of variable k     
asked by 27.11.2017 / 23:57
2
answers

Add item to the top list

I need to add the content, to the first place in the list. But I can not do it, any help? This is the code I have. if (primero == NULL) { //Por si el primer elemento es NULL printf("\nNuevo elemento:\n"); printf("Nombre: "); fflush...
asked by 06.11.2017 / 23:22
2
answers

While inside a do-while

My problem is that when trying to repeat a program with a while inside, the program did not show me anything. This is my code: main() { int i=1; do { printf("\nPrograma 'Serie 1-10'"); getch(); while(i<=10)...
asked by 03.10.2017 / 00:18
0
answers

How do I read numbers and be able to evaluate a specific key at any time during the execution of the program?

The problem I have is that I have to fill a matrix and that during the filling process if I typed the 'd' key, I could delete some number of the ones entered or if 'l' could delete them all. I've tried with kbhit () and getch () but when enterin...
asked by 05.07.2017 / 19:21
0
answers

Compiled error: ([Warning] unknown scape sentence "\ 040 [enabled by default])"

I'm trying to solve some c ++ exercises in devc ++ and when I print on the screen with prinft I get an error that says: ([Warning]unknown scape sentence "0 [enabled by default])". It appears in the code: #include<stdio.h>...
asked by 27.05.2017 / 06:41