Skip to content

Commit fe94db1

Browse files
committed
Ubah: src/functions/auto - tambahkan beberapa contoh lain
1 parent d217de1 commit fe94db1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/functions/auto/src/func_auto.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ auto add(auto a, auto b) {
66

77
int main() {
88
std::cout << add(3,4);
9+
10+
std::cout << std::endl;
11+
std::cout << add(3.8,-40) << std::endl;
12+
std::cout << add(-3.8,40) << std::endl;
13+
std::cout << add(4,5) << std::endl;
14+
std::cout << add(4.92f,5) << std::endl;
915
}

0 commit comments

Comments
 (0)