- 博客(232)
- 收藏
- 关注
原创 分类无果
想将之前的博客都分好类的,好像现在对于分类有些执迷,觉得比较清爽。可是。。。。。。那么多篇,我还是算了吧,默认是一个文件夹好了。其实数据多了,分类都成了累赘。 好像找到了一个新的可以写日记的地方。还是需要一个出口的,人间不值得一个人活着 ...
2019-12-07 15:31:12
168
转载 JavaScript 反调试技巧
不明觉厉 http://web.jobbole.com/94086/
2018-07-26 13:42:14
572
原创 三年后的感想
四年前上传图片还要先截图保存然后再选择文件,有是否打上水印之选,现在一个ctrl+v就好了。感谢当时贺老的入门教导,虽然四年过去了我还在门口,前路不可望...
2018-07-25 15:47:21
319
原创 嘻唰唰第一批之对象的转换
代码 #include #include #include #include using namespace std; class Student { int num; char *name; char sex; float score; public: Student(int nu,char *na,char a,float s
2015-07-20 13:47:35
786
原创 银行储蓄系统(C++课程实训博客电子报告)
/****************************************************** *版权所有(c)2015.烟台大学计算机与控制工程学院 * *文件名称:main.cpp *文件标示:无 *内容摘要:该代码用于满足后缀要求的第一个文件 *其他说明:无 *当前版本:V1.0 *作者:李长鸿 *完成日期:2015.7.17 * *修改记录: *修改
2015-07-17 20:19:28
1563
原创 嘻唰唰第四批之学生信息的输入输出
代码 #include #include #include using namespace std; class Student { private: const int maxSchoolPeriod; //学制 int no; //学号 char name[20]; //姓名 public: //*****修改的起始行******/
2015-07-15 11:09:02
606
原创 嘻唰唰第一批之商品销售之静态运用
代码 #include #include using namespace std; class Product { static float discount; static float sum; static int n; int num,q; float pri; public: Product(int a=0,int
2015-07-14 09:15:31
619
原创 嘻唰唰第五批之三 抽象基类
问题及代码 #include #include using namespace std; class Shape { public: virtual void area() {} }; class Rectangle:public Shape { float a,b; public: Rectangle(double i,double j)
2015-07-01 17:14:06
454
原创 嘻唰唰第四批之构造函数
问题及代码 #include using namespace std; class XiaoPing { private: int state; //用来记录是否有参数 int data; public: XiaoPing(); XiaoPing(int data); ~XiaoPing(); }; ///////////
2015-06-22 18:29:38
388
原创 OJ嘻唰唰第二批之成绩统计
问题及代码 #include #include using namespace std; class Student { string number; int c; int m; int e; public: Student(string n="1231",int a=89,int b=89,int c=89):number(n),c
2015-06-19 19:49:05
878
原创 OJ嘻唰唰第一批之友元输出时间日期
问题及代码 /* ALL rights reserved. *文件名称: 初学对象14 作者:李长鸿 *完成时间:2015.6.18 *问题描述: OJ之友元输出时间 */ 主
2015-06-18 16:58:06
1005
原创 第十四四周项目二 改写文件并另存
问题及代码 /* ALL rights reserved. *文件名称: 初学对象14 作者:李长鸿 *完成时间:2015.6.17 *问题描述: 文件改写并另存 */ #include #in
2015-06-17 09:05:03
499
原创 第十四周项目一 小玩文件之统计文本文件中的字符个数
问题及代码 /* ALL rights reserved. *文件名称: 初学对象14 作者:李长鸿 *完成时间:2015.6.17 *问题描述: 统计文本文件中的字符个数 #include #inc
2015-06-17 08:44:07
547
1
原创 第十四周项目一 小玩文件
问题及代码 #include #include #include // (1) using namespace std; int main() { fstream file; file.open("abc.txt", ios::in); // (2) if(!file) { cout<<"abc.txt can’t open."<<e
2015-06-16 13:12:43
884
原创 第十四周项目七
代码 #include #include using namespace std; int main( ) { int c; cout<<"enter a sentence:"<<endl; while((c=cin.get())!=EOF) cout.put(c); return 0; }
2015-06-10 09:22:58
712
原创 第十四周项目六
问题 #include using namespace std; int main( ) { float grade; cout<<"enter grade:"; while(cin>>grade) //能从cin流读取数据 { if(grade>=85) cout<<grade<<" GOOD!"<<
2015-06-10 09:20:32
424
原创 第十四周项目五
问题 #include #include int main() { char *a="BASIC"; for(int i=4; i>=0; i--) putchar(*(a+i)); putchar('\n'); return 0; }
2015-06-10 09:18:12
375
原创 第十四周阅读程序四
问题 #include using namespace std; int main( ) { char *a="BASIC"; //字符指针指向'B' for(int i=4; i>=0; i--) cout.put(*(a+i)); //从最后一个字符开始输出 cout.put('\n'); return 0; }
2015-06-10 09:15:36
608
原创 第十四周阅读程序三
问题 #include using namespace std; int main() { int a=21; cout.setf(ios::showbase); cout<<"dec:"<<a<<endl; cout.unsetf(ios::dec); cout.setf(ios::hex); cout<<"hex:"<<a<
2015-06-10 09:13:30
451
原创 第十三周阅读程序二
问题 #include #include using namespace std; int main() { int a; cout<<"input a:"; cin>>a; cout<<"dec:"<<dec<<a<<endl; cout<<"hex:"<<hex<<a<<endl; cout<<"oct:"<<setba
2015-06-10 09:10:39
592
原创 第十四周阅读程序一
问题 #include using namespace std; int main() { int a=21; cout.setf(ios::showbase); cout<<"dec:"<<a<<endl; cout.unsetf(ios::dec); cout.setf(ios::hex); cout<<"hex:"<<a<
2015-06-10 09:06:33
360
原创 第十三周项目三 立体族类的纯虚函数
问题及代码 /* ALL rights reserved. *文件名称: 初学对象13 作者:李长鸿 *完成时间:2015.6.10 *问题描述: 立体几何的纯虚函数 #include usin
2015-06-10 08:55:32
447
原创 第十三周项目二 几何族类的纯虚函数
问题及代码 /* ALL rights reserved. *文件名称: 初学对象13 作者:李长鸿 *完成时间:2015.6.10 *问题描述: 几何的纯虚函数
2015-06-10 08:30:25
422
原创 第十三周项目一 动物叫声 2
问题及代码 /* ALL rights reserved. *文件名称: 初学对象13 作者:李长鸿 *完成时间:2015.6.3 *问题描述: 动物叫 */ #
2015-06-03 09:20:04
346
原创 第十三周实践项目一 动物的叫声
问题及代码 /* ALL rights reserved. *文件名称: 初学对象13 作者:李长鸿 *完成时间:2015.6.3 *问题描述: 输入输出符号重载问题 *
2015-06-03 09:02:37
361
原创 第十三周阅读项目六
代码 #include using namespace std; class Vehicle //交通工具 { public: virtual void run() const=0 }; class Car: public Vehicle //汽车 { public: void run() const { cout << "run a car.
2015-06-03 08:38:30
301
原创 第十三周阅项目五
代码 #include using namespace std; class Vehicle //交通工具 { public: virtual void run() const { cout << "run a vehicle. "<<endl; } }; class Car: public Vehicle //汽车 { public: vo
2015-06-03 08:27:46
340
原创 第十三周阅读项目四
#include using namespace std; class Vehicle //交通工具 { public: void run() const { cout << "run a vehicle. "<<endl; } }; class Car: public Vehicle //汽车 { public: void run() con
2015-06-03 08:24:19
279
原创 第十三周阅读程序三
代码 #include using namespace std; class Base { public: virtual void Who() =0; }; class FirstDerived:public Base { public: void Who() { cout<<"F"; } }; class SecondDerived:public B
2015-06-03 08:17:37
304
原创 第十三周阅读项目二
代码 #include using namespace std; class BASE { private: char c; public: BASE(char n):c(n) {} virtual ~BASE() { cout<<c; } }; class DERIVED:public BASE { private: char c;
2015-06-03 08:08:04
294
原创 第十三周阅读程序一
代码 #include using namespace std; class A { int a; public: A():a(5){} virtual void print()const { cout<<a;} }; class B: public A { char b; public: B() { b='E'; } void prin
2015-06-03 08:01:27
282
原创 第九周项目三 分数的输入输出符号重载
问题及代码 /* ALL rights reserved. *文件名称: 初学对象9 作者:李长鸿 *完成时间:2015.5.27 *问题描述: 输入输出符号重载问题 */
2015-05-27 15:42:18
293
原创 第九周项目二 时间类的输入输出符的重载
问题及代码 /* ALL rights reserved. *文件名称: 初学对象9 作者:李长鸿 完成时间:2015.5.27 *问题描述: 时间类的输入输出重载 */
2015-05-27 14:43:25
296
原创 第十二周项目一 教师干部的多继承
问题及代码 /* ALL rights reserved. *文件名称: 初学对象11 作者:李长鸿 完成时间:2015.5.26 *问题描述: 日期时间类的多继承 */ #
2015-05-27 14:26:15
335
原创 第十一周项目五 点,圆,柱类族的设计
问题及代码 /* ALL rights reserved. *文件名称: 初学对象11 作者:李长鸿 完成时间:2015.5.26 *问题描述: 日期时间类的多继承 */ #includ
2015-05-27 08:57:18
424
原创 第十二周项目四 点与圆的关系
问题及代码 /* ALL rights reserved. *文件名称: 初学对象12 作者:李长鸿 *完成时间:2015.5.27 *问题描述: 点与圆的继承 */ #include
2015-05-27 08:34:11
341
原创 第十二周项目三 日期时间类的多继承
问题及代码 * ALL rights reserved. *文件名称: 初学对象11 作者:李长鸿 *完成时间:2015.5.26 *问题描述: 日期时间类的多继承 */ #include using n
2015-05-26 17:39:03
437
原创 第十二周项目二 惊魂飞车
问题及代码 /* ALL rights reserved. *文件名称: 初学对象12 作者:李长鸿 *完成时间:2015.5.26 *问题描述: 惊魂摩托 */ #include #include #
2015-05-26 16:58:10
333
原创 第十一周项目四 点类派生直线类
问题及代码 /* ALL rights reserved. *文件名称: 初学对象11 作者:李长鸿 *完成时间:2015.5.25 *问题描述: 点类派生直线类问题 */ #include #include using
2015-05-25 14:05:38
376
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人