We are coding. Are we engineers? Are we programmers? Are we coder? No, I want to be a hacker!
Many good hacker are working under Linux or Mac, I only have a Windows and do not intend to move to another hacker’s OS. So, how to code like a hacker with only Windows?
My answer is to code with the most simple tools. In the past time, we are pampered by Microsoft and their application. What we need now is to change our comfortable developing environment! Give up Visual Studio ! do everything starting from launching the command line prompt! Do not use your mouse as much as possible!
Now, Follow me and I am going to show you steps~
By the way, even we want to work with the most simple tools, we still need them. Install compiler and notepad is required! If you have installed Visual Studo on your Windows, ignore this and go to launch your CMD!
Step 1 : Win + R
Step 2 : type %comspec% /k "X:\Your\VS\ROOT\VC\vcvarsall.bat" x86
in the edit box! Click Enter on your keyboard. A hacker’s tool is launching.
Step 3 : change your working path by X:
and cd X:\your\working\path
.
Step 4 : notepad hello.cpp
Step 5 : coding in the file you created just now. For instance:
#include <iostream>
int main(){
std::cout << "hello u, I am a hacker!" << std::endl;
return 0;
}
Step 6 : compile my source code, namely hello.cpp
with cl hello.cpp
or cl hello.cpp /EHsc
cl
is the name of c++
compiler provided by Visual Studio~
Step 7 : run your first hacker app! hello
, and you will get what you have output!
Note If you want to know more options about the command you are using, just type
command /?
wherecommand
means the name of your command you want to know more (e.g.cl /?
,cd /?
, etc.)
Is that intereting? Do you want to have a try? if no~~ hehehehehe~~~ If Yes, Go Go Go Go for more!
原文地址:http://blog.csdn.net/bendanban/article/details/45102487