语法
Prime me
Nobody can defeat me unless I don't want to win.
展开
-
1001 A+B Format (20 分)
Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specification: Each input file contains one test case. Each case contains a pair of .原创 2021-10-09 12:38:48 · 40 阅读 · 0 评论 -
C++类与对象&&<封装>&&(属性与行为&&访问权限&&struct与class区别&&成员属性设置为私有)
C++类与对象封装属性与行为访问权限struct与class区别成员属性设置为私有属性与行为访问权限struct与class区别成员属性设置为私有 封装 属性与行为 访问权限 struct与class区别 成员属性设置为私有 c++面向对象三大特性:封装,继承,多态。 C++认为万事万物皆为对象。 类定义:具有相同性质的对象。 属性与行为 举例建立一个类 圆类 #include<iostream> using namespace std; const double PI=3.14; //设计一个原创 2021-06-08 21:35:54 · 230 阅读 · 0 评论