C++字符串一个简单的拷贝
2016-08-08 10:45
393 查看
#include<stdio.h>
#include<string.h>
#include<conio.h>
int main()
{
char temp[1024];
strcpy(temp,"罗文");
printf("temp is %s",temp);
getch();
}
#include<string.h>
#include<conio.h>
int main()
{
char temp[1024];
strcpy(temp,"罗文");
printf("temp is %s",temp);
getch();
}
相关文章推荐
- C++字节流与二进制字符串相互转换(一个简单的明文加解密程序)
- c/c++ 使用boost库实现的一个简单判断字符串编码的方法
- 一个简单关于学生成绩管理的C++程序代码,但是对于拷贝析构函数目前还是不知其作用何在
- C++字节流与二进制字符串相互转换(一个简单的明文加解密程序)
- C++ 输入一个数字转换成字符串
- C++ 16 拷贝字符串
- Linux下,使用C/C++编写"静态链接库"的一个简单例子
- Linux下,使用C/C++编写的一个简单的信号处理例程
- 一个关于C++简单递归的奇怪输出结果的不解??
- 解答: 一个简单的c++程序
- 写的一个简单的分割字符串的函数(附原码)
- C++反汇编揭秘1 – 一个简单C++程序反汇编解析 (Rev. 3)
- 一个简单的C++程序反汇编解析
- 一个简单的C++程序反汇编解析
- 设计模式---单件(C++版) 一个简单实例(避免用户忘记delete单件实例)
- C++派生字符串并和基类字符串连接为一个字符串
- 一个简单的反射拷贝一份新的实体类
- 写的一个简单的分割字符串的函数(附原码)
- WebBrowser Control的一个简单C++封装
- 一个简单的C++程序反汇编解析