Questions tagged as 'dev-c++'

1
answer

.txt with password in C?

I'm messing around with .txt file manipulation and I was wondering how to create a .txt file with a password in C, so that this file can not be opened by Notepad or another program without the password. And then if I wanted to open the file I co...
asked by 27.08.2018 / 19:07
1
answer

Array bug in size 4

I'm asking you the following question: So I did this algorithm: #include <stdio.h> #include <stdlib.h> int main() { int i, j, x=0; int vetor[x]; printf ("Digite o tamanho do vetor:\n"); scanf ("%d", &x); for (i=...
asked by 12.05.2018 / 23:51
0
answers

Can not find -lleg (DEV C ++ and Allegro)

Staff every time I try to run this code is giving this error follow the code below: #include <allegro.h> int main() { allegro_init(); install_keyboard(); set_color_depth(32); set_gfx_mode(GFX_AUTODETECT_WINDOW...
asked by 24.10.2017 / 20:00
1
answer

Making Calculation of IMC I'm not only getting the result 80

#include <stdio.h> #include <math.h> int main() { float peso,altura,imc; imc=0; printf("digite seu peso ?"); scanf("%f",&peso); printf("digite sua altura? "); scanf("%f",&altura); imc= (peso...
asked by 16.09.2018 / 04:06
1
answer

Why can not I read this character?

I'm new to programming; the question of the question is this:    Given as input data the name, height and sex (M or F) of a   person, calculate and show your ideal weight using the following   formulas:       • for males: ideal weight = (72....
asked by 28.10.2017 / 20:28
1
answer

I'm having a problem with Dev C ++ in displaying members of a class

To be more exact, when I press "." after some object, type I declare a vector: vector<int>Random; So far so good, so when I start typing: Random.push_back(); Dev c ++ does not help me complete, I know it sounds paranoid, but is i...
asked by 18.01.2017 / 17:48
1
answer

DevC ++ returns "source file not compiled". Because?

I can compile the file quietly, but when I run it it presents the source file not compiled. Could anyone help me? #include <stdio.h> #include <stdlib.h> #include <conio.h> int main () { float a, b, c, y; printf("\nDi...
asked by 28.05.2014 / 16:40
2
answers

List item causing error in program C

Good evening guys. I'm having a problem with a simple code, for a college job where I can not figure out why, since Dev-C ++ does not report any errors. To prevent someone from my college find this topic by chance and copy my code, I will use...
asked by 30.06.2018 / 01:52
1
answer

"No match for operator" error in C ++

I made this code but I have not the slightest idea why it is giving this error: "No match for 'operator < In the part where I display the user's response ... (Remember that PersonName is a class and Date is also ...) class Filme { privat...
asked by 17.03.2018 / 02:15
1
answer

How to view contents of a .bin file generated in c

I had to create a program in C that reads a motion sensor activation file (.txt) and produces a binary file with the same information. The .txt file has the following information: 3B2 20051023 014857393 609f 3B3 20051023 014857393 00f...
asked by 16.10.2017 / 16:43