示例#1
0
int main() {
	MyClass a;
	a.print();
	MyClass b(199, 100);
	b.print();
	return 0;
}
示例#2
0
int main ()
{
    int a = 2;
    MyClass c (a);
    c.print();
    return 0;
}
示例#3
0
int main(int ac, char **av)
{
    //MyClass result = 20 * MyClass(30);// = MyClass(30) * 20;
    //cout << result.mValue  << endl; 问题来了:私有成员,不让访问...

    MyClass result = 20 * MyClass(30);
    result.print();

    return 0;
}
示例#4
0
int main(int argc, char * argv[])
{
    // Initialize pin
    PIN_Init(argc, argv);

    myClass.print();

    // Start the program, never returns
    PIN_StartProgram();
    
    return 0;
}
示例#5
0
void doPrint(MyClass param) {
    param.print();
}