搜索
编程论坛
→
开发语言
→
C++论坛
→
『 C++教室 』
→ 求助!看下这个字符串复制函数strcpy
标题:
求助!看下这个字符串复制函数strcpy
取消只看楼主
优游子
来 自:广东信宜
等 级:
新手上路
帖 子:19
专家分:0
注 册:2007-11-17
楼主
问题点数:0 回复次数:0
求助!看下这个字符串复制函数strcpy
#include<stdio.h>
void main()
{
int i;
char st1[10],st2[10];
printf("输入st2:\n");
scanf("%s",st2);
for(i=0;st2[i]!='\0';i++)
{
st1[i]=st2[i];
}
printf("%s",st1);
printf("\n");
}
搜索更多相关主题的帖子:
strcpy
函数
字符
printf
2007-11-30 17:27
1
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-189572-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 1.032318 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved