![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 76
周卓敏
这个作者很懒,什么都没留下…
展开
-
c++学习(一)
#include //测试进制的使用using namespace std;int main(){ int chest = 42; int waist = 42; int inseam = 42; cout<<"Monsier cuts a striking figure!"<<endl; cout<<"chest = "<<chest<<" (d原创 2015-10-26 11:22:31 · 392 阅读 · 0 评论 -
C++学习(二)
#include //测试数据的精度//cout 后面接的数是保留6位小数的//float有一定的精度限制,在本系统中其确保证的有效位是6位//double表示的数据比float小但是精度比较高//一般1.0等系统默认为double型using namespace std;int main(){ cout.setf(ios_base::fixed,ios_base::fl原创 2015-10-28 10:05:02 · 326 阅读 · 0 评论 -
c++学习(三)
#include using namespace std;const int ArSize = 20;struct CandyBar { char name[ArSize]; double weight; int calorie; };struct MyStruct {原创 2015-11-14 11:48:25 · 394 阅读 · 0 评论 -
c++学习(四)
//exercise5_4#include using namespace std;int main(){ int year;//用来记录年数 for(year=1; ;year++) { long DapneSum = 0; long CleoSum = 0; double temp = 1; doubl原创 2015-11-23 10:28:31 · 277 阅读 · 0 评论 -
c++学习(五)
#ifndef STOCK20#define STOCK20#include "string.h"//定义类的各种成员属性和成员方法class Stock{private: std::string company; long shares; double share_val; double total_val; void set_tot() {原创 2015-12-03 09:54:28 · 403 阅读 · 0 评论