Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Write a function called digit_counter

1 回表示 (過去 30 日間)
RUTARAKA GIDEON
RUTARAKA GIDEON 2018 年 3 月 4 日
閉鎖済み: Walter Roberson 2018 年 3 月 4 日
Write a function called digit_counter that takes the name of a text file as input and returns the number of digits (i.e., any of the characters, 0-to-9) that the file contains. If there is a problem opening the file, the function returns -1. WARNING: if you use the ‘w’ flag with fopen, as opposed to ‘r’, you will overwrite the file. The grader uses your own m files to check your function, so be careful!

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by