Posts by Bruno Gomes • 19 points
4 posts
-
0
votes2
answers62
viewsQ: Vector Help in Programming Logic
The idea is to print according to the condition, only that I am lost in logic, because there is no position of the vector to receive the two values. #include <stdio.h> int main (){ int…
casked Bruno Gomes 19 -
0
votes1
answer55
viewsQ: Error in data output
I want to print the output exactly as below, but the code is giving the output in each entry. Entrances rmtpuzcafhnyxdesivlkbwgjqo 3 roahp uhchch veras Exits veras potato wuvrl #include…
casked Bruno Gomes 19 -
-1
votes1
answer60
viewsQ: I have to take a name typed by the user and create a file with this name... LING. C
#include <stdio.h> int main (){ char nome_arq[20]; printf("Digite o nome do arquivo: "); scanf("%s",&nome_arq); FILE *file; file=fopen("-------.txt","w"); fprintf(file,"huahuahuahuauh");…
casked Bruno Gomes 19 -
1
votes3
answers126
viewsQ: Variable declared in main is not accessed inside another function
When I run the code below, it gives the following error: 'daluno' was not declared in this Scope Code: #include <stdio.h> #include <stdlib.h> #include <string.h> struct Aluno{ int…
casked Bruno Gomes 19