
指针的编程艺术
lonely_gfolf
这个作者很懒,什么都没留下…
展开
-
二维数组指针输出
#include <iostream> using namespace std; int fun(int x, ...) { int arr[2][3] = {2,4,10,12,13,15}; cout << arr[1][1] << endl; cout << *(arr[1] + 1) << endl; ...原创 2018-05-09 22:18:09 · 704 阅读 · 0 评论 -
字符串复制
#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; void fun(char *dest, char *source) { while((*dest = *source) != '\0') { dest++; ...原创 2018-05-10 20:20:55 · 181 阅读 · 0 评论