ผู้ชายสีชาเย็น (white modern version) 

Facebook Twitter Gplus RSS
 
 
Home » Archive for category "Progamming C++"

Archive for the ‘Progamming C++’ Category:


Arrows running with cpp

#include <stdio.h> #include <conio.h> #include <dos.h> void main(void) { clrscr(); char x=0; int speed=0; do { for(int i = 0; i<80;i++) { delay(10-speed); clrscr(); printf(“%d\n”,speed); gotoxy(i,1); printf(“>”); } for(int b=80;b>0;b-=1) { delay(10-speed); clrscr(); printf(“%d\n”,speed); gotoxy(b,1); printf(“<”); } clrscr(); x=getch(); /* if (speed<10){ if (x==43) { speed +=1; } else if (x==45) { speed -=1; }

(More)…

Triangle Calculate

#include <stdio.h> #include <conio.h> void main(void) { clrscr(); int h; int b; cprintf(“Enter High = “); scanf(“%d”,&h); cprintf(“Enter Base = “); scanf(“%d”,&b); int x = h*b*0.5; cprintf(“Area = %d”,x); getch(); }

Flag with turbo c++

ธงฝรั่งเศษทำยากชิบ #include <iostream.h> #include <string.h> #include <stdio.h> #include <conio.h> int main () { clrscr(); for (int c=0 ; c<50 ; c++) { for (int i=0 ; i<25 ; i++) { textcolor(BLUE); cprintf(“X”); } for (int w=0 ; w<30 ; w++) { textcolor(WHITE); cprintf(“X”); } for (int r=0 ; r<25 ; r++) { textcolor(RED); cprintf(“X”); }

(More)…

 
© @mamazaki