编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第4章编程练习7
#include <iostream>
using namespace std;
struct Pizza
{
 char company[50];
 float diameter;
 float weight;
};
int main()
{
 Pizza piz;
 cout<<"Enter the company name: ";
 cin.getline(piz.company,50);
 cout<<"The name of pizza company is: "<<piz.company<<endl;
 cout<<"Enter the diameter of the pizza: ";
 cin>>piz.diameter;
 cout<<"The diameter of its pizza is: "<<piz.diameter<<endl;
 cout<<"Enter the weight of pizza is: ";
 cin>>piz.weight;
 cout<<"The weight of its pizza is: "<<piz.weight<<endl;
 system("pause");
 return 0;
}
编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第4章编程练习7的更多相关文章
- 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习9
		
#include <iostream> #include <fstream> #include <cstdlib> #include <string> ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习8
		
#include <iostream> #include <fstream> #include <cstdlib> const int SIZE=20; using ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习7
		
#include <iostream> #include <string> #include <cctype> using namespace std; int m ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习6
		
#include <iostream> #include <string> using namespace std; const int MSIZE=100; struct j ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习5
		
#include <iostream> using namespace std; const double N1=35000; const int N2=15000; const int ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习4
		
#include <iostream> using namespace std; const int strsize=30; const int BOPSIZE=5; void showm ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习3
		
#include <iostream> using namespace std; void showmenu(void) { cout<<"Please enter ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习2
		
#include <iostream> #include <cctype> using namespace std; const int MAXSIZE=10; int mai ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第6章编程练习1
		
#include <iostream>#include <cctype>using namespace std;int main(){ char ch; while((ch=c ...
 - 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第5章编程练习9
		
#include <iostream>using namespace std;int main(){ int num; cout<<"Enter number of ...
 
随机推荐
- 计蒜客 X的平方根(二分法)
			
设计函数int sqrt(int x),计算 xx 的平方根. 输入格式 输入一个 整数 xx,输出它的平方根.直到碰到文件结束符(EOF)为止. 输出格式 对于每组输入,输出一行一个整数,表示输入整 ...
 - 混合编译.c/.cpp与.cu文件
			
混合编译.c/.cpp与.cu文件 项目中用到cuda编程,写了kernel函数,需要nvcc编译器来编译..c/.cpp的文件,假定用gcc编译. 如何混合编译它们,整体思路是:.cu文件编译出的东 ...
 - 查找所有sphinx引擎表并生成创建表的语句
			
-- 查找所有sphinx引擎select group_concat(table_name separator ' ') from information_schema.tables where en ...
 - 隐藏WIN10资源管理器中的3D对象文件夹
			
1.WIN+R,打开运行窗口,输入“regdeit”启动注册表编辑器 2.定位到 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio ...
 - python---数学表达式的分析树实现
			
先走一遍, 前面很多知道点,都串起来了. # coding = utf-8 # 使用列表实现栈的功能 class Stack: def __init__(self): self.items = [] ...
 - 一个kubeadm.config文件--定义了token,扩展了默认端口,外部ETCD集群,自定义docker仓库,基于ipvs的kubeproxy
			
这个版本是基于kubeadm.k8s.io/v1alpha3的,如果到了beta1,可能还要变动呢. apiVersion: kubeadm.k8s.io/v1alpha3 kind: InitCon ...
 - 【LGR-052】洛谷9月月赛II(加赛)
			
题解: 没打... ab题满世界都过了应该没什么意思 c题是个比较有意思的思维题(先看了题解才会的...) 我们考虑这么一件事情 没钥匙的人出门后 门一定是开着的 他进来的时候,门一定是开着的 其他时 ...
 - 【bzoj3589】动态树 树链剖分+树链的并
			
题解: 树链剖分是显然的 问题在于求树链的并 比较简单的方法是 用线段树打标记覆盖,查询标记区间大小 Qlog^2n 代码: #include <bits/stdc++.h> using ...
 - nginx做代理离线下载插件
			
一.背景 被安装的服务器不能上网,无法下载插件,一个插件都还好,但是遇到插件依赖很强的需要几十个插件的依赖,这样就很麻烦. 二.环境 192.168.182.155 安装nginx 能 ...
 - python基础——函数
			
1.内置函数的调用: 可以在官方网站查找内置函数及说明,也可以通过help(abs)函数查看相应的信息. https://docs.python.org/3/library/functions.htm ...