C++ 10.26
发布日期:2022-03-16 03:25:45
浏览次数:25
分类:技术文章
本文共 831 字,大约阅读时间需要 2 分钟。
1、
#include<iostream>
using namespace std; int main() { cout << "hello world" << endl; system("pause"); return 0; }2、
#include<iostream>
using namespace std; int main() { int a = 10; cout << "a=" << a << endl; system("pause"); return 0; }3、
#include<iostream>
using namespace std; #define Day 7 int main() { cout << "一周有" << Day <<" 天"<< endl; system("pause"); return 0; }#include<iostream>
using namespace std; int main() { const int Day = 7; cout << "一周有" << Day <<" 天"<< endl; system("pause"); return 0; }4、
#include<iostream>
using namespace std; int main() { float f1 = 3.14f; double d1 = 3.14; float f2 = 3e1; float f3 = 3e-1; cout << f1 << endl; cout << d1 << endl; cout << f2 << endl; cout << f3 << endl; cout << "f1所占用的空间为" << sizeof(f1) << endl; cout << "d1所占用的空间为" << sizeof(d1) << endl; system("pause"); return 0; }转载地址:https://blog.csdn.net/zhizhikaodigua/article/details/120978291 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
感谢大佬
[***.8.128.20]2024年03月27日 18时34分31秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
OkhttpUtils文件上传
2019-04-25
getSupportFragmentManager方法报红
2019-04-25
Android 仿新浪微博热门榜单滑动效果
2019-04-25
windows下安装python3
2019-04-25
Windows下安装Android Studio
2019-04-25
python去重
2019-04-25
Linux目录结构及用途
2019-04-25
Linux下查看隐藏文件命令
2019-04-25
MySQL查询语句(重点分类)
2019-04-25
Windows 7 下Maven的下载安装配置 (配置本地仓库及修改路径)
2019-04-25
win7环境下java jdk环境变量的配置
2019-04-25
Maven设置网络中央仓库的镜像
2019-04-25
JSONObject 获取全部键(键值对)
2019-04-25
Android实现菊花loading动画
2019-04-25
Android 宽高相等的adapter item内容
2019-04-25
友盟分享 微博 c8998文件不存在
2019-04-25
Android textview换行
2019-04-25