这几天搞Unix上的C程序,里面用到了很多字符数组和字符串指针,我记得在学完C语言后相当一段时间里,对指针这个东西还是模模糊糊,后来工作也没怎么 用到过C,虽然网上这类的文章也有很多,还是决定自己在这做个小总结,也算加深下自己的印象,写了下面的测试程序:#include int main(int ....
分类:
编程语言 时间:
2014-08-09 11:15:27
阅读次数:
239
------- android培训、java培训 期待与您交流! ----------1.Java的三大技术架构 JAVAEE(Java Platform Enterprise Edition): 开发企业环境下的应用程序,主要针对web程序开发; JAVASE(Java Platform St.....
分类:
编程语言 时间:
2014-08-09 11:12:07
阅读次数:
400
分析:抽取用户类,提取出用户的属性,方法 ????????? 用户类测试:判断登陆,注册等 User :?用户类??? package cn.my.login; import java.util.Scanner; /** ?*? 分析:用户的基本信息 ?*? 用户...
分类:
编程语言 时间:
2014-08-09 09:09:47
阅读次数:
403
Python 获取Facebook特定用户的粉丝数...
分类:
编程语言 时间:
2014-08-09 09:08:47
阅读次数:
486
Python 获取Facebook特定用户的feed和link...
分类:
编程语言 时间:
2014-08-09 09:08:27
阅读次数:
848
阅读英文的能力对于程序员来说,是很重要的。这几年也一直在学习英文,今天心血来潮,就在网上找了一篇简短的博文翻译一下。水平一般,能力有限,还请各位看官多多指点。译文:本文将会举例说明Java中继承和组合的概念。首先举一个继承的例子,然后展示一下如何用组合来改善继承的设计。最后概括一下如何在它们之间做出选择。1. 继承假设我们有一个Insect类。这个类包含两个方法:一个是move(),一个是atta...
分类:
编程语言 时间:
2014-08-09 09:08:17
阅读次数:
326
阅读英文的能力对于程序员来说,是很重要的。这几年也一直在学习英文,今天心血来潮,就在网上找了一篇简短的博文翻译一下。水平一般,能力有限,还请各位看官多多指点。 译文: 本文将会举例说明Java中继承和组合的概念。首先举一个继承的例子,然后展示一下如何用组合来改善继承的设计。最后概括一下如何在它...
分类:
编程语言 时间:
2014-08-09 09:05:47
阅读次数:
375
Class:def scope_test(): def do_local(): spam = "local spam" def do_nonlocal(): nonlocal spam spam = "nonlocal spam" def ...
分类:
编程语言 时间:
2014-08-09 09:02:47
阅读次数:
254
Here I share with you a demo for python map, reduce and filter functional programming that
owned by me(Xiaoqiang).
I assume there are two DB tables, that `file_logs` and `expanded_attrs` which re...
分类:
编程语言 时间:
2014-08-09 04:57:17
阅读次数:
525
import java.io.*;// ...FileReader in = null;try { in = new FileReader("Missing.file");}catch(FileNotFoundException e) { System.out.print(e.getMessage(...
分类:
编程语言 时间:
2014-08-09 04:53:47
阅读次数:
270
abstract class Shape{ public int x = 100, y = 100; public abstract int getArea();}class Rectangle extends Shape{ @Override public int getArea() { retu...
分类:
编程语言 时间:
2014-08-09 04:53:36
阅读次数:
258
enum Speed{ STOP, SLOW, NORMAL, FAST}Speed s = Speed.SLOW;switch(s) { case SLOW: break; }参考文献: Java Quick Syntax Reference by Mikael Olsson
分类:
编程语言 时间:
2014-08-09 04:53:16
阅读次数:
295
interface MyInterface{ void exposed();}class MyClass implements MyInterface{ public void exposed() {} public void hidden() {}}public static void main(...
分类:
编程语言 时间:
2014-08-09 04:53:06
阅读次数:
228
重载 class MyRectangle{ int x, y; public MyRectangle() { x = 10; y = 20; } public MyRectangle(int a) { x = a; y = a; } public MyRectangle(int a, int b) ...
分类:
编程语言 时间:
2014-08-09 04:52:57
阅读次数:
208
通过关键字Final我们可以使变量成为常量。这意味着无法再给这个变量赋值,不然编译器就会报错。 class MyClass{ final double E = 2.72; // run-time constant 运行常量 final static double C = 3e8; // compil...
分类:
编程语言 时间:
2014-08-09 04:52:36
阅读次数:
280
class B {}class A {}--------------------------class C {}interface I {}-----------------------class D {}class E {}参考文献: Java Quick Syntax Reference by ...
分类:
编程语言 时间:
2014-08-09 04:52:17
阅读次数:
253
// Superclass (parent class)class Fruit{ public String flavor;}// Subclass (child class)class Apple extends Fruit { public String variety;}//downcasti...
分类:
编程语言 时间:
2014-08-09 04:51:47
阅读次数:
294