1 // 变量在不同区域的默认初始值.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 6 //定义全局变量 7 int* p; 8 int a; 9 char c...
分类:
其他好文 时间:
2014-10-22 14:20:09
阅读次数:
157
1、背景查看flower的源码,首先看到flower的主程序如下:#!/usr/local/sinasrv2/bin/python2.7# EASY-INSTALL-ENTRY-SCRIPT: 'flower==0.7.3','console_scripts','flower'__requires_...
分类:
编程语言 时间:
2014-10-22 14:13:21
阅读次数:
284
Linux下 DIR结构体定义为 1 struct __dirstream 2 { 3 void *__fd; 4 char *__data; 5 int __entry_data; 6 char *__ptr; 7 int __entry_ptr; 8...
分类:
系统相关 时间:
2014-10-22 01:01:31
阅读次数:
159
Description
Jenny is a warehouse keeper. He writes down the entry records everyday. The record is shown on a screen, as follow:
There are only two buttons on the screen. Pressing the button i...
分类:
其他好文 时间:
2014-10-20 15:06:03
阅读次数:
259
http://www.bttr-software.de/forum/mix_entry.php?id=11767假设我们从串口中读到一串数据,当我们想要处理这串数据的时候通常是这样做的:1 将这些数据拷贝到某段内存rbuf[]中;2 将该段内存的首地址rbuf赋给一个我们已经定义好的结构体指针*wp...
分类:
其他好文 时间:
2014-10-20 14:43:55
阅读次数:
226
记录了HashMap也来看看Hashtable吧,最近打算换份实习,所以想看看书回顾一下,不然就快记不得了.....囧啊囧啊,记性太差怎么破???Hashtable里面的一些变量:Entry[] table :HashTable采用"拉链法"实现哈希表,每一个Entry代表了一个键值对(key-va...
分类:
编程语言 时间:
2014-10-20 11:30:20
阅读次数:
279
问题
如何遍历map对象(如HashMap)
精华回答
jdk1.5以上版本
for (Entry entry : map.entrySet()){
System.out.println(entry.getKey() + "/" + entry.getValue());}
需要 import java.util.Map.Entry;
jdk1...
分类:
其他好文 时间:
2014-10-20 10:01:30
阅读次数:
213
// 2.cpp : Defines the entry point for the console application.// 整数反序输出#include "stdafx.h"#include "iostream.h" void main () { int a,b,c; ...
分类:
编程语言 时间:
2014-10-19 14:06:07
阅读次数:
146
Problem Description
Given an N * M matrix with each entry equal to 0 or 1. We can find some rectangles in the matrix whose entries are all 1, and we define the maximum area of such rectangle as this ...
分类:
移动开发 时间:
2014-10-17 23:26:50
阅读次数:
264
sudo gedit /usr/share/applications/eclipse.desktop [Desktop Entry]Name=EclipseComment=c project manage softwareExec=/home/wy/Downloads/eclipse/eclipse...
分类:
系统相关 时间:
2014-10-14 22:18:29
阅读次数:
198