mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-28 11:10:38 +01:00
notatki
This commit is contained in:
8
uczelnia/2_semestr/programowanie/laby/lab2/zad7.cpp
Normal file
8
uczelnia/2_semestr/programowanie/laby/lab2/zad7.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// pole kwadratu
|
||||
int pole(int a) { return a * a; }
|
||||
|
||||
// pole prostokąta
|
||||
int pole(int a, int b = 1) { return a * b; }
|
||||
|
||||
// kod jest problematyczny, ponieważ nazwy funkcji są niejasne: użytkownik nie ma
|
||||
// łatwego sposobu, by zrozumieć co, która funkcja robi.
|
||||
Reference in New Issue
Block a user