使用的版本: .NET Framework4
使用的工具: visual stdio 2010
1. 希望compiled 之後出現"按任意鍵繼續" : [Ctrl] + [F5] compiled
2. 若使用visual stdio C# 2010: 可以把"Basic mode"改成"export mode"
3. 建立{空專案},在{Windows}標籤底下
4. C# 別於 C/C++,C/C++在code首先#include library的地方,C#則在方案總管(solution)中的reffence中
加入refference才是把標頭函式庫加進來,在C# code的一開始使用using某個函式庫,則是去連結函式庫的意思
C:
#include <stdio.h>;
C++:
#include <iofstream>;
C#:
using System; // refference加入System
5. C#要使用指標,在code的外面加上unsafe{},在專案的{屬性},{建置}將unsafe打勾
6. {Show All Files}在方案總管的第二個小圖示,在方案總管下的物件,按右鍵的{移出專案},檔案不會消失,但檔案不會
參與compiled,在{Show All Files}可以看到所有在專案的檔案。
7. 可以打 "Console.ReadLine()"跟以前C的getch()暫停畫面的功能一樣
P.S.
文章標籤
全站熱搜
