2019年2月9日 星期六

vs 2017 建立 C 語言 hello world

一、檔案->新增->專案



二、點選:空白專案(不要選主控台應用程式)->按確定


三、來源檔案->加入->新增項目


四、選C++檔->副檔名由cpp 改為c->新增


五、輸入 hello 內容->ctrl F5->ok




//  #include <stdio.h>

int main()
{
printf("Hello world\n");
system("pause");
return 0;
}

沒有留言: