Location:
Search - C min
Search list
Description: What is it? Ilib is a library (and some tools and examples) written in C that can read, create, manipulate and save images. It is capable of using X11 BDF fonts for drawing text. (X11 BDF fonts are part of the UNIX-based X11 Windows System, original developed at MIT in the early 1990s.) That means you get lots (208, to be exact) of fonts to use. You can even create your own if you know how to create an X11 BDF font. It can read and write PPM, XPM, GIF, PNG and JPG image format. -What is it Ilib is a library (and some tools and examples) written in C that can read, create, manipulate and save images. It is capable of using X11 BDF fonts for drawing text. (X11 BDF fonts are part of the UNIX-based X11 Windows System, original developed at MIT in the early 1990s.) That means you get lots (208, to be exact) of fonts to use. You can even create your own if you know how to create an X11 BDF font. It can read and write PPM, XPM, GIF, PNG and JPG image format.
Platform: |
Size: 130922 |
Author: fwx |
Hits:
Description: 数据结构配套C代码,严慰敏,陈文博编著的数据结构及应该用算法教程-data structure supporting C code, Yan Wei Min Xu compilation of the data structure and algorithm should be used Guide
Platform: |
Size: 505404 |
Author: 刘 |
Hits:
Description: 1.把\"Web\"文件夹内的文件拷贝到某个文件夹
2.在IIS中新建站点,指向该文件夹,如果新建虚拟路径,会导致一些图片的不正常显示.
3.\"Database\"文件夹内有数据库文件hyb2bTest_Data.MDF,在Sql Server企业管理器中选择\"附加数据库\"
4.需要修改根目录web.config文件
<add key=\"DBServer\" value=\".\"/>,改成当前数据库地址
<add key=\"DBUser\" value=\"sa\"/>,改成当前数据库用户名
<add key=\"DBPwd\" value=\"sa\"/>,改成当前数据库密码
<add key=\"DBName\" value=\"hyb2btest\"/>,改成当前数据库名称
<add key=\"SQLConnString\" value=\"server=. database=hyb2btest user id=sa pwd=sa Min Pool Size=10\"/>,分别也换成当前数据库的地址,用户名、密码以及数据库名称。
5.后台登录地址:
当前路径+manage/index.aspx
帐户:admin
密码:admin
环境要求:
Windows2000 / Windows2003 + IIS5 + .NET Framework 1.1 + MS SQL Server 2000 或各更高版本
演示地址:www.hyb2b.cn
电话:13061363607
MSN :huayousoft@hotmail.com
Platform: |
Size: 7626491 |
Author: xiaoli |
Hits:
Description: 算法与数据结构,C语言版严蔚敏,清华大学出版社-algorithms and data structures, C-language version of Yan Wei Min, Qinghua University Press
Platform: |
Size: 8146745 |
Author: 撒嗯 |
Hits:
Description: 实验三:C++编程入门
一、实验内容
1. 类模版。
2. 运算符重载。
3. 友元。
4. 继承。
二、实验题目
1, 设计一个类SavingsAccount,定义一个静态数据成员记录存款的年利率(rate),该类的每个成员都包含一个私有的数据成员balance,表示该成员当前的存款数额。提供一个成员函数CalMonthlyInterest(),用以计算月利息(用balance乘以rate再除以12),并将这个月利息加入balance中。提供一个静态成员函数ModifyRate(),用以改变静态数据成员rate的值。定义两个不同的SavingsAccount对象saver1和saver2,当前存款数额balance分别为2000.00和3000.00。首先将rate设置为3%,计算每个存款人的月息并打印新的结果,然后将rate设置为4%,再次计算每个存款人的月息并打印新的结果。
2, 设计一个学生类student,包括学生学号、姓名、成绩;设计一个友元函数,比较某两个学生成绩的高低;读入一个文本文件(格式如示例studengt.txt,每行的学号、姓名、成绩之间用四个空格隔开)中所有学生的学号、姓名、成绩,输出最高成绩和最低成绩的学生信息(学号、姓名、成绩)。
3, 阅读下面例子,将题中的Time类声明为Data类的友元类,通过Time类中的display函数引用Data类的私有数据,输出年、月、日和时、分、秒。
#include <iostream>
using namespace std;
class Date; //对Date类的提前引用声明
class Time //定义Time类
{
public:
Time(int,int,int);
void display(Date &); //display是成员函数,形参是Date类对象的引用
private:
int hour;
int minute;
int sec;
};
class Date //声明Date类
{
public:
Date(int,int,int);
friend void Time∷display(Date &); //声明Time中的display函数为友元成员函数
private:
int month;
int day;
int year;
};
Time∷Time(int h,int m,int s) //类Time的构造函数
{
hour=h;
minute=m;
sec=s;
}
void Time∷display(Date &d) //display的作用是输出年、月、日和时、分、秒
{
cout<<d.month<<″/″<<d.day<<″/″<<d.year<<endl; //引用Date类对象中的私有数据
cout<<hour<<″:″<<minute<<″:″<<sec<<endl; //引用本类对象中的私有数据
}
Date∷Date(int m,int d,int y) //类Date的构造函数
{
month=m;
day=d;
year=y;
}
int main( )
{
Time t1(10,13,56); //定义Time类对象t1
Date d1(12,25,2004); //定义Date类对象d1
t1.display(d1); //调用t1中的display函数,实参是Date类对象d1
return 0;
}
4, 将下面程序改为在类模板外定义各成员函数:
#include <iostream>
using namespace std;
template<class numtype> //定义类模板
class Compare
{
public:
Compare(numtype a,numtype b)
{
x=a;y=b;
}
numtype max( )
{
return (x>y)?x:y;
}
numtype min( )
{
return (x<y)?x:y;
}
private:
numtype x,y;
};
int main( )
{
Compare<int> cmp1(3,7); //定义对象cmp1,用于两个整数的比较
cout<<cmp1.max( )<<″ is the Maximum of two integer numbers.″<<endl;
cout<<cmp1.min( )<<″ is the Minimum of two integer numbers.″<<endl<<endl;
Compare<float> cmp2(45.78,93.6); //定义对象cmp2,用于两个浮点数的比较
cout<<cmp2.max( )<<″ is the Maximum of two float numbers.″<<endl;
cout<<cmp2.min( )<<″ is the Minimum of two float numbers.″<<endl<<endl;
Compare<char> cmp3(′a′,′A′); //定义对象cmp3,用于两个字符的比较
cout<<cmp3.max( )<<″ is the Maximum of two characters.″<<endl;
cout<<cmp3.min( )<<″ is the Minimum of two characters.″<<endl;
return 0;
}
5, 有两个矩阵a和b,均为2行3列,求两个矩阵的和。重载运算符“+”使之用于矩阵相加。如:c=a+b。重载插入运算符“<<”和流提取运算符“>>”,使之能用于该矩阵的输入和输出。
6, 利用类继承分别完成一个学生类、一个大学生类、一个本科生类,本科生类中包括了一个学生作为他的班长。在创建一个本科生对象时赋予他的全部信息,输出该本科生对象的全部信息。
7, 利用c++继承、多态虚函数、构造函数完成以下程序:设计人、老师、学生、大学生、研究生、大四学生等类、其主要属性自己定义,要求包括以下方法:
1) 构造函数,创建对象的主要信息
2) Display,显示每种类对象的主要信息
此外,要求每个类包含一个生日对象,其类型为Birthday类,学生类应该包含一个班主任对象,其类型为老师类。
三、实验要求
将程序源代码压缩后提交至学院FTP上对应实验和班级的目录中。
作业命名方式为:“学号姓名.rar”。
作业提交时间:下次实验课前提交。
Platform: |
Size: 1255695 |
Author: zhuchao0731@163.com |
Hits:
Description: C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C- lack of a prototype, and the definition of a statement is no difference between (the same as C).
Platform: |
Size: 6144 |
Author: 林丰 |
Hits:
Description: 算法与数据结构,C语言版严蔚敏,清华大学出版社-algorithms and data structures, C-language version of Yan Wei Min, Qinghua University Press
Platform: |
Size: 8146944 |
Author: 撒嗯 |
Hits:
Description: MiniGUI 编程指南-V1.3-C,详细描述了MiniGUI开发嵌入式图形界面的基础知识,技术资料和开发技巧。-The guide of MiniGUI programme-V1.3-C,described detailedly of background,technical information and development skills about embeded graphical interface.
Platform: |
Size: 2004992 |
Author: 白道贵 |
Hits:
Description: C++primer第三版中文版,c++经典书籍,Stanley B Lippman著,潘爱民译-C++ Primer third edition of the Chinese version, c++ Classic books, Stanley B Lippman, and PAN Ai-min translation
Platform: |
Size: 3993600 |
Author: pj |
Hits:
Description: C++Primer中文版 第三版
深入系列
Primer 第三版
著
中中文文版版潘爱民张丽译
Addison-Wesley 中国电力出版社
www.infopower.com.cn
Stanley B Lippman
J o s é e L a j o i e
-C++ Primer Chinese version of the third edition of Primer-depth series in the third edition of the Chinese version translated version of PAN Ai-min Zhang Addison-Wesley Publishing House of China
Platform: |
Size: 10724352 |
Author: 天佑 |
Hits:
Description: 清华 严蔚敏《数据结构》的全部代码实现(C语言)-YAN Wei-Min Tsinghua
Platform: |
Size: 202752 |
Author: atl |
Hits:
Description: 这是William Ford,William Topp编写,刘卫东译,严蔚敏审校的数据结构 C++语言描述电子书籍。-This is the William Ford, William Topp prepared, translated Liu, Yan Wei-min data structure Revisers C++ Language to describe e-books.
Platform: |
Size: 20141056 |
Author: 刘名 |
Hits:
Description: 简单的C语言编译器,含词法和语法文件,需要flex,bison和C++软件-Simple C language compiler, including morphology and syntax files, the need to flex, bison and C++ Software
Platform: |
Size: 348160 |
Author: xiaohang |
Hits:
Description: 清华大学严蔚敏数据结构习题集(C版),是PDF格式,需要PDF的阅读器-Tsinghua University, Yan Wei-min exercise set data structure (C version) is the PDF format, the need for PDF reader
Platform: |
Size: 4704256 |
Author: 孔 |
Hits:
Description: 清华大学严蔚敏版《数据结构》c语言,配套的程序(书上用于举例的程序)。-Tsinghua University, Yan Wei-min version of
Platform: |
Size: 215040 |
Author: 佳 |
Hits:
Description: 词法和语法分析器,其中词法分析是用c写的,语法分析是用java写的-Lexical and syntax analyzer, including lexical analysis is c written grammar analysis is written in java
Platform: |
Size: 1081344 |
Author: AFei |
Hits:
Description: C++_Primer 中文版 作者:潘爱民-C++ _Primer Chinese version Author: PAN Ai-min
Platform: |
Size: 3994624 |
Author: zlh |
Hits:
Description: 数据结构(C语言版严蔚敏著)。非常出名的一本书籍,曾经用过,觉得很经典-Data structure (C-min YAN Wei-language version of book). One very well-known books, used once, I think I really classic
Platform: |
Size: 7540736 |
Author: 林周 |
Hits:
Description: 数据结构(C语言版严蔚敏著)
PDF版本-Data structure (C-min YAN Wei-language version of book) PDF version
Platform: |
Size: 7543808 |
Author: lovelamb |
Hits:
Description: This program demonstrated the use of the morphology operator, especially open, close, erode, dilate operations. Morphology operators are built on max (close) and min (open) operators as measured by pixels covered by small structuring elements.
Platform: |
Size: 1024 |
Author: marcusbarnet |
Hits:
« 12
3
4
5
6
7
8
9
10
...
23
»