please dont rip this site

Language Ccpp Cppref Examples Overload.cc

     
   #include <iostream.h>
    
    void Add(int Left,   int Right);
    void Add(double Left, double Right);

    main ()
    {
        
        Add(5, 9);
        Add(3.2, 7.1);
    }
 
    // integer version of Add.
       
    void Add(int Left, int Right)
    {
        cout << Left << " + " << Right << " = " << Left+Right << endl;
    }
    
    // float version of Add.
    
    void Add(double Left, double Right)
    {
        cout << Left << " + " << Right << " = " << Left+Right << endl;
    }
     


file: /Techref/language/ccpp/cppref/examples/overload.cc, 0KB, , updated: 1998/10/29 04:30, local time: 2024/11/27 03:49,
TOP NEW HELP FIND: 
3.145.85.74:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/language/ccpp/cppref/examples/overload.cc"> language ccpp cppref examples overload</A>

Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .