I've created a code for a bookstore library using Linux / GNU, and it works fine there. However, I need the code compile in Windows using GCC, and I was wondering if there is a method to use this function or if there is a simple way to override...
I'm doing a student enrollment program:
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
/*Elabore um programa em linguagem C, que seja capaz registrar um conjunto de dados de uma turma de programação de computadore...
#include<stdio.h>
#include<stdlib.h>
#include<locale.h>
#include<conio.h>
#include<math.h>
int retangulo(int a, int b, int c){
int maior;
if(a>b && a>c){// iníco primeira verificação......
I'm assigning the function return checks code to a flag. The idea is to make the flag trigger the loop if the code is incorrect
char *leValidaCodigoAviao(char *msg, char *msgErro){
char *pNome=0, nome[MAX];
strcpy(nome, "");
int st...
Instead of the code reading the three char variables, it reads 2 and prints the 1st.
#include <stdio.h>
int main() {
char ch1, ch2, ch3;
puts("Digite 3 caracteres, um apos o outro:");
scanf("%c%c%c", &ch1, &ch2, &am...
I am creating a code that stores the information of 3 people within a struct , but I am having a compile error when I save the age option in struct . The error is this:
/home/arthur/Área de Trabalho/pj/pj.cpp: In function ‘void
cadast...
I'm passing a struct by reference to a function at the time of inserting the data, and again at the time of printing this data. But the "insert_element" function does not read the time float (it skips the reading), and the function "Print_dates"...
Galera, have been developing some projects in C but at some point there was a need to use the library "Windows.h". So far so good, the problem is that I developed with Linux and I researched the library it is unique to Windows and obviously it i...
I wrote a function that exchanges the letter of a string for its successor using a string pointer.
#include <stdio.h>
#include <stdlib.h>
/*
14) Implemente um algoritmo que receba uma string como parâmetro e substitua todas as...