C++ Learning
文章平均质量分 71
汪少升
这个作者很懒,什么都没留下…
展开
-
My First C++ Program in Professional C++
//employee.h#ifndef EMPLOYEE_H#define EMPLOYEE_H#include#includenamespace Records{ int const kDefaultStartingSalary=30000; class Employee { public: Employee(); void promote(int inRais转载 2014-07-08 14:15:30 · 494 阅读 · 0 评论 -
排序及函数对象的基本用法
1.bool operator()(para...)2.sort(para1,para2,para3)原创 2014-08-03 13:06:18 · 341 阅读 · 0 评论 -
pat1080 graduate admission
#include#include#include#includeusing namespace std;#define N 40001#define M 101#define K 6struct Applicant{ int id,ge,gi; double fg; int rank; int prefer[K];};struct School{ in原创 2014-07-31 14:14:38 · 415 阅读 · 0 评论 -
PAT 1004 Counting Leaves
A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.InputEach input file contains one test case. Each case starts with a line原创 2014-08-23 18:04:47 · 334 阅读 · 0 评论 -
PAT 1014 Waiting in Line
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:The s原创 2014-08-25 14:57:20 · 359 阅读 · 0 评论 -
指向函数的指针--回调的基础
花了半天的时间研究回调函数,网上有些写得不对,所以记下备忘。话说回来,,很久没有更新博客了,很多事貌似遗忘了。#includeusing namespace std;class callBackTest;typedef void (callBackTest::*classfunp)(int a,int b,int &c);原创 2014-12-20 23:23:10 · 367 阅读 · 0 评论 -
PAT 1086
使用栈进行中序遍历模拟建立树。原创 2016-07-27 12:45:06 · 450 阅读 · 0 评论