Android provides a default Bluetooth stack,
BlueDroid, that is divided into two layers: The Bluetooth Embedded System (BTE),
which implements the core...
分类:
其他好文 时间:
2014-05-09 10:18:47
阅读次数:
518
PTHREAD_MUTEX_INITIALIZER 与 expected expression
before ‘{’ token在进行 Posix thread 编程时,出现以下编译错误:error: expected expression before
‘{’ token出现错误的语句为 prod...
分类:
其他好文 时间:
2014-05-09 10:03:15
阅读次数:
306
没考虑到的情况有:input: [, expected: false; 语法上也犯了错误:
我定义的stack的泛型为char,泛型不能为primitive datatype,Primitive types such ascharcannot be
used as type parameters i...
分类:
其他好文 时间:
2014-05-09 09:19:01
阅读次数:
252
例子1引入线程概念通过得到当前线程方式循环主线程做某事例子2演示了在主线程之外开启多个线程的基本方式 ( new一个extends Thread )例子3 (
task extends Thread )演示了 把线程类做为一个窗口组件的一个属性当按钮按下时 会new一个task (start在tas...
分类:
编程语言 时间:
2014-05-09 09:01:38
阅读次数:
320
package com.test.thread;public class TestThread {
public static void main(String[] args) { TestThread testThread = new
TestThread(); ...
分类:
编程语言 时间:
2014-05-09 08:20:06
阅读次数:
334
#include#include#include #include
//使用库函数exit()using namespace std;templateclass Stack{ private: Type*data;
//栈元素数组 int maxSize; /...
分类:
其他好文 时间:
2014-05-09 07:27:40
阅读次数:
294
实验环境:intel x386
一。要求:将3000H单元开始置数为00H-0FH
SSTACK SEGMENT STACK
DW 32 DUP(?)
SSTACK ENDS
CODE SEGMENT
ASSUME CS:CODE, SS:SSTACK
START: PUSH DS
XOR AX, AX
MOV DS, AX
MOV SI, 3000H
MOV CX...
分类:
编程语言 时间:
2014-05-09 06:33:53
阅读次数:
372
题目如下:
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the pile.
What a wonderful v...
分类:
其他好文 时间:
2014-05-09 06:20:44
阅读次数:
396
pthread_create()
创建线程,pthread_join()让线程一直运行下去。链接时要加上-lpthread选项。pthread_create中, 第三个参数为线程函数,定义如下:
void * heartbeat_thread() { ... }下面是main.c :#i...
分类:
编程语言 时间:
2014-05-08 23:55:54
阅读次数:
486
适配器(Adaptor)是提供接口映射的模板类。适配器基于其他类来实现新的功能,成员函数可以被添加、隐藏,也可合并以得到新的功能。STL提供了三个容器适配器:queue、priority_queue、stack。这些适配器都是包装了vector、list、deque中某个顺序容器的包装器。注意:适配...
分类:
其他好文 时间:
2014-05-08 23:13:29
阅读次数:
298