摘要:
/*----------------------------------------------------*//*显示当前系统的位数限制,如整形,浮点型等 *//*By Edison Wang DATE:2009-07-22 */#include #include #include using namespace std;int ... 阅读全文
摘要:
1.download the gnuplot program form www.gnuplot.info2.unzip the gnuplot.zip to a directory, try to use wgnuplot.exe3.set the system environment variables to make sure that wgnuplot.exe could be use u... 阅读全文
摘要:
#include #include #include main(){char file1[15];char file2[16]=" ";//一个空格char copycmd[50]="copy ";char plotcmd[80]="wgnuplot.exe C:\\mytest\\diagram.txt";// printf("input first name\n");// ... 阅读全文
摘要:
/*---------------------------------------------------------*//*生成[a,b]之间的随机整数和浮点数 *//*By Edison Wang Date: 2009-7-25 */#include #include using names... 阅读全文
摘要:
#include #include #include #include #include using namespace std;//学生信息的类:包含姓名和成绩class Student{public:char* name;int score;Student(){};Student(char* n,int s){name=n;score = s;}~Student(){}};//按姓名查找时用... 阅读全文
摘要:
/*--------------------------------------------------------*//* This program looks at a character string and determines*//* if the string is a palindrome */#include #include #... 阅读全文
摘要:
/*-----------------------------------------------------*//* This program reads an html file, and writes the text without the tags to a new file. By Edison Wang Date: 2009-07-22*/#include... 阅读全文
摘要:
#include using namespace std;/*//注意,该函数是以最后一个元素p[end]为pivot。QuickSort(int p[], int start, int end){ if (start >= end) //(1)此时无需排序,所以返回。(2).1 这还保证了,如果只有2个元素时,j=end-1 =1>0 return; int i = ... 阅读全文
摘要:
/*--------------------------------------------------------------*//*读取一个ASCII数字图像并对其进行平滑处理,保存到另个文件中。图 *//*像文件的格式为PPM,可以使用pic2pic pro这个软件实现转化,文件头*//*包括P3,图像的宽度和高度,颜色的最大值,如: P3 176 220 255 148 164 ... 阅读全文
摘要:
/*---------------------------------------------------*//*Implement of pixel class *//*File name: pixel.cpp */#include "pixel.h"//三个构造函数的实现pixel... 阅读全文
摘要:
/*-----------------------------------------------*//* 像素类表示一个图片,一个像素由RGB组成 *//*Pixel class declaration. *//*File name : pixel.h */#ifndef PIXE... 阅读全文