// Demo.cpp : 定义控制台应用程序的入口点。
#include "stdafx.h"
#include <iostream>
using namespace std;
#if 1
int main() {
char sInfo1[256] = "How beautiful my life is."; // 数组,存储的元素类型是char
cout << sInfo1 << endl; // 定义数组sInfo1, 而 sInfo1本身就是地址
cout << "Value of sInfo1:" << (void *)sInfo1 << endl;
char sInfo2[256] = "Life is shit.";// 定义数组sInfo2, 而 sInfo1本身就是地址
cout << "Value of sInfo2" << (void *)sInfo2 << endl;
return 0;
}
#endif
1.3 基本数据类型及表达式 【C++】
猜你喜欢
转载自blog.csdn.net/weixin_44773006/article/details/103491168
今日推荐
周排行