原创 Win32 貪喫蛇遊戲

#include<windows.h> #include <time.h> #include "resource.h" #define WIN_WIDTH 830 // 窗口寬度 #define WIN_DEPTH

原创 windows 遠程登錄Linux

一、登錄前提: 1.window能夠ping 通 Linux 2.關閉Linux防火牆 二、登錄Linux 1.用Putty-ssh軟件登錄。 啓動putty軟件登錄 2.用VNC登錄 (1)從光盤中Packeges目錄中,安裝vnc服

原创 C++ 二叉樹模板

#include "stdafx.h" #include <iostream> using namespace std; /* 結構體結點 */ template <typename T> struct TNode{ TNode<T

原创 C++ 棧-漢諾塔

#include "stdafx.h" #include <iostream> #include <string> using namespace std; template <typename T> struct ChainNode

原创 Dell Win10 win菜單打不開修復方法

Win+R,在窗口裏輸入或複製粘貼以下命令,注意只有一行: Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLo

原创 linux 編寫自己的shell

// 已實現的功能: // 1.普通的shell命令 例如:ls -la; vim smsh3.c // 2.變量存儲與替換   例如:set 顯示所有的變量 //                         a=x;  x=who

原创 對話框的背景顏色如何漸變

轉載自C++技術網:http://www.cjjjs.cn/paper/lkkj/6242015234110480.aspx 添加名爲SetDlgBKColor()的成員函數, 定義如下: void SetDlgBKColor()

原创 查找最大回文子串算法

/* 設有字符串:"abcdefghij",長度爲 len = 10 a b c d e f g h i j 0 1 2 3 4 5 6 7 8 9 (1)查找是否存在長度爲 maxlen = 10 的迴文子串

原创 語法分析程序

工程代碼http://download.csdn.net/detail/fulianzhou/9541833 config.h /***** *********/ #ifndef _CONFIG_H_ #define _CONFIG_

原创 Linux 線程 動畫

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <curses.h> #include <pthread.h> #include <unistd.h>

原创 win32 組合框操作 - 窗口消息

#include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "ctype.h" #define ID_COMBO_SIMPLE 1001 // 簡

原创 C++ 網絡編程處理數據斷續

服務器和客戶端發送的數據用中括號括起來[] while(1) { iRecv = recv(sockConn,recvstr,sizeof(recvstr),0); if(iRecv <= 0) { LoadS

原创 SQL 簡單查詢

1.count 2.top 3.having 4.case use master go if db_id('SchoolDB') is not null drop database SchoolDB create database

原创 Win32 貪吃蛇遊戲

#include<windows.h> #include <time.h> #include "resource.h" #define WIN_WIDTH 830 // 窗口寬度 #define WIN_DEPTH

原创 單鏈表C++ 模板

#include "stdafx.h" #include <iostream> #include <string> using namespace std; /************************* 異常類 *****