搜索资源列表
Answer C2
- 实现标准库函数strstr的功能:在str1中查找str2,若找到,返回指向str1中第一次出现str2的位置; int A ( const char * str1, const char * str2 ); 没有的话,返回-1 有则返回所在位置(从0开始) 写出函数,对编写函数main完成对strstr的功能的验证。 -achieve the standard library functions strstr function : the search for str
ch08_02
- 已知一个有理数类Zrf_Ratio,实现如下的操作符重载形式: friend zrf_Ratio operator-(const zrf_Ratio&) friend zrf_Ratio operator+(const zrf_Ratio&, const zrf_Ratio&) friend zrf_Ratio operator-(const zrf_Ratio&, const zrf_Ratio&) friend zrf_Ratio operator*(c