This repository has been archived on 2023-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
mipt_cpp/seminar01_overload/01_myspace/myspace.cpp

15 lines
259 B
C++
Raw Normal View History

2022-09-05 18:29:46 +03:00
#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);
}