Gerenciador De Aplicativos Em C++

Olá a todos resolvi postar um antigo trabalho de sala de aula, uma tarefa passada pelo o professor e antes que eu perca esse fonte, esse código vou compartilhar aqui pra todos que pode ser útil de uma forma ou de outra como estudar.

Desenvolvi em C++ no DevC++ e só vai funcionar seus comando no windows, ok?

Aqui vai o fonte a formatação fica péssima, mas selecione tudo e jogue em um bloco de notas que fica melhor de visualizar:

Baixar o código fonte:

#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <windows.h>

HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

typedef MCIERROR WINAPI(*CDROM)(const char*, char*, unsigned, HWND);//usado para definir os parametros necessarios.

CDROM Command;

using namespace std;

void gotoxy(int x, int y){
HANDLE hOut;
COORD Position;
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
Position.X = x;
Position.Y = y;
SetConsoleCursorPosition(hOut,Position);
}

int menu(){//Fuction menu
int op;
int temp;

system("color b");
system("mode con lines=70");//Altera as Linhas
system("mode con cols=103");//Altera as Colunas
gotoxy(1,1);//Coluna 1, linha 1
system("Date /t");
gotoxy(97,1);//Coluna 79, linha 1
system("Time /t");
puts(" \xC9\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xBB");
puts(" \xBA                                                                                                   \xBA");
puts(" \xBA                                                                                                   \xBA");
puts(" \xBA                               Gerenciador de Aplicativos 1.0                                      \xBA");
puts(" \xBA                                                                                                   \xBA");
puts(" \xBA                                                                                                   \xBA");
puts(" \xBA\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xBA");
puts(" \xBA                                                                                                   \xBA");
puts(" \xBA                                         Index de op\x87\xC6o                                            \xBA");
puts(" \xBA                                 \xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD                                      \xBA");
puts(" \xBA                                                                                                   \xBA");
puts(" \xBA                                      1- Data do sistema                                           \xBA");
puts(" \xBA                                      2- Horario do sistema                                        \xBA");
puts(" \xBA                                      3- Calculadora                                               \xBA");
puts(" \xBA                                      4- Paint do sistema                                          \xBA");
puts(" \xBA                                      5- Notepad do sistema                                        \xBA");
puts(" \xBA                                      6- World do sistema                                          \xBA");
puts(" \xBA                                      7- Excel do sistema                                          \xBA");
puts(" \xBA                                      8- Powerpoint                                                \xBA");
puts(" \xBA                                      9- Outlook Express                                           \xBA");
puts(" \xBA                                      10- Windows Media Player                                     \xBA");
puts(" \xBA                                      11- Real Player                                              \xBA");
puts(" \xBA                                      12- Quicktime Player                                         \xBA");
puts(" \xBA                                      13- Internet Explorer                                        \xBA");
puts(" \xBA                                      14- Firefox Mozilla                                          \xBA");
puts(" \xBA                                      15- Opera                                                    \xBA");
puts(" \xBA                                      16- Google Chrome                                            \xBA");
puts(" \xBA                                      17- Safari                                                   \xBA");
puts(" \xBA                                      18- vers\xC6o do sistema                                        \xBA");
puts(" \xBA                                      19- Diretorio do sistema                                     \xBA");
puts(" \xBA                                      20- ipconfig do sistem                                       \xBA");
puts(" \xBA                                      21- Painel de Controle                                       \xBA");
puts(" \xBA                                      22- Limpeza de Disco                                         \xBA");
puts(" \xBA                                      23- Abrir o Drive de CD-ROM                                  \xBA");
puts(" \xBA                                      24- Mostrar Teclado Virtual                                  \xBA");
puts(" \xBA                                      25- Windows Live Messenger                                   \xBA");
puts(" \xBA                                      26- Regedit                                                  \xBA");
puts(" \xBA                                      27- Jogo Spider                                              \xBA");
puts(" \xBA                                      28- Jogo Paci\x88ncia                                           \xBA");
puts(" \xBA                                      29- Calend\xA0rio Permanente                                    \xBA");
puts(" \xBA                                      30- Sair do sistema                                          \xBA");
puts(" \xBA                                                                                                   \xBA");
puts(" \xC8\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD
\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xBC");
cout<<"\n\n";
temp = op;
return temp;
}
int main(int argc, char *argv[]){

char nome [40];
int menu(), op;
system("mode con lines=70");//Altera as Linhas Da Kill Black Window
system("mode con cols=103");//Altera as Colunas Da Kill Black Window
system("color b");
system("title Gerenciador de aplicativos 1.0 ");
cout<<"\n\n";
gotoxy(1,1);//Coluna 1, linha 1
system("Date /t");
gotoxy(97,1);//Coluna 79, linha 1
system("Time /t");
cout<<"\n\n";
cout<<"                         FORTEC - Faculdade de Tecnologia de S\xC6o Vicente            ";
cout<<"\n\n";
cout<<"                                   Gerenciador de Aplicativos 1.0                      ";
cout<<"\n\n";
cout<<"                                       Autor: J Marcos B.                              ";
cout<<"\n\n";
cout<<"                                           21/11/2010                                  ";
cout<<"\n\n\n\n";
cout<<" Sobre o Gerenciador de Aplicativos 1.0";
cout<<"\n\n";
cout<<" 29 comandos uteis do Windows que voce pode executar. Digite o nome do arquivo e tecle Enter."<<endl;
cout<<" Esse comando sao de grande utilidade para resolver problemas e obter informacoes sobre o sistema"<<endl;
cout<<" operacional que voce esta usando.";
cout<<"\n\n\n\n";
printf("Por favor digite o  seu nome: ");SetConsoleTextAttribute(hConsole, 4);
gets(nome);
system("cls");

do {
op=menu();
cout<<"\n\n";
while (op < 1 || op > 30){
SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Seja bem-vindo ao nosso sistema operacional."<<endl;
cout<<"\n\n";
cout<<" Escolha uma op\x87\xC6o : ";SetConsoleTextAttribute(hConsole, 4);
cin>>op;
}

if(op == 1){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou a Data atual do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system ("date");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if(op == 2){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou a Hora atual do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system ("time");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 3){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou a Calculadora do sistema.";
cout<<"\n\n\n\n";
system("calc");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 4){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Paint do sistema.";
cout<<"\n\n\n\n";
system("mspaint");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 5){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Notepad do sistema.";
cout<<"\n\n\n\n";
system("notepad");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 6){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Word do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start winword.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 7){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Excel do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start excel.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 8){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Powerpoint do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start powerpnt.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 9){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Outlook Express do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start msimn.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 10){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Windows Media Player do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start wmplayer.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 11){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Real Player do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start realplay.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 12){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Quicktime Player do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("start quicktimeplayer.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 13){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Internet Explorer do sistema.";
cout<<"\n\n\n\n";
system("start iexplore.exe");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 14){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Firefox Mozilla do sistema.";
cout<<"\n\n\n\n";
system("start firefox.exe");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 15){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Opera do sistema.";
cout<<"\n\n\n\n";
system("start opera.exe");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 16){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Google Chrome do sistema.";
cout<<"\n\n\n\n";
system("start chrome.exe");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 17){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Safari do sistema.";
cout<<"\n\n\n\n";
system("start safari.exe");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 18){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou a Vers\xC6o do sistema.";
cout<<"\n\n\n\n";
system("winver");
cout<<"\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 19){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Diretorio do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("dir");
cout<<"\n\n\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 20){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Ipconfig do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("IPCONFIG /ALL > %TEMP%IP.TXT");
system("START NOTEPAD %TEMP%IP.TXT");
cout<<"\n\n\n\n";
cout<<"Esse arquivo sera salvo na pasta tempor\x88ria";
cout<<"\n\n\n\n";
SetConsoleTextAttribute(hConsole, 4);
cout<<" C:/Documents and settings/ Nome Do Usu\x88rio/ Configuracoes locais/ Temp";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 21){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Painel de Controle do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("control");
cout<<"\n\n\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 22){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou a Limpeza de Disco do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("cleanmgr");
cout<<"\n\n\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 23){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Aperte ENTER para abrir o drive de CD-ROM.";
cin.get();
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
Command = (CDROM) GetProcAddress(LoadLibrary("winmm.dll"), "mciSendStringA");
//foi usado para mandar o comando: "mciSendString()" para a Dll winmm.dll.
Command("Set CDAudio Door Open", NULL, 0, NULL);
//usado para falar o comando que a Dll ia executar.
cout << endl << " O drive de CD-ROM foi aberto!";
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 24){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Teclado Virtual"<<endl;
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("Osk.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 25){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Windows Live Messenger "<<endl;
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system(" start msnmsgr.exe");
cout<<"\n\n";
system("PAUSE");
system("cls");
}

if (op == 26){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 Abriu o Regedit "<<endl;
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("Regedit");
cout<<"\n\n";
cout<<" Ol\xA0 " << nome << ", Muito CUIDADO! com o conteudo dessa pasta. ";
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 27){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Jogo Spider.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("spider.exe");
cout<<"\n\n";
system("PAUSE");
cout<<"\n\n\n\n";
system("cls");
}

if (op == 28){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Jogo Paci\x88ncia.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
system("Sol.exe");
cout<<"\n\n\n\n";
system("PAUSE");
cout<<"\n\n";
system("cls");
}

if (op == 29){
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 acionou o Calend\xA0rio Permanente.";
SetConsoleTextAttribute(hConsole, 14);
int i;
int mes, ano;
int dias;
int dia_da_semana;
int dias_no_mes;
char *meses[] = {"JANEIRO","FEVEREIRO","MAR\x80O","ABRIL"
,"MAIO","JUNHO","JULHO","AGOSTO","SETEMBRO","OUTUBRO"
,"NOVEMBRO","DEZEMBRO"};
/*----Entrada de dados. */
printf("\n\n");
printf(" Calend\xA0rio Permanente");
printf("\n\n");
do{ /* Repete até teclar ano entre 1901 e 2099. */
printf("\n Digite o ano: " );
scanf( "%d", &ano );
}
while( ano < 1901 || ano > 2099 );
do{ /* Repete até teclar mes entre 1 e 12.      */
printf( " Digite o mes (1 - 12): " );
scanf( "%d", &mes );
}
while( mes < 1 || mes > 12 );
/*----Calcula o numero de dias entre 1/1/1901 e 1/mes/ano. */
dias  = 365 * (ano - 1901 );
 /* dias entre 01/01/1901 e 31/12/(ano-1)                   */
dias += ( ano - 1901 ) / 4;
/* dias de anos bissextos entre 01/01/1901 e 31/12/(ano-1) */
switch(mes){
case 12: dias += 30; /* soma os dias do mes de novembro. */
case 11: dias += 31; /* soma os dias do mes de outubro.  */
case 10: dias += 30; /* soma os dias do mes de setembro. */
case 9:  dias += 31; /* soma os dias do mes de agosto.   */
case 8:  dias += 31; /* soma os dias do mes de julho.    */
case 7:  dias += 30; /* soma os dias do mes de junho.    */
case 6:  dias += 31; /* soma os dias do mes de maio.     */
case 5:  dias += 30; /* soma os dias do mes de abril.    */
case 4:  dias += 31; /* soma os dias do mes de março.    */
case 3:  if( ano % 4 == 0 ) /* ano%4==0 -> ano bissexto. */
dias += 29;
else
dias += 28;
case 2:  dias += 31; /* soma os dias do mes de janeiro.  */
case 1:  break;
}
/*----Calcula o dia da semana de 1/mes/ano. 0= domingo, 1=segunda, ... 6=sabado */
dia_da_semana = (2 + dias) % 7; /* 1/1/1901 foi terca-feira. */
/*----Calcula o número de dias no mes. */
switch(mes){
case 12: dias_no_mes = 31; /* dias do mes de dezembro. */
break;
case 11: dias_no_mes = 30; /* dias do mes de novembro. */
break;
case 10: dias_no_mes = 31; /* dias do mes de outubro.  */
break;
case 9:  dias_no_mes = 30; /* dias do mes de setembro. */
break;
case 8:  dias_no_mes = 31; /* dias do mes de agosto.   */
break;
case 7:  dias_no_mes = 31; /* dias do mes de julho.    */
break;
case 6:  dias_no_mes = 30; /* dias do mes de junho.    */
break;
case 5:  dias_no_mes = 31; /* dias do mes de maio.     */
break;
case 4:  dias_no_mes = 30; /* dias do mes de abril.    */
break;
case 3:  dias_no_mes = 31; /* dias do mes de março.    */
break;
case 2:  if( ano % 4 == 0 ) /* ano%4==0 -> ano bissexto. */
dias_no_mes = 29;
else
dias_no_mes = 28;
break;
case 1:  dias_no_mes = 31; /* dias do mes de janeiro.  */
break;
}
printf("\n\n");
printf(" Calend\xA0rio de %s de %d\n", meses[ mes - 1 ], ano );
printf("\n\n");
printf(" D  S  T  Q  Q  S  S\n" );
printf("\n");
for( i = 0; i < dia_da_semana; i++ )
printf("   " );
for( i = 1; i <= dias_no_mes; i++ ){
printf("%2d ", i );
if( ++dia_da_semana == 7 ){
dia_da_semana = 0;
printf("\n" );
}
}
cout<<"\n\n";
system("PAUSE");
system("cls");
}

if (op == 30){//Finalizar o Programa
menu();cout<<"\a";SetConsoleTextAttribute(hConsole, 2);
cout<<" Ol\xA0 ";SetConsoleTextAttribute(hConsole, 4);
cout<< nome;SetConsoleTextAttribute(hConsole, 2);
cout<<", Voc\x88 escolheu sair do sistema.";
cout<<"\n\n\n\n";SetConsoleTextAttribute(hConsole, 14);
cout<< " M";_sleep(100); cout<<"u";_sleep(100); cout<<"i";_sleep(100);
cout<<"t";_sleep(100); cout<<"o";_sleep(1000);
cout<<" o";_sleep(100); cout<<"b";_sleep(100); cout<<"r";_sleep(100);
cout<<"i";_sleep(100); cout<<"g";_sleep(100); cout<<"a";_sleep(100);
cout<<"d";_sleep(100); cout<<"o";_sleep(1000);
cout<<" p";_sleep(100); cout<<"o";_sleep(100); cout<<"r";_sleep(1000);
cout<<" u";_sleep(100); cout<<"s";_sleep(100); cout<<"a";_sleep(100);
cout<<"r";_sleep(1000);
cout<<" o";_sleep(1000);
cout<<" n";_sleep(100); cout<<"o";_sleep(100); cout<<"s";_sleep(100);
cout<<"s";_sleep(100); cout<<"o";_sleep(1000);
cout<<" S";_sleep(100); cout<<"i";_sleep(100); cout<<"t";_sleep(100);
cout<<"e";_sleep(100); cout<<"m";_sleep(100); cout<<"a. ";_sleep(1000);
cout<< " E";_sleep(100); cout<<"s";_sleep(100); cout<<"p";_sleep(100);
cout<<"e";_sleep(100); cout<<"r";_sleep(100); cout<<"o";_sleep(1000);
cout<<" q";_sleep(100); cout<<"u";_sleep(100); cout<<"e";_sleep(1000);
cout<<" t";_sleep(100); cout<<"e";_sleep(100); cout<<"n";_sleep(100);
cout<<"h";_sleep(100); cout<<"a";_sleep(1000);
cout<<" g";_sleep(100); cout<<"o";_sleep(100); cout<<"s";_sleep(100);
cout<<"t";_sleep(100); cout<<"a";_sleep(100); cout<<"d";_sleep(100);
cout<<"o";_sleep(1000);
cout<<" e";_sleep(100); cout<<"/";_sleep(100); cout<<"o";_sleep(100);
cout<<"u";_sleep(1000);
cout<<" l";_sleep(100); cout<<"h";_sleep(100); cout<<"e";_sleep(1000);
cout<<" a";_sleep(100); cout<<"j";_sleep(100); cout<<"u";_sleep(100);
cout<<"d";_sleep(100); cout<<"a";_sleep(100); cout<<"d";_sleep(100);
cout<<"o. ";_sleep(1000);
cout<<"\n\n";
cout<< " V";_sleep(100); cout<<"o";_sleep(100); cout<<"l";_sleep(100);
cout<<"t";_sleep(100); cout<<"e";_sleep(1000);
cout<<" s";_sleep(100); cout<<"e";_sleep(100); cout<<"m";_sleep(100);
cout<<"p";_sleep(100); cout<<"r";_sleep(100); cout<<"e. " <<endl;_sleep(1000);
cout<<"\n\n";
return 0;

}//fim do bloco switch
}

while (op != 30);

system("PAUSE");
return EXIT_SUCCESS;
}

Gerenciador De Aplicativos Em-C++ ou Gerenciador De Aplicativos Em C++
Bom aqui vai mais um de sala de aula.

#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <windows.h>
#include <time.h>

HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

using namespace std;

int menu(){//Fuction menu
int op;
int temp;

system("color b");
system("mode con lines=60");/*Altera as Linhas Da Kill Black Window*/
system("mode con cols=115");/*Altera as Colunas Da Kill Black Window*/
cout<<"\n\n";
puts("\t+===================================================================================================+");
puts("\t|                                                                                                   |");
puts("\t|                                    O.S. J Marcos B - 1.0                                          |");
puts("\t|                                ===============================                                    |");
puts("\t|                                                                                                   |");
puts("\t|                                Autor: J. Marcos B. ( BSI - 4 )                                    |");
puts("\t|                                                                                                   |");
puts("\t+===================================================================================================+\t");
puts("\t|                                                                                                   |");
puts("\t|                       FORTEC - Faculdade de Tecnologia de Sao vicente                             |");
puts("\t|                       ================================================                            |");
puts("\t|                                                                                                   |");
puts("\t|                                 Professor: Leandro Sanchez                                        |");
puts("\t|                                                                                                   |");
puts("\t|                                   Sistemas Operacionais I                                         |");
puts("\t|                                                                                                   |");
puts("\t|                                         20/11/2010                                                |");
puts("\t|                                                                                                   |");
puts("\t+===================================================================================================+\n\t");
cout<<"\n\n";
temp = op;
return temp;
}//Fim da Fuction menu

int main(int argc, char *argv[]){ //inicio do corpo do programa

char nome[40], ip[15], var[100], resp;
int menu();
bool continua;
continua = true;

system("TITLE Sistema Operacional J Marcos B 1.0");//Titulo do programa
menu();
cout<<"\n\n\n\n";
printf("                                    Por favor digite o seu nome: ");
SetConsoleTextAttribute(hConsole, 4);
gets(nome);
system("color b");
cout<<"\n\n\n\n";
system("cls");

while (continua){//inicio do while
menu();
cout<<"\n\n\n\n";
cout<<" Ola " << nome << ", Digite o comando que deseja executar: ";
scanf("%s",&ip);
cout<<"\n\n\n\n";
sprintf(var, "start %s", ip);
system(var);
SetConsoleTextAttribute(hConsole, 2);
cout<<"\n\n\n\n";

cout<< nome << ", Muito obrigado por usar nosso Sitema Operacional."<< endl;
cout<<"\n\n";
cout<<" Deseja continuar? Digite 'S' para (continuar) ou 'N' para (sair).";
cin>>resp;

if(resp=='n')
continua=false; cout<<"\n\n\n\n";
}//Fim do while
//Fim do corpo do programa
return EXIT_SUCCESS;
}

Baixar o fonte:

Sistema Operacional Em C++ ou Sistema Operacional Em C++

Bom espero ter contribuído para alguns fins acadêmicos.