How to code like a hacker

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~


Staring CMD and Go!

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 /? where command means the name of your command you want to know more (e.g. cl /?, cd /?, etc.)


HaHa

Is that intereting? Do you want to have a try? if no~~ hehehehehe~~~ If Yes, Go Go Go Go for more!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值