C/C++中的字符串另类连接
2007-10-25 21:53
141 查看
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
#include <stdio.h>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
int main(void)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
const char* s = "Hello"", world!";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
printf("Hello""Me""you! "); // output: HelloMeyou
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
return 0;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
相关文章推荐
- 助教:c/c++——字符串反转及字符串连接:区分gets,puts,scanf(),printf()
- C++连接两个字符串
- 用C++或C#连接oracle、postgres数据库的字符串和语句
- C++ 宏定义中字符串连接操作
- c++字符串连接方法大观
- C++字符串string类常用操作详解(一)【初始化、遍历、连接】
- c++实现strcat字符串连接库函数的方法详解
- C++派生字符串并和基类字符串连接为一个字符串
- c++实现字符串strcat()连接
- C++ 宏定义中字符串连接操作
- C++ ## 宏定义中字符串连接操作
- C++第17周项目2——用指针玩字符串(1)连接
- C++字符串连接
- C++ - 给出一个函数来连接两个字符串A和B,其中字符串A的后几个字节和字符串B的前几个字节重叠
- 字符串连接 C/C++
- 数据库连接字符串的另类查看方式
- C++中3种方式把字符串和数字连接起来
- c++ 连接两个字符串,实现类似strcat 功能
- C++犄角旮旯之初始化字符串另类方法
- C++实现字符串与数字的连接