Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void f ()
  6. {
  7. cout << " nothing " << endl;
  8. }
  9.  
  10. void f ( int a)
  11. {
  12. cout << " Number : " << a << endl;
  13. }
  14.  
  15. void f (double a)
  16. {
  17. cout << " Floating Number : " << a << endl;
  18. }
  19.  
  20. void f ( char a )
  21. {
  22. cout << " Chat : " << a << endl;
  23. }
  24.  
  25. void f (string a)
  26. {
  27. cout << " String Vale : " << a << endl;
  28. }
  29.  
  30.  
  31.  
  32. int main()
  33. {
  34.  
  35. f();
  36. f(12);
  37. f(5.9);
  38. f('A');
  39. f("S A I M");
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement