E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:8.4
#define_CRT_SECURE_NO_WARNINGS#include#includeusingnamespacestd;structstringy{char*str;intct;};voidset(stringy&s1,constchar*c1);voidshow(conststringy&s2,intn=1);//函数重载voidshow(constchar*t,intn=1);intm
海两边
·
2016-10-06 13:54
c语言
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:8.3
#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusingnamespacestd;voidMyToupper(string&str1);intmain(){stringstr;cout<<"Enterastring(qtoquit):";getline(cin,str);//cout<
海两边
·
2016-10-06 13:41
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:8.2
#define_CRT_SECURE_NO_WARNINGS#includeusingnamespacestd;structCandyBar{char*Brand;doubleWeight;intHeat;};voidset(CandyBar&s1,char*b1="MillenniumMunch",doublew1=2.85,inth1=350);voidshow(constCandyBar&o
海两边
·
2016-10-06 13:08
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:8.1
#define_CRT_SECURE_NO_WARNINGS#includeusingnamespacestd;voidprint(char*str,intn=0);intnumber=0;intmain(){print("Touch");print("touch");print("kaziya");print("minami");print("dajiang",2);return0;}voidp
海两边
·
2016-10-06 13:54
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:7.4
#define_CRT_SECURE_NO_WARNINGS#includelongdoubleprobability(unsignednumbers,unsignedpicks);intmain(){usingnamespacestd;doubletotal1,choices1,total2,choices2;cout>total1>>choices1)&&choices1>total2>>ch
海两边
·
2016-09-03 16:56
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:7.3
#define_CRT_SECURE_NO_WARNINGS#includestructbox{charmaker[40];floatheight;floatwidth;floatlength;floatvolume;};voidvalue_box(boxmaker1);voidaddress_box(box*maker2);intmain(){usingnamespacestd;boxmaker
海两边
·
2016-09-03 16:07
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:7.2
#define_CRT_SECURE_NO_WARNINGS#includevoidgolf_score(intscore[]);voidshow_score(constint*show_score);doubleaverage_score(constint*caculate_score);inti;intmain(){doubleaverage;usingnamespacestd;intpsco
海两边
·
2016-09-03 16:23
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:7.1
#define_CRT_SECURE_NO_WARNINGS#includedoubleharmonic_average(doublex,doubley);intmain(){doublex,y;std::cout>x>>y;while(x*y!=0){doubleh_average=harmonic_average(x,y);std::cout>x>>y;}std::cout<<"Bye~!"<
海两边
·
2016-09-03 16:04
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.8
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingnamespacestd;intmain(){charch;intcount=0;ifstreamLove;Love.open("E:/Her.txt");cout<<"Hi,Iamaprogram,andIwillopenyourheart~.\n";if(!Love.is_op
海两边
·
2016-04-16 19:31
c语言
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.7
#define_CRT_SECURE_NO_WARNINGS#include#includeusingnamespacestd;intmain(){charwords[20];intvowels=0;intconsonants=0;intothers=0;cout>words;//与换行符、制表符、空格符则自动追加‘\0’do{if(words[0]=='q'&&(strlen(words)==1
海两边
·
2016-04-16 19:53
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.6
#define_CRT_SECURE_NO_WARNINGS#include#includeusingnamespacestd;structActivist_funds{stringname;doubledeposit;};intmain(){inti;cout>i;cin.get();//消除换行符对后面getline的影响Activist_funds*donor=newActivist_fun
海两边
·
2016-04-16 19:07
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.5
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingnamespacestd;constdoubletax_in_5000=0;constdoubletax_5001_to_15000=0.10;constdoubletax_15001_to_35000=0.15;constdoubletax_beyond_35000=0.20;i
海两边
·
2016-04-16 19:40
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.4
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingnamespacestd;constintstrsize=30;//结构描述structbop{charfullname[strsize];chartitle[strsize];charbopname[strsize];intpreference;};intmain(){//创建结
海两边
·
2016-04-16 19:47
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.3
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingnamespacestd;intmain(){charch;cout<<"Pleaseenteroneofthefollowingchoices:\n";cout<<"c)carnivore\t\tp)painist\nt)tree\t\t\tg)game\n";ch=cin.ge
海两边
·
2016-04-16 19:21
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.2
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingnamespacestd;intmain(){constintArtsize=10;arraydonation;doublenum;inti=0;intbigger=0;doublesum=0;if(!(cin>>num))return0;while((cin>>num)||i==
海两边
·
2016-04-16 19:46
C++
primer
plus第六版课后编程练习
C++ primer
plus第六版课后编程练习
答案:6.1
#define_CRT_SECURE_NO_WARNINGS#include#includeusingnamespacestd;intmain(){charch;cout<<"Entersomething(@toquit):\n";while((ch=cin.get())!='@'){if(isupper(ch)){ch=tolower(ch);cout<
海两边
·
2016-04-16 19:09
C++
primer
plus第六版课后编程练习
上一页
1
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他