#include"..\lib\i7188.h" class Test { int number; public: Test() { number=0; printno(); } ~Test() {} void printno(void) { Print("number=%d\n\r",number); } void Add1(void) { number++; } }; int Add(int a,int b) { return a+b; } void main(int argc,char *argv[]) { int type; type=Is7188(); if(type){ Print("Hello I-7188! (Flash memory is %d K)\n\r",type); Print("1+2=%d\n\r",Add(1,2)); Test test1; test1.printno(); test1.Add1(); test1.printno(); } else { Print("Hello PC!, this program is not run under I-7188."); } }