c++程序—三目运算符
2024-09-04 03:14:48
#include<iostream>
using namespace std;
#include<string> int main()
{
//三目运算符
int a = ;
int b = ;
int c = ; c = (a > b ? a : b);
cout << "c=" << c << endl; (a > b ? a : b) = ;
cout << "a=" << a << endl;
cout << "b=" << b << endl; system("pause");
return ; }
最新文章
- C# 合并及拆分Word文档
- ios 在storyboard 和 xib中,显示自定义view的预览效果
- 轻量级容器Docker+微服务+RESTful API
- 【现代程序设计】【homework-02】【11061027】
- MySQL通用批量写入工具(Python)
- Android学习笔记__2__Android工程目录结构
- Java通过axis调用.NET WebService
- Average of Levels in Binary Tree
- Saltstack基础
- 4.4管道和中间件介绍「深入浅出ASP.NET Core系列」
- javax.websocket.DeploymentException: Multiple Endpoints may not be deployed to the same path [/websocket/{sid}] : existing endpoint was class com.sanyi.qibaobusiness.framework.webSocket.WebSocketServe
- Luogu4916 魔力环 莫比乌斯反演、组合、生成函数
- bzoj1563: [NOI2009]诗人小G 决策单调性(1D1D)
- Python接口自动化--requests 1
- Linux驱动技术(五) _设备阻塞/非阻塞读写【转】
- 查询死锁的Session SQL 语句
- SQL Server 数据库项目
- spring service事务传播
- CocosIDE导出Android APK的注意事项
- ubuntu库文件路径pkgconfig