[tpdev@j3s3h3 ARIB_MW]$ cat test.cpp
#include <stdio.h>
class CTest{
public:
CTest() {
printf("constructor\n");
};
~CTest() {
printf("destructor\n");
};
void doTest() {
printf("doTest\n");
};
};
int main(void){
CTest test;
test.doTest();
return 1;
}
[tpdev@j3s3h3 ARIB_MW]$ g++ -o test ./test.cpp
[tpdev@j3s3h3 ARIB_MW]$ ./test
constructor
doTest
destructor
[tpdev@j3s3h3 ARIB_MW]$
'Papers > Others' 카테고리의 다른 글
Policy-Driven Fault Management in Distributed Systems (0) | 2007.01.22 |
---|---|
A TTCN-3 Based Online Test and Validation Platform for Internet Services (0) | 2007.01.20 |
Refactoringin a "Test First" - World (0) | 2007.01.15 |
The Video Store Revisited Thoughts on Refactoring and Testing (0) | 2007.01.13 |
Refactoring Test Code (0) | 2007.01.13 |