自定義一個(gè)簡單的日期類DateType,它具有數(shù)據(jù)成員y、m、d,用來表示當(dāng)前日期的年、月、日。而后設(shè)計(jì)該類欲實(shí)現(xiàn)(完成)的功能,進(jìn)而設(shè)計(jì)出相應(yīng)的類成員函數(shù)。 例如,下面給出的“雛形”可用來實(shí)現(xiàn)對(duì)天的增加,比較兩個(gè)日期是否相等,以及對(duì)日期的輸出等操作。請(qǐng)完成各類成員函數(shù),并編制主函數(shù),說明DateType類對(duì)象,對(duì)定義的各成員函數(shù)進(jìn)行調(diào)用,以驗(yàn)證它們的正確性。 class DateType { //自定義的日期類DateType int y,m,d //數(shù)據(jù)成員,表示當(dāng)前日期的年、月、日 public: DateType(int y0=1, int m0=1, int d0=1) //構(gòu)造函數(shù),設(shè)定年、月、日;并設(shè)置參數(shù)默認(rèn)值 void incrementDay() //增加1天 bool equal(DateType dt2) //判斷二日期是否相等 void printDate() //屏幕輸出日期對(duì)象的有關(guān)數(shù)據(jù)(年、月、日) }
上傳時(shí)間: 2013-12-22
上傳用戶:songyue1991
Professional verification-A guider for advanced functional verification:Author:PAUL WILCOX Including:Verication practice, Resource usage,The Unified Verification Methodology.etc.
標(biāo)簽: verification-A Professional verification functional
上傳時(shí)間: 2014-01-17
上傳用戶:三人用菜
C++ Standard Library provides a set of common classes and interfaces that greatly extend the core C++ language. The library, however, is not self-explanatory. To make full use of its components-and to benefit from their power-you need a resource that does far more than list the classes and their functions. The C++ Standard Library not only provides comprehensive documentation of each library component, it also offers clearly written explanations of complex concepts, describes the practical programming details needed for effective use, and gives example after example of working code.
標(biāo)簽: interfaces Standard provides Library
上傳時(shí)間: 2014-03-01
上傳用戶:lizhizheng88
The Linux Network Administrator s Guide, Third Edition updates a classic Linux title from O Reilly. This refreshed resource takes an in-depth look at everything you need to know to join a network. Topics covered include all of the essential networking software that comes with the Linux operating system, plus information on a host of cutting-edge services including wireless hubs, spam filtering, and more
標(biāo)簽: Linux Administrator Edition Network
上傳時(shí)間: 2015-09-19
上傳用戶:
Problem Statement You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input. Definition Class: ReverseSubstring Method: findReversed Parameters: string Returns: string Method signature: string findReversed(string input) (be sure your method is public) Notes The substring and its reversal may overlap partially or completely. The entire original string is itself a valid substring (see example 4). Constraints input will contain between 1 and 50 characters, inclusive. Each character of input will be an uppercase letter ( A - Z ). Examples 0) "XBCDEFYWFEDCBZ" Returns: "BCDEF" We see that the reverse of BCDEF is FEDCB, which appears later in the string. 1)
標(biāo)簽: input Statement You are
上傳時(shí)間: 2015-09-21
上傳用戶:sunjet
Dropbear is an SSH 2 server, designed to be usable in small memory environments. It supports: * Main features of SSH 2 protocol * Implements X11 forwarding, and authentication-agent forwarding for OpenSSH clients * Compatible with OpenSSH ~/.ssh/authorized_keys public key authentication
標(biāo)簽: environments Dropbear designed supports
上傳時(shí)間: 2014-01-16
上傳用戶:skhlm
This article describes Atmel’s FingerChip technology for electronic fingerprint sensing that combines the advantages of small size, low cost, high accuracy, zero maintenance, low energy consumption and portability. This technology has applications in a wide range of fixed and portable secured devices including access control systems, cash terminals, public transport, PCs, PDAs, Smart Card readers and motor vehicles. It can be used in almost any situation where rapid, reliable and accurate identification or authentication of an individual is required.
標(biāo)簽: fingerprint FingerChip technology electronic
上傳時(shí)間: 2013-12-27
上傳用戶:h886166
手機(jī)游戲坦克大戰(zhàn)import java.awt.* import javax.swing.* import java.awt.event.* import java.util.EventListener public class HsTank2 extends JFrame { HsTank2(String title) { this.setTitle(title) this.setSize(608 , 630) this.setLocation(300 , 100) this.setBackground(Color.WHITE)
標(biāo)簽: import java awt EventL
上傳時(shí)間: 2015-10-17
上傳用戶:李彥東
In this first-ever paperback edition of his long-time best-seller, motivational speaker Steve Chandler helps you create an action plan for living your vision in business and in life. It features 100 proven methods to positively change the way you think and act-methods based on feedback from the hundreds of thousands of corporate and public seminar attendees Chandler speaks to each year. 100 Ways to Motivate Yourself will help you break through the negative barriers and banish the pessimistic thoughts that are preventing you from fulfilling your lifelong goals and dreams. Whether you re self-employed, a manager, or a high-level executive, it s still easy to get stuck in the daily routines of life, fantasizing about what could have been. Steve Chandler helps you turn that way of thinking around and make what could have been into what can and will be.
標(biāo)簽: motivational best-seller first-ever paperback
上傳時(shí)間: 2015-10-26
上傳用戶:牛津鞋
主要介紹了如何使用JAVA創(chuàng)建一個(gè)類,并輸出Hello pudn字符。適合初學(xué)者學(xué)習(xí)使用。如類聲明為public型時(shí)類名必須與文件名一樣等。
上傳時(shí)間: 2013-12-26
上傳用戶:onewq
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1