restructured
This commit is contained in:
parent
c495b7c47f
commit
66cefdfd63
204 changed files with 538 additions and 13662 deletions
14
seminar01_overload/01_myspace/myspace.cpp
Normal file
14
seminar01_overload/01_myspace/myspace.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>
|
||||
using std::cout;
|
||||
|
||||
namespace myspace {
|
||||
void print_n_times(char str[], int n = 10) {
|
||||
for (int i = 0; i < n; ++i)
|
||||
cout << str;
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
char s[] = "nya\n";
|
||||
myspace::print_n_times(s);
|
||||
}
|
||||
Reference in a new issue