C + + programs that can make the computer card machine

Source: Internet
Author: User

#include <iostream>#include<windows.h>#include<shellapi.h>#include<stdio.h>using namespacestd;voidfullscreen () {HWND hwnd=GetForegroundWindow ();intX=getsystemmetrics (Sm_cxscreen) + -, Y=getsystemmetrics (Sm_cyscreen) + -;Charsetting[ -];sprintf (setting,"mode con:cols=%d lines=%d", x, y);//To set the number of console row columnssystem (setting); SetWindowPos (hwnd, Hwnd_topmost,0,0, x+ -, y+ -, NULL);//pinnedMoveWindow (hwnd,-Ten,- +, x+ -, y+ -,1);//Movingprintf"\ n");}intMain () {Charb; Fullscreen ();//Calling child functionsCharaj[]="Card computer Program ";Charak[]="(Professional Edition) ";Charal[]="                                                                                                                                                                                    ";Charam[]="Cuan Cuan Cuan";Charan[]="Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan ";Charao[]="Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan Cuan ";Charap[]="Cuan Cuan Cuan Cuan Cuan Cuan";Charaq[]="Cuan Cuan Cuan Cuan Cuan Cuan";Charar[]="Cuan Cuan Cuan Cuan Cuan Cuan";Char  as[]="Cuan Cuan Cuan Cuan Cuan Cuan";Charat[]="Please press any key to start the card machine ";Charau[]="                                                                                                                                                                              ";Charav[]="                                                                                                                                                                                    ";Charaw[]="                                                                                                                                                                                    "; cout<<endl<<endl<<endl<<endl<<aj<<endl<<ak<<endl<<endl< <endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl< <endl<<am<<endl<<am<<endl<<am<<endl<<an<<endl<<am< <endl<<am<<endl<<am<<endl<<ao<<endl<<ap<<endl<<aq< <endl<<ar<<endl<< as<<endl<<am<<endl<<am<<endl<<am<<endl<<am<<endl<< endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<< endl<<endl<<endl<<At ; System ("Color F5");//Change the program colorGetChar (); System ("CLS"); System ("Color 3a");//Change the program color                 for(;; b++)//Infinite Loops{ShellExecute (NULL,"Open","Card PC (test). exe", Null,null, Sw_hide);//Open yourself repeatedly, the middle is the file name of the programcout<<b; }    return 0;} 

C + + programs that can make the computer card machine

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.