原创 Visual C++ 2010 我的使用方法

VC++ 6.0 DevC++的 ConsolePauser.exe 運行文件VisualBasicScript源代碼:run.vbs Dim file Dim args file = InputBox("File.","run.

原创 C++用類模板寫一個棧

C++用類模板寫一個棧 #include <bits/stdc++.h> using namespace std; template <class Tclass> class Tstack { public: void pu

原创 C++魔性字符刷屏

C++魔性字符刷屏 char.cpp #include <iostream> #include <cstdlib> #include <ctime> #include <windows.h> #include <cmath> us

原创 C++MessageBoxA和MessageBoxW

W是wchar,寬字符。 MessageBox其實是宏。 字符串中出現了寬字符MessageBox就是MessageBoxW,否則是MessageBoxA。

原创 C++用<vector>模擬棧

C++用<vector>模擬棧 #include <cstdio> #include <vector> using namespace std; vector<int> vec; int main(int argc,char *a

原创 我崩潰的一刻

只看代碼猜猜 #include <bits/stdc++.h>//sucess using namespace std; long long n = 0; long long a = 0,b = 0,c = 0; const in

原创 一個VisualBasicScript代碼讓你搞懂MsgBox與InputBox!

先聲明一下: wscript.echo(“string”) 子程序,輸出字符串; MsgBox(“Text.”,style_of_button,“Caption”) 子程序,消息框; InputBox(“Text.”,“Capti

原创 C++輸入密碼回顯星號

C++輸入密碼回顯星號 password.cpp //本代碼不支持除退格外其它特殊按鍵!!! #include <iostream> #include <string> #include "password.h" using n

原创 C++ asm關鍵字

C++ asm關鍵字 大家可能聽說過C++有一個asm,這就是在C++內部嵌入 彙編(Assembler) 指令。 彙編是一門 獨立的 編程語言,在C++中,可以用asm來嵌入彙編 指令 ,但並不是說要把彙編框架都寫下來。 格式如

原创 用C++做一個特小型惡意程序

用C++做一個特小型惡意程序 #include <windows.h> #include <ctime> #include <cstdlib> using namespace std; int x = 0; int main(in

原创 各種語言寫“x = 2 + 3”。

x = 2 + 3 C++ using namespace std; int x = 0; int main(int argc,char *argv[]) { x = 2 + 3; } C int x = 0; int main(

原创 C++製作一個能判斷越界的數組

C++製作一個能判斷越界的數組 #include <bits/stdc++.h> using namespace std; template <class arr_t> class arr { public: explici

原创 C/C++ 給main()傳遞參數

C/C++ 給main()傳遞參數 我把C和C++的源代碼都會寫下,但各位要點贊! Dev-C++也可以寫C 先不急,這不是個方法,這是個知識點。 在我掌握這個知識點前,我與大家一樣,main這麼寫: C int main(voi

原创 C++自定義頭文件

C++頭文件格式: #include <[path]head[.h]> //系統頭文件,“head”可帶“.h”後綴(你看目前情況),按情況加路徑。 #include "[drive:][path]head.h" //自定義頭文件

原创 cmd界面每個目錄裏都有的兩個文件夾

cmd界面每個目錄裏都有的兩個文件夾📁 大家在打開cmd.exe時(C:\Windows\System32\cmd.exe),有沒有注意到每個目錄裏都有兩個一樣的文件夾?那就是兩點、一點。 因爲它是目錄,我習慣在目錄後加個“\”。