seminar_01
This commit is contained in:
		
							parent
							
								
									2369f801af
								
							
						
					
					
						commit
						46d1c64684
					
				
					 21 changed files with 415 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								seminar01_overload/homework/code/03_cuber/cuber.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								seminar01_overload/homework/code/03_cuber/cuber.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| #include <iostream> | ||||
| 
 | ||||
| using std::cout, std::endl; | ||||
| 
 | ||||
| int cubeR(int& x) { | ||||
|     return x * x * x; | ||||
| } | ||||
| 
 | ||||
| int main() { | ||||
|    int x = 3; | ||||
|    cout << cubeR(x) << endl;   | ||||
| } | ||||
		Reference in a new issue