Advertisement
Josif_tepe

Untitled

Oct 26th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void print() {
  5.     cout << "Print() function" << endl;
  6. }
  7.  
  8. void print(int x) {
  9.     cout << "II Print() Function" << endl;
  10. }
  11. void print(int x, float y) {
  12.     cout << "III Print() function" << endl;
  13. }
  14.  
  15. int main() {
  16.     print();
  17.     print(2);
  18.     print(2, 5.0);
  19.    
  20.    
  21.  
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement