Read Numbers In A File Into A 2D Array | C Programming Example

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

The text file I need to read has the numbers separated by commas (i.e row 1= 1, 3.15, 9.88). Will the fscanf function work with this or do I need to use something else?

mrbluesguy
Автор

Your videos are really helping me with c THANK YOU!

mlad
Автор

How about adding a short text to the start of the file to indicate number of rows and colums? For example the starting text may read "R5C4E", while R5 means 5 rows and C4 means 4 columns and E mean the end of descrition? This simple text may be used as a token that is added at the top of each text file that needs to be processed by any programming language, including C. It is only an idea.

fifaham
Автор

would be nice to see a video about how to load numbers in a file, without knowing the rows and cols, thx very much.

yangliu
Автор

can we store these elements into linked-list and the size of input matrix is unknown?

atakankuscu
Автор

Sir, how to read if no of columns are unknown, but no of rows are fixed?

poojaa
Автор

Hi! How can add like a number in each row for example:
(Inside the file)
Marry 89 90 99 50
Joe 90 87 90 75
Zen 40 70 90 76

How can I skip the 1st column and go straight to the 2nd cause I want to get the average of each rows
Thanks!

BTW GREAT VIDEO!!!!

ZennyTheMama
Автор

Sir pls put transpose matrix and Fibonacci sequence....

saranikiprajith