Time of Update: 2018-12-04
VB6.0+MySQL4.1資料庫編程By:吳垠Date:2005-04-16Email:lazy_fox#msn.comLink: http://blog.csdn.net/wooin/archive/2006/11/24/1412159.aspx著作權資訊:該文章著作權由Wu Yin所有。可在非商業目的下任意傳播和複製。對於商業目的下對本文的任何行為需經作者同意。連絡方式:lazy_fox#msn.com 1.安裝MySQL2.安裝、設定MySQL Control
Time of Update: 2018-12-04
如何使用WinDBG跟蹤調試ASL/ACPI? 去年在研究ACPI的時候我有用windbg來分析一下ACPI methods,當時配置windbg的時候參考了幾位前輩的文章,今天也轉其中一篇過來以做備份。原地址是:http://blog.csdn.net/EFIBIOS/archive/2007/03/12/1526763.aspx 在現代電腦中,硬體和韌體(BIOS)都必須符合ACPI規範,以便作業系統可以控制所有模組的自動設定和電源管理。 使用WinDbg調試ACPI代碼通常需要兩台電腦,
Time of Update: 2018-12-04
個人無聊時瞎編的,不是什麼程式實踐。#include<stdio.h>void pop(int *array,int num){ int i,j,temp,t; for(i=0;i<num;i++) for(j=0;j<num-i-1;j++) { if(*(array+j)>*(array+j+1))
Time of Update: 2018-12-04
其實和冒怕排序差不多,但選擇排序更接近人的思維。#include<stdio.h>void select(int a[],int num){ int i,j; int temp,mark; for(i=0;i<num-1;i++) { temp=a[i]; mark=i; for(j=i+1;j<num;j++)
Time of Update: 2018-12-04
練習的程式,有錯指出。#include<stdio.h>#include<malloc.h>typedef struct node{char a;struct node *left;struct node *right;}root;root *create(){root* p;root* s[100];int i,j;char c;printf("i and c=");scanf("%d %c",&i,&c);while(i!=0&&c!=
Time of Update: 2018-12-04
【我所認知的BIOS】->反組譯碼BIOS之‘開始’ LightSeed3/11/2010上海
Time of Update: 2018-12-04
給定n種物品和一背包。物品i的重量是wi>0,其價值為vi>0,背包的容量為c。問應如何選擇裝入背包中的物品,使得裝入背包中物品的總價值最大? (本代碼沒有剪枝函數)#include<iostream>#include<fstream>using namespace std;class packtrack{private:int n;int *nv;int *nw;int c;int currentw;int currentv;int best;public:
Time of Update: 2018-12-04
for ( argp = argv+1 ; *argp ; argp++ ) { if ( **argp == '-' ) { opt = *argp + 1; if ( !*opt )usage(); while ( *opt ) {switch ( *opt ) {case 's':/* Use "safe, slow and stupid" code */ stupid = 1; break;case 'r':/* RAID mode */
Time of Update: 2018-12-04
#include <ddraw.h>#pragma comment(lib, "guids.lib")void CGetDisplayMemDlg::OnButton1() {// TODO: Add your control notification handler code hereLPDIRECTDRAW2 lpdd;HRESULT ddrval;CoInitialize(NULL);ddrval =
Time of Update: 2018-12-04
[轉貼]一個老程式員的心裡話說到人的心坎諸位,咱當電子工程師也是十餘年了,不算有出息,環顧四周,也沒有看見幾個有出息的!回顧工程師生涯,感慨萬千,願意講幾句掏心窩子的話,也算給咱們師弟師妹們提個醒,希望他們比咱們強! [1] 好好規劃自己的路,不要跟著感覺走!根據個人的理想決策安排,絕大部分人並不指望成為什麼院士或教授,而是希望活得滋潤一些,爽一些。那麼,就需要謹慎安
Time of Update: 2018-12-04
#include <stdlib.h>#include <string.h>#include <stdio.h>#include <fcntl.h>#include <unistd.h>static int getResultFromSystemCall(const char* pCmd, char* pResult, int size){ int fd[2]; if(pipe(fd)) {
Time of Update: 2018-12-04
int biosdisk(int cmd, int drive, int head, int track, int sector, int nsects, void *buffer);本函數用來對磁碟機作一定的操作,cmd為功能號, drive為磁碟機代號(0=A,1=B,0x80=C,0x81=D,0x82=E等).head為磁頭 track為磁軌 sector為扇區 nsects為要讀或寫的扇區數 cmd可為以下值: 0 重設軟磁碟系統.這強迫磁碟機控制器來執行硬複位.忽略所有其它參數.
Time of Update: 2018-12-04
解釋:高精度延時, 是 CPU 測速的基礎 Windows 內部有一個精度非常高的定時器, 精度在微秒級, 但不同的系統這個定時器的頻率不同, 這個頻率與硬體和作業系統都可能有關。 利用 API 函數 QueryPerformanceFrequency 可以得到這個定時器的頻率。 利用 API 函數 QueryPerformanceCounter 可以得到定時器的當前值。 根據要延時的時間和定時器的頻率, 可以算出要延時的時間定時器經過的周期數。 在迴圈裡用
Time of Update: 2018-12-04
void SendKey(CString str){ DWORD sc,shift; unsigned char vkey; char a; for (int i=0;i<str.GetLength();i++) { a=str.GetAt(i); sc=OemKeyScan(a); shift=sc>>16; vkey=MapVirtualKey(sc&0xffff,
Time of Update: 2018-12-04
1.建立一個update目錄,該目錄包含自己想要升級或替換的內容例如:update/update/systemupdate/system/appupdate/system/app/doodle_jump.apkupdate/META-INFupdate/META-INF/comupdate/META-INF/com/googleupdate/META-INF/com/google/androidupdate/META-INF/com/google/android/update-script該目錄
Time of Update: 2018-12-04
T-ware Inc. C 語言開發包/* TSDK.H Definitions for Common functions and string functions. Copyright (c) Tody 2010 All Rights Reserved */#ifndef __TSDK_H__#define __TSDK_H__#include <string.h>#include <time.h>#include
Time of Update: 2018-12-04
【我所認知的BIOS】-->第一條指令By LightSeed 2009-10-26 其實早就想寫這樣一篇文章了,今天才著手寫了下。說來也慚愧關於CPU的第一條指令的問題,在一開始study的時候我自己並沒有求甚解,所以當時理解的也比較膚淺,今天我們來詳細探討一下關於reset(從沒電到上電)後CPU執行第一條指令的一些東西。(說明一下:這篇文章是討論的IA32架構上的處理器。)1、準備知識如果您還對Flat mode的原理還不太瞭解的話,那麼我想你可以再回頭參考一下關於Flat
Time of Update: 2018-12-04
目前update-script指令碼格式是edify,其與amend有何區別,暫不討論,我們只分析其中主要的文法,以及指令碼的流程式控制制。一、update-script指令碼文法簡介: 我們順著所產生的指令碼來看其中主要涉及的文法。 1.assert(condition):如果condition參數的計算結果為False,則停止指令碼執行,否則繼續執行指令碼。
Time of Update: 2018-12-04
檔案的CHECKSUM工具/** Function: Get File checksum value for win32 Author: Tody Kwok Revsion: 1.0.0.1 (c) Tody 2010*/#include <stdio.h>#include <stdlib.h>#include <conio2.h>#define progname "wsum.exe"#define header
Time of Update: 2018-12-04
Client://用戶端#include <WINSOCK2.H>#include <stdio.h>#include <stdlib.h>#include <WS2tcpip.h>//#include "tpipv6.h"#include <iostream>#pragma comment(lib,"ws2_32.lib")using namespace std;#define HELLO_PORT 7905 //定義連接埠