#include <iostream>
#include <assert.h>
using namespace std;
int writestr(const char *p)
{ assert(0!=p);//如果p等于0,则报错误
cout<<p<<endl;
}
int _tmain(int argc, _TCHAR* argv[])
{
char *str="hello";
writestr(str);
cout<<endl;
system("pause");
return 0;
}