码迷,mamicode.com
首页 > 其他好文 > 详细

用字符指针指向一个字符串

时间:2018-08-01 15:59:59      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:ios   main   lov   div   user   iostream   getc   ret   run   

1 #include <iostream>
2 
3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
4 using namespace std;
5 int main(int argc, char** argv) {
6     char *str="I love CHINA!";
7     cout <<*str<<endl;
8     return 0;
9 }

 

用字符指针指向一个字符串

标签:ios   main   lov   div   user   iostream   getc   ret   run   

原文地址:https://www.cnblogs.com/borter/p/9401516.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!