摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SharpConsole{ public abstract class People { public abstract void Display(); public abstract void ShowMsg(); } public class Doctor : People { public override void Display() { Console.WriteLine("Doctor Di 阅读全文
摘要:
#include "hptime.h"#include <iostream>#include <Windows.h>using namespace std;int main(){ long i = 10000000L; // HpTime hpTime;LARGE_INTEGER freQue,startQue,endQue;__int64 start,end,fre; QueryPerformanceCounter(&startQue); start = startQue.QuadPart;//LONGLONG time; while( i 阅读全文
摘要:
#include <iostream>#include <ctime>using namespace std;void GetMaxValue(int *pDatas, int len);void main(){clock_t start, end;start = clock();int datas1[6] = {1, -2, 3, 5, -3, 2};//输出子数组最大值为8//该子数组为:3 5;GetMaxValue(datas1, 6);//输出子数组最大值为:9 //该子数组为:3 5 -1 2int datas2[6] = {0, -2, 3, 5, -1, 阅读全文