strcpy()的用法.

//strcpy.c
#include <stdio.h>
#include <windows.h>
int main()
{ /*exterm strcpy(char *dest,char *src);
 将src字符串中的内容复制到dest所指的字符
 中.返回指向dest字符串的指针.*/
 char *d="abcdefgh";
 char p[20]="";
 system("cls");
 strcpy(p,d);
 printf("%s\n",p);
 return 0;
}

posted @ 2013-03-06 20:35  王井玉  阅读(427)  评论(0编辑  收藏  举报