forked from misakamm/xege
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from yixy-only/docs_tutorial_source_utf8
Docs: 将 tutorial 中的源文件转为 UTF-8 编码
- Loading branch information
Showing
28 changed files
with
300 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
//第一个图形窗口程序 | ||
//第一个图形窗口程序 | ||
#include <graphics.h> | ||
|
||
int main() | ||
{ | ||
//初始化为640*480大小 | ||
//初始化为640*480大小 | ||
initgraph(640, 480); | ||
|
||
//等待用户按键 | ||
//等待用户按键 | ||
getch(); | ||
|
||
//关闭图形界面 | ||
//关闭图形界面 | ||
closegraph(); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
//屏幕背景色 | ||
//屏幕背景色 | ||
#include <graphics.h> | ||
|
||
int main() | ||
{ | ||
initgraph(640, 480); | ||
|
||
//第一次设置背景色 | ||
setbkcolor(EGERGB(0x0, 0x40, 0x0)); //浅绿色 | ||
//第一次设置背景色 | ||
setbkcolor(EGERGB(0x0, 0x40, 0x0)); //浅绿色 | ||
|
||
setcolor(EGERGB(0xFF, 0xFF, 0x0)); | ||
setfillcolor(EGERGB(0xFF, 0x0, 0x80)); | ||
|
||
//画带填充的扇形 | ||
//画带填充的扇形 | ||
sector(200, 200, 45, 135, 150, 100); | ||
|
||
getch(); | ||
|
||
//按下一任意键后,再次改变背景色 | ||
setbkcolor(EGERGB(0x0, 0x0, 0x40)); //浅蓝色 | ||
//按下一任意键后,再次改变背景色 | ||
setbkcolor(EGERGB(0x0, 0x0, 0x40)); //浅蓝色 | ||
|
||
getch(); | ||
|
||
closegraph(); | ||
return 0; | ||
} | ||
|
||
//补充:另有setbkcolor_f函数,它设置的是cleardevice函数所使用的颜色, | ||
//所以要等到cleardevice调用时,它的效果才会展现。 | ||
//当然,setbkcolor也会设置,但同时也会立即把屏幕上的原背景色改变 | ||
//补充:另有setbkcolor_f函数,它设置的是cleardevice函数所使用的颜色, | ||
//所以要等到cleardevice调用时,它的效果才会展现。 | ||
//当然,setbkcolor也会设置,但同时也会立即把屏幕上的原背景色改变 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.