Posts by Italo Zuckerberg • 63 points
10 posts
-
1
votes1
answer2467
viewsQ: How to count the total Characters of a txt file, including spaces and ' n'?
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { FILE *arquivoRead; FILE *arquivoEscrita; char ch; int count=0; int lin, col;…
-
-1
votes2
answers2300
viewsQ: How to use command line parameters
I’m doubtful about the use of the command line parameters, like, one of the functionalities of the university’s job is to treat some arguments per command line, for example: ./program -e -i file.txt…
casked Italo Zuckerberg 63 -
0
votes2
answers3199
viewsQ: How to return a char vector to a function in C? type as a pointer
Hello, I’m trying to return a vector that receives the content of a matrix in a function, but it’s not working, I appreciate if someone can help me, I’m in doubt Function call on main: char…
casked Italo Zuckerberg 63 -
2
votes3
answers3223
viewsQ: How to use the "fread" function in c to read a txt file string and store that string in an array?
Hello, I’m trying to read a block of bytes from a file. txt that contains a string for example, I want to store that string in a char array. #include <stdio.h> #include <stdlib.h>…
casked Italo Zuckerberg 63 -
-1
votes3
answers5096
viewsA: Centralize printf
Try using a specific number of tabs \t, generally organizes a little the result of the code in the console, it is not really a matter of centralizing, but presents similar results…
canswered Italo Zuckerberg 63 -
0
votes1
answer2487
viewsQ: Reading a bitmap image
Hello, I am with a work of the faculty on steganography and one of the requirements is to read an image in the format bitmap (bmp), however, I have already searched a lot in the internet and the…
casked Italo Zuckerberg 63 -
-1
votes1
answer374
viewsQ: How to take the least significant bit of a character and hide in an image file?
the programme verifying whether a particular LSB has been modified, how to proceed?
casked Italo Zuckerberg 63 -
0
votes2
answers83
viewsQ: Problems with struct reading in function
For several days I’ve been trying to understand why this error occurs, but I haven’t found it anywhere. The following is, I declared a vector of the data struct and passed this vector to the…
casked Italo Zuckerberg 63 -
1
votes1
answer125
viewsQ: The matrix is printing the same values for all indexes, why?
Create an algorithm that loads a 12 x 4 matrix with the sales values of a store, in which each row represents one month of the year, and each column, one week of the month. For simplification…
casked Italo Zuckerberg 63 -
2
votes3
answers159
viewsQ: Doubt about the lower value of banknotes
I’m having a question about the conditional test to store the lowest value, it’s not really a doubt, the problem is that when it prints, the value of the lowest value is 0.0, which hurts to…
casked Italo Zuckerberg 63