Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created May 22, 2015 08:03
Show Gist options
  • Save MasazI/a4826a50f1d0d5b96aa3 to your computer and use it in GitHub Desktop.
Save MasazI/a4826a50f1d0d5b96aa3 to your computer and use it in GitHub Desktop.
function_argument.cpp
//
// function_argument.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/22.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
using namespace std;
class A {
public:
int function(int a, int /*index*/){
return a;
}
};
int main(int argc, char* argv[]){
A* obj = new A();
cout << obj->function(10, 4) << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment