the first day C++中结构体的使用
来源:互联网 发布:网页代码编写软件 编辑:程序博客网 时间:2024/05/19 21:00
#include "stdafx.h"
#include <cstdlib>
#include<iostream>
using namespace std ;
struct Structure1{
char c;
int i = 9;
float f;
double d;
};
int _tmain(int argc, _TCHAR* argv[])
{
Structure1 s;
Structure1 *a=&s;
(*a).i = 5;
s.c = 'a';
cout << s.c << endl;
cout << (*a).i << endl;
cout << a->i << endl;
system("pause");
return 0;
}
以上如有 疑问可以留言以便讨论
0 0
- the first day C++中结构体的使用
- First day on the C blog
- C programe (The first day of the training of cognizant )
- The first day!
- the first day!!!
- The first day...
- The First Day
- The first day
- The first day
- csdn the first day
- The first day~
- The first day
- THE FIRST DAY
- the first day
- the first day
- <The first day> 启程
- the first day
- The first day
- 【OpenCV】边缘检测:Sobel、拉普拉斯算子
- soapUI接口测试工具所有版本下载地址
- Android ListView中使用CheckBox等的混乱问题
- Git 使用规范流程
- 高性能网站建设指南---前端工程师技能精髓--小记1
- the first day C++中结构体的使用
- 安卓更新界面问题
- 注视点估计(二维法)
- Android主题和样式之系统篇
- java synchronized详解
- 【Android】2015.08.29 安卓官方文档学习:Day2 Count:2
- 标准C++中的STL容器类简介
- 一个创业失败者的忠告:请不要再参加创业活动
- node.js 针对不同的请求路径(url) 做出不同的响应