Posts by mdmundo • 130 points
10 posts
-
0
votes1
answer133
viewsA: Help with C registration program
You can do something similar to the following code. Alter the structure of Menu a little, but I consider a good approach. #include <locale.h> #include <stdio.h> #include <string.h>…
-
1
votes1
answer439
viewsA: Palindromic numbers in C
I made some modifications to your code, I believe even after solving the comparison, the program nay was generating the inverted number. I treated those and here’s the result: #include…
-
0
votes1
answer42
viewsA: Challenge in C. doubt
The error occurs because you are declaring the array variable size before initializing this variable. Follow the corrected code. #include <stdio.h> #include <stdlib.h> int main() { //…
-
0
votes1
answer42
viewsA: How do I link in gcc to a C library created by min?
You need to add them to the main file only. For example: // Bibliotecas "built-in" #include <stdlib.h> #include <time.h> // Suas bibliotecas (O endereço para cada uma) #include…
-
0
votes1
answer20
viewsA: Problem alternating fgets and scanf_s
I made some modifications #include <stdio.h> #include <string.h> struct pessoa { char nome[1000]; int idade; }; int main() { struct pessoa pessoa1; struct pessoa pessoa2; struct pessoa…
-
0
votes1
answer47
viewsA: How to apply the same condition/operation for each element of a vector in C
I believe this code can help you better understand how you can get to the solution to your problem. #include <stdio.h> int main(void) { // Estas variáveis foram declaradas estaticamente com a…
-
0
votes2
answers65
viewsA: Express JS Routing
I modified your code, as follows: var routerAdmin_1 = require('./routes/admin_1'); var routerAdmin_2 = require('./routes/admin_2'); app.use('/auditoria', (req, res, next) => {…
-
0
votes1
answer71
viewsA: Error filling a String Array: The first input line is ignored
First of all I checked if its code had some error in C that could cause Wrong Answer in URI. Here are some possible corrections: Instead of using: scanf("%d", &n); on the line 7, you can put:…
-
0
votes4
answers16290
viewsA: How to remove spaces from a string in C?
You can use a function rmv, that receives the String str and makes the modifications and makes the modifications in the variable itself. #include<stdio.h> void rmv(char *str){ int count=0,i;…
-
0
votes1
answer2656
views