demo/old/cpp_class/test.cpp

21 lines
163 B
C++

#include "test.h"
test::test( int val )
{
setval( val );
}
void test::setval( int val )
{
this->val = val;
}
int test::getval()
{
return this->val;
}