自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 类的组合和类的函数友元和类友元使用

2009-11-14 14:31CPU类打印电脑属性(上)构造函数的定义,类的组合使用2009-11-14 14:23#include "stdafx.h"#include "iostream"using namespace std;enum Cpu_Rank {P1=1,P2,P3,P4,P5,P6,P7,P8};class

2010-05-05 22:25:00 541

原创 Cat类实现 (拷贝构造函数和静态数据变量的实现)

2009-11-14 14:29#include "stdafx.h"#include "iostream"using namespace std;class Cat{public:     Cat(int a,double w){weigth=w;age=a;HowManyCats++;cout"调用构造!"     ~Cat();    

2010-05-05 22:25:00 633

原创 CPU类打印电脑属性(上)构造函数的定义,类的组合使用

2009-11-14 14:24class Computer{public:Computer(Cpu c,Ram r,Cdrom cd){cpu=c;ram=r;cdrom=cd;} ~Computer(){cout"Computer class is deconstruct !"void print(Computer p);pr

2010-05-05 22:25:00 616

原创 数据结构链表知识整合

2009-11-14 14:35//定义单链表结构体typedef struct node{int data;struct node *next;}Lnode,*LinkList;//创建空单链表LinkList Creat_Link(void){LinkList H;H=(LinkList)malloc(sizeof(Lnode));if(!H){   cout   retu

2010-05-05 22:24:00 359

原创 数制转换各种实现 数据结构

2009-11-14 14:39//Stack应用#include "stdio.h"#include"malloc.h"#define MAXSIZE 100typedef int DataType; typedef struct node {       int top;       DataType data[MAXSIZE];}Seq

2010-05-05 22:23:00 768

原创 Java 小日历格式输出 闰年计算

2010-04-26 22:36import java.util.Scanner;public class _calendar {public static void main(String[] args) {   // TODO Auto-generated method stub   System.out.println("请输入年份:");   Scanner sc

2010-05-05 22:22:00 1153

原创 数据结构课程设计*大数乘大数

2009-11-19 19:32#include "stdafx.h"#include "iostream"using namespace std;int count(char *s)//判断字符串大小{int count1=0;char ch;ch=*s;while(ch!=/0){   count1++;   s++;   ch=*s;}return count1;

2010-05-05 22:22:00 439

原创 打印规则星图 空心星图 (如有漏洞请指出)

2010-05-01 15:40package print_pic;import java.util.Scanner;public class _star {public static void main(String[] args) {   Scanner sc = new Scanner(System.in);   System.out.println("请

2010-05-05 22:21:00 582

原创 数值转换

/////////////////////////////////////Stack应用#include "stdio.h"#include"malloc.h"#define MAXSIZE 100typedef int DataType; typedef struct node {       int top;       DataType d

2010-05-05 22:19:00 270

原创 数制转换

/////////////////////////////////////Stack应用#include "stdio.h"#include"malloc.h"#define MAXSIZE 100typedef int DataType; typedef struct node {       int top;       DataType d

2010-05-05 22:18:00 353

原创 斐波那契数列 递归和非递归 双重实现

import java.util.Scanner;public class _fibo {public static void main(String[] args) {   Scanner sc=new Scanner(System.in);   System.out.println("请输入斐波那契数列项数:");   int num=sc.nextInt();  

2010-05-05 22:17:00 777

原创 约瑟夫环问题的实现

#include"stdio.h"#include"malloc.h"typedef struct node{       int data;       struct node *next;}Lnode,*LinkList;  LinkList CreatLink()//带头结点  {    int data,i=1;Lin

2010-05-05 22:17:00 477

原创 21点 21根火柴 常胜将军 简单游戏

package game;import java.util.*;public class _chshman {//常胜将军public static void main(String[] args) {   // TODO Auto-generated method stub   _chshman ch1=new _chshman();   int total=21;   for(

2010-05-05 22:15:00 837

原创 石头 剪刀 布 游戏 三个角色

//main()类,游戏类package game;import java.util.Scanner;import java.lang.Math;public class Caiquan {public static void main(String[] args) {   // TODO Auto-generated method stub   System.out.println("剪

2010-05-05 22:14:00 576

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除