使用 Visual Studio 2010 寫 C 語言程式。

Step one:新增 > 專案。

 

Step two:Visual C++ > Win32 主控台應用程式。

 

Step three:下一步。

 

Step four:完成。

   

Step five:將原始程式碼底下 *.cpp 副檔名改為 *.c

Example Source Code:引入 C 語言標頭檔。

// simple_test.cpp : 定義主控台應用程式的進入點。
//

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//int main(int argc, char *argv[])
//or
//int _tmain(int argc, _TCHAR* argv[])

int main()

{
      printf("TEST");
      return 0;
}

執行結果:

 

 

文章標籤
全站熱搜
創作者介紹
創作者 mitblog 的頭像
mitblog

香腸炒章魚

mitblog 發表在 痞客邦 留言(0) 人氣(16,137)