![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
程序设计II
Z_J_Q_
https://github.com/Ernie1
展开
-
1438 [CA1002]Circle
Given a circle with radius R, please calculate the area of this circle.InputThe input contains a real number R(0.1 <= R <= 100)OutputOutput the area of the circle in a line.原创 2017-05-28 14:40:51 · 553 阅读 · 0 评论 -
1642 Set
A set is any well-defined collection of objects called the elements or members of the set.原创 2017-05-28 15:21:52 · 414 阅读 · 0 评论 -
2799 Simple Life @myLove (eden)
An iterator is any object that, pointing to some element in a range of elements (such as an array or a container)...原创 2017-05-29 14:16:54 · 581 阅读 · 0 评论 -
2736 FunctionTemplate(eden)
You are required to write one ( or more, maybe overload ) function templates to sort different kind of elements.There are 2 or 3 arguments in the function.原创 2017-05-29 14:01:10 · 715 阅读 · 0 评论 -
2738 Queue with Template(eden)
Please modify class Queue’s declaration and definition so as to finish the test from main.cpp…原创 2017-05-29 14:03:18 · 577 阅读 · 0 评论 -
2739 Stack with Template (eden)
In this assignment, you are required to finish the Stack with Template. Please modify class Stack’s declaration and definition so as to finish the validation from main.cpp原创 2017-05-29 14:05:28 · 455 阅读 · 0 评论 -
2740 Template Compare (eden)
Haoran is a “huge god” who loves C++ so much.One day he wants to implement a template function cmp which compares any type of two elements.原创 2017-05-29 14:07:07 · 425 阅读 · 0 评论 -
2742 Review Template and Stack (eden)
In this assignment, you need to complete Class Stack’s declaration and definition with Template.原创 2017-05-29 14:12:19 · 523 阅读 · 0 评论 -
2800 BitSet3(eden)
Give you N numbers a[1]…a[n]and M numbers b[1]…b[m]For each b[k], if we can find i,j a[i] + a[j] = b[k] or a[i] = b[k] , we say k is a good number.原创 2017-05-29 14:20:24 · 445 阅读 · 0 评论 -
1808 Alipay System 1 user(Eden)
You must have heard alipay(“Zhi Fu Bao” for Chinese). Now in this topic, we will do a series of practice to develop such a online payment system.原创 2017-05-30 11:28:05 · 714 阅读 · 0 评论 -
1809 The MyInteger class (eden)
Design a class named MyInteger. The class contains:An int data field named value that stores the int value represented by this object.原创 2017-05-30 14:54:01 · 1721 阅读 · 0 评论 -
1810 Bitset (eden)
Please complete this class.The class bitset is just like a big number which can have bit operations and some other operations.You can read main.cpp to understand how I check your program.原创 2017-05-30 14:56:06 · 739 阅读 · 0 评论 -
1811 Matrix Calculation (eden)
Please complete the class Matrix.Suppose you have understood the overload operator of C++.原创 2017-05-30 14:57:53 · 542 阅读 · 0 评论 -
2610 List Add
你的任务是完成一条能实现加法功能的单向链表,需要实现的函数在头文件已给出。原创 2017-05-30 19:42:07 · 355 阅读 · 0 评论 -
2736 FunctionTemplate(eden)
You are required to write one ( or more, maybe overload ) function templates to sort different kind of elements.原创 2017-05-30 20:00:07 · 463 阅读 · 0 评论 -
[STL]Priority Queue (eden)优先级队列
The only printer in the computer science students’ union is experiencing an extremely heavy workload.原创 2017-06-06 01:02:27 · 886 阅读 · 0 评论 -
1802 Set Operations (eden)
You need finish function.Require knowledge:Know set operations:include intersection(交集)union(并集)the complement of B with respect to A(B对A的补)symmetric difference(对称差)copy constructoroverload原创 2017-05-28 15:24:33 · 417 阅读 · 0 评论 -
1641 OOP in C (Date class)
学习如何用C模仿C++的类: How do you implement a class in C?原创 2017-05-28 15:15:25 · 652 阅读 · 0 评论 -
1436 [CA1009]The root of the equation
从键盘读入三个数a, b, c,输出方程ax^2+bx+c=0的两个实根。原创 2017-05-28 14:36:14 · 540 阅读 · 0 评论 -
1437 [CA1006]The area of triangle
给出平面内的三个点,求这三个点所围成的三角形的面积。Input平面内三个点的坐标,保证输入三角形是合法的Output三角形的面积,结果保留两位小数。原创 2017-05-28 14:38:44 · 503 阅读 · 0 评论 -
1357 [Ba1000] Simple C++ Program
DescriptionC++的输入输出使用cin 和cout函数,这两个函数存在于* * 头文件中。在C语言中,输出和输出一般需要指明变量的类型,而在C++中,输入和输出无须指明变量的类型。eg:int number1;float number2;char x;scanf("%d%f%c", &number1, &number2, &x);以上的C语言程序在C++中为#include <ios原创 2017-05-28 14:29:33 · 417 阅读 · 0 评论 -
1354 [BA1003] The Rectangle class
DescriptionDesign a class named Rectangle to represent a rectangle. The class contains: Two double data field named width and height that specify the width and height of the rectangle. The default val原创 2017-05-28 14:18:40 · 695 阅读 · 0 评论 -
1352 [BA1002] The Account class
DescriptionDeisgn a class named Account that contains: An int data field named id for the account (default 0). A double data field named balance for the account (default 0). A double data field name原创 2017-05-28 14:13:51 · 1427 阅读 · 0 评论 -
1350 [BA1001] The Stock class
DescriptionDesign a class named Stock that contains:A string data field named symbol for the stock's symbol.A string data field named name for the stock's name.A double data field named previousClos原创 2017-05-28 12:32:28 · 907 阅读 · 0 评论 -
1348 [BA1000] The Student Class with Public Data Fields
Description With a class "Student" declared as below: class Student {public: int id; char name[50]; // Data field int age; // Data field Student(); Student(int, char*, int);};You are requi原创 2017-05-28 12:23:11 · 421 阅读 · 0 评论 -
1440 [AA]重生之我是Zarc_______厉兵秣马
作为统一次元最强决斗者,毁灭世界的头号BOSS的扎克,竟然被自己的分身神游矢用主角光环给抹杀了。心怀怨恨的扎克带着愤怒重生了,现在,他不仅仅准备打败上代务给他定下的命运,而且准备向帕尔多斯那样击败最强决斗者——法老王。但是,首先,他得从自己的卡组中找到最强的四张卡来作为他的最强王牌。原创 2017-05-28 14:45:32 · 503 阅读 · 0 评论 -
1550 [CF1000]Shell Game
Bomboslav likes to look out of the window in his room and watch lads outside playing famous shell game. The game is played by two persons: operator and player.原创 2017-05-28 14:52:23 · 397 阅读 · 0 评论 -
1552 简单的Matrix运算
完善Matrix类的定义,实现简单的Matrix运算,类的定义,main函数已给出,你需要编写Matrix.h文件实现具体函数,记得包含类的定义。原创 2017-05-28 14:55:50 · 716 阅读 · 0 评论 -
1553 simple complex class
You need to define a class named complex which has private two members, one is real which represents the real part of the complex, and another is imag which represents the imaginary part of the...原创 2017-05-28 14:59:34 · 399 阅读 · 0 评论 -
1554 Class for Time
Please read the source code below carefully and finish the class Time’s declaration and implementation.The class Time has three member variables(type: integer): hour, minute, second.原创 2017-05-28 15:03:24 · 425 阅读 · 0 评论 -
1638 function overloading
写出3组Plus函数的声明与实现,类型分别为int,double,stringSample原创 2017-05-28 15:05:27 · 368 阅读 · 0 评论 -
1639 default arguments
写一个sum函数,体会函数缺省值的使用.对于主程序原创 2017-05-28 15:07:34 · 333 阅读 · 0 评论 -
1640 Single Dog
DescriptionAs we all know, there are many single dogs in SYSU, especially in SDCS. Now let’s create a class named SingleDog to represent them and count the number of existing dogs.DetailThe SingleDog h原创 2017-05-28 15:10:21 · 989 阅读 · 0 评论 -
[STL]IP and QQ (eden)
An ip can login several qqs, and a qq can be logined by several ips.Your task is to find which qqs have been logined by the ip and which ips have logined the qq.原创 2017-06-06 00:58:36 · 983 阅读 · 0 评论