Time of Update: 2018-12-03
DOS/Windows和Linux/Unix的檔案換行斷行符號格式不同,基於 DOS/Windows 的文字檔在每一行末尾有一個 CR(斷行符號)和 LF(換行),而 UNIX
Time of Update: 2018-12-03
今天在學慣用戶切換的時候,用到到這些變數,就深入學習了一下,下面是在網上GOOGLE到的資料,保留下來,供自己再次學習! set,env和export這三個命令都可以用來顯示shell變數,區別 [root@localhost root]# aaa=bbb [root@localhost root]# echo $aaa bbb [root@localhost root]# set |grep aaa aaa=bbb [root@localhost root]# env |grep aaa
Time of Update: 2018-12-03
#include<iostream>#include<math.h>using namespace std;constdoublePI = 3.141593;classCircle;//classCalculate//{//public://doubledistance(Circle &p1, Circle &p2);//};classCircle{private:doublex, y, r;public://建構函式Circle(double xx =
Time of Update: 2018-12-03
#!/bin/sh02 03until [ -z $1 ]; do04 dos2unix $1 2>/dev/null05 iconv -f GBK -t UTF-8 $1 -o /tmp/win2unix.tmp 2>/dev/null06 07 if [ $? -eq 0 ]; then08 mv /tmp/win2unix.tmp $109 echo "win2linux:
Time of Update: 2018-12-03
<程式員>11期文章: http://blog.csdn.net/chengyun_chu/article/details/1942172申明。文章僅代表個人觀點,與所在公司無任何聯絡。 1.
Time of Update: 2018-12-03
轉載自 husubmit按照TC2.0的協助系統所以說的,在TC2.0下是可以用彙編的,方法是使用asm關鍵字:其格式是:asm opcode <operands> <;newline>,如同別的注釋一樣,<>之間的表示可選的;例如:main(){char *c="hello,world/n/r$";asm mov ah,9;asm mov dx,c;asm int 33;printf("You sucessed!/n");}或者是:main(){char *
Time of Update: 2018-12-03
//1.靜態成員--->靜態成員變數//2.靜態成員--->靜態成員函數#include<iostream>#include<string>using namespace std;//1.靜態成員變數--->靜態成員變數////classWorker//{//private://stringname;//intworktime;//public://staticinttotal;//用於統計總的工作時間//voidworkTime(int n);//};
Time of Update: 2018-12-03
spawn 系列函數L 系列:int spawnl (int mode, char *path, char *arg0, char *arg1, ... , NULL);int spawnlp (int mode, char *path, char *arg0, char *arg1, ..., NULL);int spawnle (int mode, char *path, char *arg0, char *arg1, ..., NULL, char
Time of Update: 2018-12-03
要實現線程的遠程注入必須使用Windows提供的CreateRemoteThread函數來建立一個遠程線程該函數的原型如下:HANDLE CreateRemoteThread( HANDLE hProcess, LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter,
Time of Update: 2018-12-03
1.http://www.mcublog.com/blog/user1/5970/archives/2006/16416.html任何不會修改資料成員的函數都應該聲明為const類型.如果在編寫const成員函數時,不慎修改了資料成員,或者調用了其它非const成員函數,編譯器將指出錯誤,這無疑會提高程式的健壯性以下程式中,類stack的成員函數GetCount僅用於計數,從邏輯上講GetCount應當為const函數.編譯器將指出GetCount函數中的錯誤 view plaincopy
Time of Update: 2018-12-03
exec... 系列函數L 系列:int execl ( char *path, char *arg0, char *arg1, ... , NULL);int execlp ( char *path, char *arg0, char *arg1, ..., NULL);int execle ( char *path, char *arg0, char *arg1, ..., NULL, char **envp);int execlpe (
Time of Update: 2018-12-03
一.函數模板1.顯示執行個體化(explicit instantiation)和顯示具體化(explicit specialization)的區別:(1) 形式上:顯示執行個體化: template void Swap<int> (int ,int);顯示具體化: template <> void Swap<int> (int,int); 或 template<> void Swap (int,int)
Time of Update: 2018-12-03
宿主進程 exe.exe#include <stdio.h>#include <time.h> #include <windows.h>int foo (void){ printf("foo\n"); // MessageBox(NULL, "foo", "Notice", MB_OK);#if 0 HINSTANCE hUser32 = LoadLibrary("User32.dll"); typedef int
Time of Update: 2018-12-03
perror 列印系統的錯誤訊息void perror(const char *s);原型在 stdio.h 說明: perror列印錯誤訊息到 stderr流(通過控制台), 表示最後一個庫程式的系統錯誤資訊。 首先列印參數string,接著是冒號,然後是對應於當前errno值的資訊,最後換行。規定傳送的檔案名稱是字串參數。 通過全域變數 sys_errlist (定義在stdio.h中,extern char *_Cdecl
Time of Update: 2018-12-03
原型在 stdlib.h, process.h說明:system 函數從一個 正在執行的C 程式裡, 利用DOS 和COMMAND.COM 檔案來執行Dos命令,批次檔或者 字串command 所指定的程式。為了裝入和運行,該程式 必須在目前的目錄下或者在環境變數path所指的目錄之一中。環境變數COMSPEC 用於尋找 COMMAND.COM 檔案,所以COMMAND.COM不一定要在目前的目錄 中(若是將COMSPEC設定為其它可執行程式,效果如何
Time of Update: 2018-12-03
c標準庫提供的格式化輸出函數:int scanf(const char *format, ...);其它family 函數:int fscanf(FILE *stream, const char *format, ...);int sscanf(const char *str, const char *format, ...);scanf最令人興奮的地方就在於 format。這裡使用實際代碼總結下比較少用的2個格式化功能: %[ ] 和 %n1.從標準輸入中讀取帶有空格的字串
Time of Update: 2018-12-03
如果你使用的虛擬機器軟體是vmware,那麼vmware 提供了檔案夾共用這個功能,點擊功能表列的“虛擬機器”--選擇“設定”--再點擊“選項(options)”選項卡,選擇“shared
Time of Update: 2018-12-03
1. 概述:
Time of Update: 2018-12-03
自己在測試過程中,感覺效率不是很好,所以希望哪位大佬能提出寶貴的意見,在此深表感謝! 1、遍曆磁碟中PE檔案[cpp] view plaincopyprint?/************************************************************************/ /* 函數說明:遍曆感染指定磁碟機中所有exe檔案 /* 參 數:磁碟機名稱,如C: /* 返 回 值:遍曆的數目 /* By:Koma 2009.12.18 23:55 /**
Time of Update: 2018-12-03
#include<iostream>#include<string>using namespace std;void main(){structstudent{intid;intage;//charname[20];//此處用char *name;也可以//charaddr[30];//此處用char *addr;也可以//但是用string定義字串時,編譯報錯://non-aggregates cannot be initialized with