Posts by Mário João Vale • 131 points
7 posts
-
2
votes1
answer40
viewsA: I need to print a L1 line of a matrix in C
Good afternoon, I think your problem lies in how you pass the matrix as a parameter. Not being sure what you want, I made a small example of what I think I realized you want. Don’t forget that the…
-
2
votes2
answers37
viewsA: Turn Row Columns into sql
Usually it’s harder to turn rows into columns. You can break the query and merge with UNION ALL, I don’t know if it is efficient for the amount of data you have, but nothing like testing. I made…
sqlanswered Mário João Vale 131 -
2
votes1
answer44
viewsA: Database using vector and struct in c
Regarding the space problem use fgets instead of scanf. Example: fgets(name, 20, stdin);
-
2
votes1
answer94
viewsA: C - How to remove a word from a String
I made a small example with the implementation of the method to remove a word from a sentence. I hope it helps. #include <stdio.h> #include <stdlib.h> #include <string.h>…
-
0
votes1
answer89
viewsA: How to compare elements of the same matrix
I have made a small example for you. Please check if you answer the desired one before giving Down Vote. I can better answer to meet your need. In the example below, I only use the trick of porting…
canswered Mário João Vale 131 -
-3
votes1
answer57
viewsA: Problems in deleting all data from an employee
You want to use a file for each job? If you are going to use it in table form, you should consider saving the information in a more conventional format like CSV, JSON or XML. For the sake of…
canswered Mário João Vale 131 -
1
votes1
answer52
viewsA: Picking up a file in a folder
In this example I have the code in the folder: "/home/Ricardo/Desktop/test/" I want to read the . txt files in the folder: "/home/Ricardo/Desktop/test/txtfolder" In this folder I have other files…
canswered Mário João Vale 131