- 博客(0)
- 资源 (5)
- 收藏
- 关注
判断数组中数字出现的频率,并依次输出前三的数及频率
中地的机试题,当时指针操作出了问题,让我很蛋疼。
回来改改,上传吧,挣点分数出来。
麻烦给点意见
其实可以用数组操作,不过这个更适合大批量数据
2010-11-10
Bootloader详解(源码+实验)研究BOOT必读
1、了解BootLoader 的基本概念和框架结构
2、了解BootLoader 引导操作系统的过程
3、掌握bootloader 程序的编译方法
4、掌握BootLoader 程序的使用方法
(1)、Boot Loader 的阶段1 通常主要包括以下步骤:
硬件设备初始化;
拷贝Boot Loader 的程序到RAM 空间中;
设置好堆栈;
跳转到阶段2 的C 入口点。
(2)、Boot Loader 的阶段2 通常主要包括以下步骤:
初始化本阶段要使用到的硬件设备;
系统内存映射(memory map);
将kernel 映像和根文件系统映像从Flash 读到RAM 空间中;
为内核设置启动参数;
调用内核
…………………………………………………………
2010-10-19
WINDOWS/C语言/管道通信实现机制
Windows管道通信范例
fSuccess = ReadFile(hPipe,ReadData,BUFSIZE,&cbBytesRead,NULL); if (! fSuccess || cbBytesRead == 0) break; else { cout << "Read data : "<<ReadData<<endl; } //写数据 fSuccess = WriteFile( hPipe, // handle to pipe s.c_str(), // buffer to write from BUFSIZE, // number of bytes to write &cbWritten, // number of bytes written NULL); // not overlapped I/O
if (! fSuccess || cbReplyBytes != cbWritten) break;
-------------------------------------
//创建线程 hThread = CreateThread( NULL, // no security attribute 0, // default stack size (LPTHREAD_START_ROUTINE) InstanceThread, (LPVOID) hPipe, // thread parameter 0, // not suspended &dwThreadId); // returns thread ID if(hThread == NULL) { cout << "create thread failure!\n"; exit(0); } else CloseHandle(hThread);
2010-10-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人