Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~405 People Reached
Favorite Forums
Favorite Tags
c++ x 3
Member Avatar for rron17

#include <windows.h> void gotoxy(int x,int y); int main() { int i; int y=6; int x=9; for(i=1;i!=0;i++) { system("color 1"); sleep(500); gotoxy(x,y); printf("%d",i); } getch(); } void gotoxy(int x,int y) { COORD coord = {x,y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } How to change the color when the number changes ? And the color must …

0
96
Member Avatar for rron17

#include <windows.h> int main() { int i; int y=6; int x=9; gotoxy(x,y); //gotoxy(x,y) must be the coordinate that the number lies in. for(i=0;i>1;i++){ printf("%d",i); } getch(); } int gotoxy(int x,int y) {COORD coord = {x,y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord); } //how to make this program that the output is a number that counts …

Member Avatar for vmanes
0
154
Member Avatar for rron17

} else{ printf(" \b"); surname[cntr]='\0'; cntr--; goto cc; } } else{ surname[cntr]=nput; cntr++; if(cntr>14){ goto aa; } else goto cc; } } aa: gotoxy(40,14); printf("%s %s",urname,surname); fullname[cntr]='\0'; { char choice; ron: SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),11); gotoxy(35,15); printf(" Do you want to enter "); gotoxy(35,16); printf(" another entry? "); gotoxy(35,17); printf(" "); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),116); gotoxy(40,17); …

Member Avatar for ddanbe
0
155