自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(7)
  • 资源 (6)
  • 收藏
  • 关注

原创 shell脚本笔记(二)Condition Evaluation Utility

格式:test expression 或者 [ expression ] 返回:0表达式为真,1表达式为假或者缺少表达式,大于1表示发生错误 一、测试文件 例如:test -e dummy.txt -e 存在 文件类型 -b block -c character -d directory -f exist & regular -p named pipe (FIFO) -L

2015-01-20 23:51:24 661

原创 shell脚本笔记(一)

变量 定义一个变量:a=123(等号前后不能有空格)$var 或者 ${var}第二种表示有必要吗?num=2echo $numnd # 错误echo ${num}nd # 正确所以,脚本空格很重要。$(cmd)等同于`cmd`,脚本会执行cmd并将结果替换整个表达式(包括cmd外面)环境变量PATHexport PATH=/usr/local/sbin:$PATH 参数 脚本可以看做是命令

2015-01-20 22:46:06 399

原创 HDU 1171 Big Event in HDU(多重背包)

#include #include using namespace std; int n,v[60],m[60],sum,dp[250010]; int main() { while(cin >> n) { if(n<0)break; sum = 0; for(int i=0;i<n;i++) {

2012-08-24 00:50:03 485

原创 HDU 1153 Magic Bitstrings (找规律)

#include using namespace std; long long p; int a[100010]; int main() { while(cin >> p) { if(p==0)break; if(p==2)cout << "Impossible" << endl; else {

2012-08-23 21:25:44 1523

原创 HDU 1100 Trees Made to Order (Catalan数)

#include #include using namespace std; int catalan[19]={ 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845, 35357670, 129644790, 47763

2012-08-23 19:03:21 599

原创 HDU 1085 Holding Bin-Laden Captive!

#include using namespace std; int num_1,num_2,num_5,c1[8010],c2[8010]; int main() { while(cin >> num_1 >> num_2 >> num_5) { if(num_1==0&&num_2==0&&num_5==0)break; for(int i=0

2012-08-23 14:22:26 369

原创 HDU 1027 Ignatius and the Princess II

#include #include using namespace std; int main() { int m,n,a[1010]; while(cin >> n >> m) { for(int i=0;i<n;i++)a[i]=i+1; for(int i=0;i<m-1;i++)next_permutation(a,a+n);

2012-08-23 13:59:06 320

ALL-IN-ONE LPI Linux Essentials Certification EXAM GUIDE - 2013

ALL-IN-ONE LPI Linux Essentials Certification EXAM GUIDE - 2013

2015-05-13

The UNIX Programming Environment

贝尔实验室Brian W. Kernighan和 Rob Pike 的经典之作

2014-09-24

PC Logo for Windows - v1.01a

接触过 LOGO 编程语言的人应该都知道这款软件,这也是笔者接触的第一门编程语言,怀念之情难以言表。特将此资源拿出来与大家共享。 注:资源包中包含英文原版和汉化补丁。 以下是原版软件的 README: PC Logo for Windows This file contains the latest information about PC Logo for Windows. PC Logo for Windows installation automatically installs four example programs. These are: Shape Editor The PC Logo for Windows shape editor provides an easy and convenient way to change the turtle shape and save your new shapes as files. The shape editor is written in Logo and also provides an example of using Logo to create a program complete with windows, dialog boxes, buttons, and help. To use the shape editor, load the SHED.LGO file from within Logo or double-click the Shape Editor icon in the Program Manager. Music The MUSIC.LGO file provides an example of using Logo to play music. To listen to the music, load the MUSIC.LGO file from within Logo or double-click the Music icon in the Program Manager. Follow the instructions that appear on the screen. Squiral The squiral program is an example of a simple Logo procedure that uses recursion to create colorful and complex graphics designs. To see the squirals, load the SQUIRAL.LGO file from within Logo or double-click the Squiral icon in the Program Manager. Shapes The shapes program illustrates using multiple turtles in Logo with different shapes for each of them. To see the different shapes, load the SHAPES.LGO file from within Logo or double-click the Shapes icon in the Program Manager. More information about Logo Many books have been published about teaching Logo and using it to teach a variety of other subjects. Harvard Associates has gathered the best of these books into the PC Logo Library. The PC Logo Library catalog accompanies each copy of PC Logo for Windows. Contact Harvard Associates if you would like a copy of the catalog or wish to order one or more of the selections in the PC Logo Library. Harvard Associates, Inc. 10 Holworthy Street Cambridge, MA 02138 U.S.A. phone: (617) 492-0660 fax: (617) 492-4610 CompuServe: 70312,243 Internet: 70312.243@compuserve.com If you are contacting Harvard Associates about a Logo programming problem, please use either fax, mail, or electronic mail and include a written example of a Logo procedure that illustrates the problem.

2014-09-19

Pro Android 4.pdf

基于android4.0平台的开发教材,英文版,很全面。

2012-12-27

visual basic 6.0 俄罗斯方块

vb6.0实现的俄罗斯方块 画面朴素,功能简单,仅供学习交流之用

2012-07-12

The C Programming Language

C程序设计教程,绝对经典之作。 The C programming Language By Brian W. Kernighan and Dennis M. Ritchie. Published by Prentice-Hall in 1988 Preface The computing world has undergone a revolution since the publication of The C Programming Language in 1978. Big computers are much bigger, and personal computers have capabilities that rival mainframes of a decade ago. During this time, C has changed too, although only modestly, and it has spread far beyond its origins as the language of the UNIX operating system. The growing popularity of C, the changes in the language over the years, and the creation of compilers by groups not involved in its design, combined to demonstrate a need for a more precise and more contemporary definition of the language than the first edition of this book provided. In 1983, the American National Standards Institute (ANSI) established a committee whose goal was to produce ``an unambiguous and machine-independent definition of the language C'', while still retaining its spirit. The result is the ANSI standard for C. The standard formalizes constructions that were hinted but not described in the first edition, particularly structure assignment and enumerations. It provides a new form of function declaration that permits cross-checking of definition with use. It specifies a standard library, with an extensive set of functions for performing input and output, memory management, string manipulation, and similar tasks. It makes precise the behavior of features that were not spelled out in the original definition, and at the same time states explicitly which aspects of the language remain machine-dependent. This Second Edition of The C Programming Language describes C as defined by the ANSI standard. Although we have noted the places where the language has evolved, we have chosen to write exclusively in the new form. For the most part, this makes no significant difference; the most visible change is the new form of function declaration and definition. Modern compilers already support most features of the standard. We have tried to retain the brevity of the first edition. C is not a big language, and it is not well served by a big book. We have improved the exposition of critical features, such as pointers, that are central to C programming. We have refined the original examples, and have added new examples in several chapters. For instance, the treatment of complicated declarations is augmented by programs that convert declarations into words and vice versa. As before, all examples have been tested directly from the text, which is in machine-readable form. Appendix A, the reference manual, is not the standard, but our attempt to convey the essentials of the standard in a smaller space. It is meant for easy comprehension by programmers, but not as a definition for compiler writers -- that role properly belongs to the standard itself. Appendix B is a summary of the facilities of the standard library. It too is meant for reference by programmers, not implementers. Appendix C is a concise summary of the changes from the original version. As we said in the preface to the first edition, C ``wears well as one's experience with it grows''. With a decade more experience, we still feel that way. We hope that this book will help you learn C and use it well. We are deeply indebted to friends who helped us to produce this second edition. Jon Bently, Doug Gwyn, Doug McIlroy, Peter Nelson, and Rob Pike gave us perceptive comments on almost every page of draft manuscripts. We are grateful for careful reading by Al Aho, Dennis Allison, Joe Campbell, G.R. Emlin, Karen Fortgang, Allen Holub, Andrew Hume, Dave Kristol, John Linderman, Dave Prosser, Gene Spafford, and Chris van Wyk. We also received helpful suggestions from Bill Cheswick, Mark Kernighan, Andy Koenig, Robin Lake, Tom London, Jim Reeds, Clovis Tondo, and Peter Weinberger. Dave Prosser answered many detailed questions about the ANSI standard. We used Bjarne Stroustrup's C++ translator extensively for local testing of our programs, and Dave Kristol provided us with an ANSI C compiler for final testing. Rich Drechsler helped greatly with typesetting. Our sincere thanks to all. Brian W. Kernighan Dennis M. Ritchie

2008-09-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除