Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Michael Mächtel 42e2b8dfb4 INIT: task3 (and corrected files/hw1.txt) il y a 8 ans
..
src INIT: task3 (and corrected files/hw1.txt) il y a 8 ans
tests INIT: task3 (and corrected files/hw1.txt) il y a 8 ans
README.md INIT: task3 (and corrected files/hw1.txt) il y a 8 ans

README.md

Homework hw1 task 3

task

Schreiben Sie eine Funktion count(line: &str, c: char) -> u64) welche zählt, wie oft ein gegebenes Zeichen © in einem gegebenen String (line) vorkommt und diese Anzahl zurück gibt. Z.B. soll der Aufruf count("peter", 'e') 2 zurückgeben.