Questions tagged as 'codeblocks'

3
answers

error "was not declared in this scope" c ++ [closed]

#include < iostream > using namespace std; int main() { int n1, n2, resultado; char operacion(15); cout << "Ingrese número 1 "; cin >> n1; cout << "Ingrese número 2 "; cin >&...
asked by 17.10.2018 / 21:02
1
answer

How can I make an error-proof switch?

When I make a switch I usually have the worry that someone will introduce an unexpected value such as a letter or a special character, my question is: How can I force the program to only receive what is expected? I had heard that it can be done...
asked by 25.09.2017 / 21:34
1
answer

Sort a list by a certain element of the C ++ class

The project is in CodeBlocks, what I want is that when you show the list, show them sorted by the "Key" field either ascending or descending. Or that the function insert the order and print them or vice versa. zapatos.h #ifndef ZAPATOS_H...
asked by 10.10.2016 / 03:44
2
answers

Why does not the line feed in C ++ read me?

I do not know why I do not read the line break when I save the names to the file. Thanks in advance, who can help me. (I'm using codeblocks) #include <iostream> #include<fstream> using namespace std; int main() { ofstream m...
asked by 06.11.2016 / 19:55
1
answer

Errors when compiling codeblocks c ++

I am trying to compile this code: #include <stdio.h> #include <stdlib.h> #include <windows.h> int checkfile(char *argv[0]); void bind(); void play(); int main(int argn, char *argv[]) { if(checkfile(argv)==1) bin...
asked by 02.11.2016 / 11:17
1
answer

How to delete a file from a specific path in C ++

I'm working on Windows and I want to know how to delete a file with a path such as: C:\Users\Mario\Desktop\texto.txt I have tried to eliminate it in the following way remove(C:\Users\Mario\Desktop\texto.txt) But it marks me wrong Ho...
asked by 02.11.2017 / 00:40
1
answer

help codification zenith polar in c

I made a program in codeblocks which should code in polar zenith and although it identifies the characters and exchanges it generates a problem with the characters that are not exchanged transforming them into completely different characters...
asked by 02.11.2017 / 02:10
1
answer

switch inside another switch

My problem is this: I want to make a submenu within the menu in my program (I had not done it before). I can not find my mistake I would appreciate it to anyone who can notice it. I send them the main of the program. Thank you very much. #incl...
asked by 12.09.2017 / 00:43
0
answers

How can I connect my database in Oracle with Codeblocks?

Good morning friends, I have the following problem: I'm doing a job for the university (a game in itself) but I need to connect the information collected in a database. Something like classic games that show markers and names. But I have prob...
asked by 03.09.2018 / 21:40
0
answers

How to connect MySQL Workbench with C ++ code in Codeblock?

Install MySQL installer community with all its features, what I need to know is how to connect this database with the code in c ++?. I do not know if I need to download a library or if it already comes with the MySQL Connector C / C ++. Thank yo...
asked by 25.06.2018 / 00:26