//使用条件表达式作为简单的“如果...那么...”判断。 #include <iostream> using namespace std; int main() { int score=2; s
来源:互联网 发布:厦门书生商友软件 编辑:程序博客网 时间:2024/05/16 11:19
//使用条件表达式作为简单的“如果...那么...”判断。#include <iostream>using namespace std;int main(){int score=2;string tongguo;string bujige;cout << "Please input your score :" << endl;cin >> score;cout << ((score >= 60) ? "tongguo" :" bujige") << endl;return 0;}
阅读全文
0 0
- //使用条件表达式作为简单的“如果...那么...”判断。 #include <iostream> using namespace std; int main() { int score=2; s
- #include <iostream> #include<cstdio> #include<cstring> using namespace std; char s[400001]; int nex
- 为什么C++中使用#include"iostream.h"后就不需要using namespace std;的指令了? 而使用#include"iostream"就得using namespace s
- #include <iostream>和using namespace std;
- #include <iostream.h> 和 #include <iostream> using namespace std的区
- #include<cstdlib> #include<cstdio> #include<cstring> using namespace std; int w[25][25][25]; bool vi
- #include <iostream> using namespace std; C++命名空间是什么?
- 为什么在#include <iostream>后还需要using namespace std
- 详解C++中经常看到的#include <iostream> using namespace std;
- vecter<int>::size_type作为判断条件出错
- “using namespace std ” 使用
- using namespace std 和 include <string>的区别
- using namespace std的使用(转载)
- (int *) 和 *(int **) 的不同使用条件
- C++关于std namespace与# include<iostream>关系的有关问题
- 关于using namespace std以及namespace的使用
- BOOL,指针,int作为判断条件,在代码中的实现
- 简单的main(int argc, char* argv[])
- 设计模式-策略模式
- linux下动态库的符号冲突、隐藏和强制优先使用库内符号
- Shell[二]: Shell杂谈
- easystruts-1.0.0简单配置注解版,支持json、jsp
- mybatis在log4j中输出SQL
- //使用条件表达式作为简单的“如果...那么...”判断。 #include <iostream> using namespace std; int main() { int score=2; s
- sklearn中的Pipeline
- AFNetworking 3.0 源码解读(二)之 AFSecurityPolicy
- 开源库BaseRecyclerViewAdapterHelper的简单用法
- 拷贝和赋值的区别
- Shader 法线贴图参考代码
- dump 的生成和调试
- CENTOS7 安装配置 NFS
- 越狱iOS平台简介-笔记