Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void Print() {
- cout<<"nothing to print"<<endl;;
- }
- void Print(int n){
- cout<<n<<endl;
- }
- void Print(char c){
- cout<<c<<endl;
- }
- void Print(double f){
- cout<<f<<endl;
- }
- int main()
- {
- Print();
- Print(5);
- Print('k');
- Print(5.23);
- return 0;
- }
- /*
- Output
- nothing to print
- 5
- k
- 5.23
- */
Advertisement
Add Comment
Please, Sign In to add comment