class fun { public static void main(String[] args) { String str="java is an object oriented programming language"; String[] strs = str.split(" "); int sum = 0; for(int i=0;i<strs.length;i++) { sum += strs[i].length(); System.out.pri…
Python is an example of high-level language. As you might infer from the name “high-level language”, there are also low-level languages, sometimes referred to as “machine languages” or “assembly languages”. Loosely speaking, computers can only execut…
[K&R C] 1978 年,Dennis Ritchie 和 Brian Kernighan 合作推出了<The C Programming Language>的第一版(按照惯例,经典著作一定有简称,该著作简称为 K&R),书末的参考指南 (Reference Manual) 一节给出了当时 C 语言的完整定义,成为那时 C 语言事实上的标准,人们称之为 K&R C.从这一年以后,C 语言被移植到了各种机型上,并受到了广泛的支持,使 C 语言在当时的软件开发中几乎一统…
In the Java community there's been a rush of lightweight containers that help to assemble components from different projects into a cohesive application. Underlying these containers is a common pattern to how they perform the wiring, a concept they r…
Inversion of Control Containers and the Dependency Injection pattern --Martin Fowler 本文内容 Component and Service(组件和服务) A Naive Example(一个超级简单的例子) Inversion of Control(控制反转) Forms of Dependency Injection(依赖注入的几种形式) Constructor Injection with PicoConta…
Python is an object-oriented programing language, which means that it provides features that support object-oriented programming. It is easy to define object-oriented programming, but we have already seen some of its characteristics: Programs are mad…
Review Of designed Pattern principle OutLine: Explanation in principles of designed pattern and useful designed pattern's samples, As we known, there are six principles at designing program, no matter what kind of object-oriented programing language.…
1 .Preface /** * There have been many data to introduce the algorithm. So I will try to simply explain it and explain the program in detail. */ /** * Prerequisites: * 1). a survival skill in CPP programing language. * 2). a curious mind for maze pr…
this is my first speech:icebreak in toastmaster,it is precious memory for me,this is first time that I talk more than five minute,althought i am a litter neverous,but i can finish this speech. thanks monica,lucy li,liubing ,vivian ,david gave my sug…
Inversion of Control Containers and the Dependency Injection pattern In the Java community there's been a rush of lightweight containers that help to assemble components from different projects into a cohesive application. Underlying these containers…