/*
bool isShorter(const string &s1, const string &s2)
{
return s1.size()<s2.size();
}
练习6.44:
将isShorter函数改写成内联函数
答:
inline bool isShorter(const string &s1, const string &s2)
{
return s1.size()<s2.size();
}
//定义在头文件中
*/
#include "TouWenJian_6.h"
int main(int argc, char *argv[])
{
// for(int i=1;i<argc;++i)
// cout<<argv[i]<<endl;
cout<<(isShorter("tomandjerry", "jerry")?"True":"False")<<endl;
return 0;
}