-
const与引用1查看全部
-
const int *p 和int const *p没有区别!!!查看全部
-
内联函数的关键字为inline 定义函数时加上关键字 inline int max(int a, int b)查看全部
-
内联函数: 用被调用函数实体代码和实参代替主函数调用语句查看全部
-
函数重载: getmax(int x,int y, int z) getmax_int_int_int getmax(double x, double y) getmax_double_double查看全部
-
内联函数 inline查看全部
-
const与引用查看全部
-
内联函数与普通函数的区别,相当于去掉了2,4两个步骤,节省调用时间查看全部
-
内联函数,声明查看全部
-
指针类型的引用查看全部
-
重要查看全部
-
#include <string.h> #include <iostream> using namespace std; int main(void) { //在堆中申请100个char类型的内存 char *str = new char[100]; if(NULL == str) { return 0; } //拷贝Hello C++字符串到分配的堆中的内存中 strcpy(str,"Hello imooc"); //打印字符串 cout << str << endl; //释放内存 delete []str; str = NULL; return 0; }查看全部
-
strcpy函数的用法 void main( int argc, char * argv[] ) { char a[20], c[] = "i am teacher!"; try{ strcpy(a,c);查看全部
-
引用是指变量的别名查看全部
-
指针别名查看全部
举报
0/150
提交
取消