seminar_01
This commit is contained in:
		
							parent
							
								
									2369f801af
								
							
						
					
					
						commit
						46d1c64684
					
				
					 21 changed files with 415 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								seminar01_overload/homework/code/01_myspace/myspace.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								seminar01_overload/homework/code/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