Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<conio.h>
- #include<iostream.h>
- #include <windows.h>
- void chgcolor(unsigned short color) {
- HANDLE sCon = GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(sCon,color);
- }
- void main()
- {
- clrscr();
- char name[12];
- char con;
- char x[]="Happy New Year...!!!";
- int a=50,i,b;
- chgcolor(10);
- gotoxy(32,11); cout <<"Input your name : ";cin>>name;
- clrscr();
- chgcolor(10);
- gotoxy(32,11); cout <<"Welcome " <<name;endl;
- gotoxy(25,12); cout <<"You wanna continue ? [Y/N} ";cin>>con;
- clrscr();
- if ( con == 'Y' || con == 'y') {
- for ( i=1;i<=100;i++) {
- for (int x=1;x<a*100;x++) {
- for (int y=1;y<a*100;y++) {
- }
- }
- gotoxy(32,11);cout<<"Loading " <<i<< "%";
- while (i == 99 )
- goto next;
- }
- } else {
- cout<<"oke thx u";
- }
- next:
- for(i=0; i<50; i++){
- clrscr();
- for(a=0; a<999999;a++) {
- for(b=0; b<999; b++) {
- }
- } gotoxy(1,1);cout<<"********************************************************************************";
- gotoxy(32,11);cout<<x;
- for(a=0; a<999999;a++) {
- for(b=0; b<999; b++) {
- }
- }
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement