暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Michael Mächtel 42e2b8dfb4 INIT: task3 (and corrected files/hw1.txt) 8 年前
..
src INIT: task3 (and corrected files/hw1.txt) 8 年前
tests INIT: task3 (and corrected files/hw1.txt) 8 年前
README.md INIT: task3 (and corrected files/hw1.txt) 8 年前

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.