Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void print() {
- cout << "Print() function" << endl;
- }
- void print(int x) {
- cout << "II Print() Function" << endl;
- }
- void print(int x, float y) {
- cout << "III Print() function" << endl;
- }
- int main() {
- print();
- print(2);
- print(2, 5.0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement