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.
次のように、値とその場所(行と列)を含む.txtファイルを読み取ろうとしています。
0 0 1.00000000 1 1 1.00000000 2 2 1.00000000 0 3 2.00000000
私の問題は、fscanfを使用してファイルを読み取り、行、列、および値を分離する方法がわからないことです。
私はテキストファイルを持っていて、他の番号の下ではなく、次の番号のセットです。