Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对编程很陌生,所以请原谅这个愚蠢的问题。我想在 excel 中访问 CSV 文件,但我不确定如何计算文件中的行数。我应该使用 feof() 以及如何使用?
*FILE *data; int count; data = fopen("test.csv", "r"); while( feof(data) == 0 ) { count++; } printf("%d", count);*