*tmp++=*src++;
来源:互联网 发布:mac jdk降级 编辑:程序博客网 时间:2024/06/06 20:02
// starPtrPP.cpp : Defines the entry point for the console application.//#include "stdafx.h"char *cpystr(char* dst, const char* src){char* tmp=dst;while(*src!='\0')*tmp++=*src++;*tmp='\0';return dst;}int main(int argc, char* argv[]){char *str="Hello World";char buff[256];printf("%s!\n",cpystr(buff,str));return 0;}/*Hello World!Press any key to continue*/
- *tmp++=*src++;
- this.src=src
- tmp
- tmp
- tmp
- tmp
- tmp
- tmp
- TMP
- tmp
- tmp
- tmp
- tmp
- Tmp
- tmp
- tmp
- tmp
- tmp
- 配置Samba
- 第四个解析HTML文件的Python程序
- 重复数据删除
- strtok函数实现与应用
- 信息的魅力
- *tmp++=*src++;
- 关于位置相关码和位置无关码的理解(韦东山视频中mmu实验和串口实验)
- 6th Jilin Province Collegiate Programming Contest ——Problem B: Chinese Knight
- Android中shape的使用
- 贪心算法
- 免安装oracle客户端使用PL SQL developer(绿色版oracle客户端)
- ZOJ 1004 Anagrams by Stack(dfs堆栈)
- ios::sync_with_stdio(false);
- Evaluate the Costs and Benefits of Using DBMS_REPAIR(2)【每日一译】--2012-10-27