assert的用法
摘要:#include <stdio.h>#define NDEBUG //assert影响程序性能,程序确定正确后禁用assert#include <assert.h>#include <stdlib.h>#include <iostream.h>int main( void ){char *fp=NULL;assert( fp ); //所以这里出错c...
阅读全文
stl_string用法
摘要:#include <string>#include <iostream>using namespace std;int main(){string show;string show2="aaaa";show="bbbb";cout<<"交换两个字符串的内容"<<endl;show.swap(show2); cout<<show<&l...
阅读全文
__int64
摘要:#include <iostream.h> #include <fstream.h> #include <math.h> #include <time.h> #include <conio.h> #include <stdlib.h> #include <stdio.h> #include <limits.h...
阅读全文