Most voted "dev-c++" questions
Dev-C++ is a free integrated development environment that uses the compilers of the GNU project to support C and C programming languages++
Learn more…55 questions
Sort by count of
-
5
votes1
answer616
views.txt with C password?
I’m dealing with file manipulation . txt and I wanted to know how to create a file . txt with a C password, so that this file cannot be opened by the notepad or other program without the password.…
-
3
votes2
answers1022
viewsError: incompatible type for argument 1 of 'printf'
I have this activity, exercise, where is to display the largest number, but is giving the error: "incompatible type for argument 1 of 'printf' " On the command line "printf (valor2);". Code:…
-
3
votes0
answers203
viewsCannot find -lalleg (DEV C++ and Allegro)
People every time I try to run this code is giving this error follows the code below: #include <allegro.h> int main() { allegro_init(); install_keyboard(); set_color_depth(32);…
-
3
votes1
answer89
viewsArray bug when passing size 4
I’m asking a question that asks the following: So I made this algorithm: #include <stdio.h> #include <stdlib.h> int main() { int i, j, x=0; int vetor[x]; printf ("Digite o tamanho do…
-
3
votes1
answer64
viewsTime to send data
I’m developing a small meteorological station to apply on a farmland, which is to have a temperature sensor, a rain sensor and a humidity sensor to be uncooked later because I don’t have it yet.…
-
1
votes1
answer12458
viewsDevc++ returns "uncompiled source file". Why?
I can compile the file quietly only when I run it presents the source file not compiled. Could anyone help me? #include <stdio.h> #include <stdlib.h> #include <conio.h> int main ()…
-
1
votes1
answer2946
views"Uncompiled source file" error
I am using Dev-C++. I compile and when I run the message appears: source file not compiled What am I doing wrong? #include <stdio.h> main() { float lado, area ; cout<< "digite o lado";…
-
1
votes1
answer70
viewsI can’t get this program to work. It always says the numbers are divisible
#include <stdio.h> #include "funcao.h" int main () { int a, b; printf("Escreva os valores de a e b "); scanf("%d", &a); scanf("%d", &b); if (EDivisivel (a,b)) printf("sao divisiveis");…
-
1
votes1
answer815
viewsI’m having a problem with Dev C++ in displaying members of a class
To be more exact, when I press "." after some object, like I declare a vector: vector<int>Random; So far so good, so when I start typing: Random.push_back(); Dev c++ doesn’t help me complete,…
-
1
votes1
answer54
viewsMáquina Dobradora
I’m studying for a programming challenge at College and my teacher gave some programming exercises to train. It was proposed the folding machine, but I am not able to develop the input process, in…
-
1
votes1
answer2223
viewsHow to view contents of a file . bin generated in c
I had to create a C program that reads a motion sensor activation file (.txt) and produces a binary file with the same information. The file . txt has the following information: 3B2 20051023…
-
1
votes1
answer45
viewsAssignment operator overload returns a C++ reference
I’m having doubts about the overload of C++ language operators. I could not understand why the overload of the atibuição operator returns a reference, if I give a return *this (to my understanding)…
-
1
votes1
answer104
viewsWhy can’t I get a read on that Cyborg?
I’m new to programming; that’s the question: Having as input the name, height and sex (M or F) of a person, calculate and show your ideal weight, using the following formulas: • for men: ideal…
-
1
votes1
answer87
viewsProgram with Recursion in C
I need to make a program that is a game, where the user will input a number and I must determine if it is possible for the user to win the game through a printf saying "Yes" or "No", it is not…
-
1
votes1
answer2029
viewsError "No match for Operator <<" in C++
I made this code but I have no idea why this error : "No match for 'Operator <<' In the part where I display the user’s reply... (Remembering that Namemouth is a class and Date is also...)…
-
1
votes2
answers95
viewsList item causing error in C program
Good evening, everyone. I’m having trouble with a simple code for a college job where I can’t figure out why the bug is wrong, since Dev-C++ does not report any errors. To prevent someone from my…
-
1
votes1
answer605
views"Printf not declared in this Scope" even with the use of #include <stdio. h>
Why am I getting the error message : [Error] 'prinft' was not declared in this scope related to line 22 of the code below, if the first thing I did was declare: #include <stdio.h>. I am using…
-
1
votes1
answer85
viewsDoing BMI calculations I’m not getting just 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? ");…
-
1
votes2
answers218
viewsHow to go through a set with entered data?
I have a little program that inserts a few integers into a set, and removes when I find the same one, after doing this, I need to bring out all the integers that are still inside the set, but I’m…
-
1
votes2
answers889
viewsTransfer content from one stack to another C++
I need to solve a question, she asks me to display the contents of a stack in reverse form, I thought a lot and I came to the conclusion that it is only possible to create an auxiliary stack and…
-
0
votes1
answer1364
viewsHow to use the Curl library for c++ correctly?
I’m having trouble copying a simple test using the Curl library to C++ because it always returns this error: C:\Users\Raphael\Desktop\HTTP Request\collect2.exe [Error] ld returned 1 exit status…
-
0
votes1
answer110
viewsJust-In-Time Debugger - Dev C++
I create a basic code in Dev C++ and the moment I try to compile and run the message below. Operating system: Windows 8 pro Dev Version C++: 4.9.9.2…
dev-c++asked 9 years, 8 months ago Diogo Malvezzi 113 -
0
votes0
answers130
viewsError while compiling in DEV-C++(SDL)
I did all the procedure to use SDL2, but when I compile the following error happens [Error]SDL/SDL.h: No such file or directory This is the content of the line where the error occurs…
-
0
votes0
answers473
viewsMakefile.win error while compiling project
The archive Makefile.win makes a mistake when trying to compile my project. A warning appears asking to reload the file, after pressing YES and trying to re-compile it appears again the same warning…
-
0
votes1
answer319
viewsWarming - Source file not compiled
Every time I create a code of this error, being able to compile normally, but when I try to execute this occurs, how should I proceed?…
-
0
votes0
answers105
viewsSqlite3 with Dev-C++
I am trying to make a connection test with Dev-C++ and Sqlite3 but am having the following error: [Linker error] undefined reference to `sqlite3_open' I’ve already added: #include <sqlite3.h>…
-
0
votes1
answer318
viewsCode in the c++ dev of the problem, but in another compiler it works
The code is stopping responding at the last execution. #include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> /* run this program using the console…
-
0
votes1
answer205
viewscompile dll in c with winsock2.h
I am using Dev-C++ and trying to compile a dll, however I always get this error in Compiler: Compiling project changes... -------- - Project Filename:…
-
0
votes1
answer52
viewsHow to shuffle names and colors in C++
I’m making a code in C++ and need to shuffle 5 names and 5 colors for a "draw". The code below was what I was able to do so far, but the colors still repeat. #include <iomanip> #include…
-
0
votes1
answer32
viewsThe system is not reading the requested line
I made the code below to read simple date information, but when it reads the day, it strangely asks for two entries, and ends up going one to the variable diatemp and the other to the mestemp,…
-
0
votes0
answers331
viewsUse hpp c++ files
Boas, I’m doing a project for the school, and at some point I realized that I had to divide the work into files (because I was getting confused to find the procedures), but I’m not being able to…
-
0
votes1
answer952
viewsWindows and Avast are blocking the compilation of C programs
Whenever I worked with C language, I used the college computers, so I never had trouble compiling and running them in the Dev-C++ IDE. Currently, I installed version 5.11 on my machine, but I only…
-
0
votes1
answer127
viewsProblem C++ LNK2019 error
Gravity Code Description Project Path File Line Deletion State Erro LNK2019 símbolo externo indefinido "public: void __thiscall Shop::ButtonScroll(short)" (?ButtonScroll@Shop@@QAEXF@Z) referenciado…
-
0
votes1
answer376
viewsError in income tax program in C
I developed the following program in C for an income tax calculation of employees of a company #include <stdio.h> int main(){ //Declaração de variaveis int depen,cont,a1=0,a2=0,a3=0,a4=0,a5=0;…
-
0
votes1
answer97
views -
0
votes1
answer111
viewsComparison of equal elements and exclusion C++
I’m racking my brain to solve an exercise, I need to create a program that inserts elements into a chained list and then create a function to verify that among the elements there are equal elements,…
-
0
votes1
answer51
viewsNo dev c ++ giving an error: id returned 1exit status
#include <stdio.h> //biblioteca => Standard I/O void tela1(){ printf("*** FACEAR - EXEMPLO *** \n\n"); // Impressão na tela } void TelaAjuda(){ printf("***…
dev-c++asked 4 years, 9 months ago Lucas Mattos 1 -
0
votes0
answers123
viewsHow to install libcurl in Dev c++?
I tried to install here but the following code does not compile: #include <stdio.h> #include <curl/curl.h> int main( void ) { int a = 1, b, c; char post[1000]; CURL *curl; CURLcode res;…
-
0
votes0
answers66
viewsError: My matrix does not print the last line and sometimes only prints half
I’ve done a lot of different things... for(i=0; i<=2; i++){ for(j=0; j<=3; j++){ O[i][j] = (3*M[i][j]) - (5*N[i][j]); printf(" %3d ",O[i][j]); } printf("\n"); } However the matrix does not…
-
-1
votes1
answer146
viewsProgram does not execute when filling vector with non-repeated random numbers in C
I’m trying to get random numbers to be generated and fill in a vector in a separate function, but the program doesn’t run and crash if I put a high number, and not as high as 50 or 100. Below…
-
-1
votes3
answers264
viewsSource code does not compile
#include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { float parede,…
-
-1
votes1
answer871
views -
-1
votes1
answer141
viewsHow do I concatenate a string without using the functions of the string library?
#include <stdio.h> void concatenar (char str1, char str2){ int c, a; for(c=0; str1[c]!='0'; c++) for(a=0; str2[a]!='0'; a++){ str1[c]=str2[a]; } return str1; } int main (void){ char str1[10],…
-
-1
votes1
answer248
viewsHelp - C++ Read File and substi
Good evening, everyone I have a question in c++ I need to read a file and replace some characters with another one and generate a new file. Could someone help me
-
-1
votes1
answer33
viewsI am trying to compare the word deposit with what the user will type, and if it is equal he will make the deposit
#include <stdio.h> #include <stdlib.h> #include <math.h> char nome[45], menu[45]; float saldo, valor; main(){ printf("Digite seu nome \n"); scanf("%s", &nome); printf("Digite o…
-
-1
votes1
answer32
viewsI’m not getting the vector from the subprogram into the program,
Do a subprogram that has as input and output parameters: the address of an integer vector and the number of elements of that vector. The subprogram must eliminate from the vector all values that are…
-
-1
votes1
answer369
views"[Error] request for Member in Something not a Structure or Union"
Guys, I’m trying to make a struct that receives information from the user and then it displays the information. But you are showing this error when I compile '[Error] request for Member in Something…
dev-c++asked 4 years, 7 months ago Rafael Membrive 1 -
-1
votes1
answer31
viewsError request for Member 'salario' in Something not a Structure or Union
Guys, I need help with the sum of variables in a struct. the program does not compile and displays this error [Error] request for Member 'salario' in Something not a Structure or Union. The…
-
-1
votes1
answer16
viewsVector-Column Program
I am trying to make this program read the first 4 columns and calculate the final note and the average, but I cannot put the correct solution in the arithmetic mean. #include <stdio.h>…
-
-1
votes1
answer67
viewsWhy doesn’t my code make sense?
In my code, I have three "Cin" s that would be three questions to the user, for training of ifs. In this case, at the end we have if((cadastro == 1) && ((ativo == 1) || (logado == 1))){…