Presentation is loading. Please wait.

Presentation is loading. Please wait.

#include <stdio.h> #include "console.c" main(){ int x=20, y=10;

Similar presentations


Presentation on theme: "#include <stdio.h> #include "console.c" main(){ int x=20, y=10;"— Presentation transcript:

1 #include <stdio.h> #include "console.c" main(){ int x=20, y=10;
y #include <stdio.h> #include "console.c" main(){ int x=20, y=10; } <標準> "自訂" clrscr(); // 清除螢幕 Clear Screen gotoxy (x,y); // 移動游標 printf ("x=20, y=10"); getxy (&x, &y); // 目前游標位置 printf ("x=%i, y=%i\n", x, y); x = whereX(); y = whereY(); printf ("x=%i, y=%i\n", x, y); console.c

2 C# Programming setrgb(0); // 白字黑底 setrgb(1); // 紅字黑底
setrgb(9); printf("C"); setrgb(12); printf("# "); setrgb(14); printf("Programming\n"); setrgb(7); setrgb(8); // 黑字白底 setrgb(9); // 紅字白底 setrgb(10); // 綠字白底 setrgb(11); // 黃字白底 setrgb(12); // 藍字白底 setrgb(15); // 白字白底 C# Programming console.c

3 SetScrnSize(80,20); // 設定視窗大小(闊,高)
togglefullscreen(); //全螢幕 gotoxy(20,5); _sleep(1000); clreol(); // clear to end of line gets( ); console.c

4 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),7);
printf("白字黑底\n"); console.c


Download ppt "#include <stdio.h> #include "console.c" main(){ int x=20, y=10;"

Similar presentations


Ads by Google