Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Write a function called digit_counter

1 Ansicht (letzte 30 Tage)
RUTARAKA GIDEON
RUTARAKA GIDEON am 4 Mär. 2018
Geschlossen: Walter Roberson am 4 Mär. 2018
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!

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by