41r0n
(usa Conectiva)
Enviado em 12/10/2008 - 17:28h
cara ajudo muito....
tenho várias apostilas aki mas nenhuma fala a lingua do iniciante...
vlw aew!!!
quero mostrar a vcs o que eu tinha em mente...
na minha faculdade tenho q fazer pontos de atividades complementares e minha coordenadora só aceita coisas criativas então está aew o q eu fiz:
#include<windows.h>
#include<conio.h>
#include<stdio.h>
main(){
system("color 4f");
int num;
SetConsoleTitle("Agenda telefonica");
system("color 4f");
printf("\n\n\n\n\n\n\n\n\n\n\n\n");
printf(" \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\xBB\n");
printf(" \xBA \xBA\n");
printf(" \xBA Ciencia da computacao! \xBA\n");
printf(" \xBA \xBA\n");
printf(" \xBA Treinamento de Programacao. \xBA\n");
printf(" \xBA \xBA\n");
printf(" \xBA \6 Agenda Telefonica \5 \xBA\n");
printf(" \xBA \xBA\n");
printf(" \xBA \xBA\n");
printf(" \xBA Criador: 41r0n E-mail: airon_rpg@hotmail.com \xBA\n");
printf(" \xBA Colaborador: Puts ninguem!!! \xBA\n");
printf(" \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\xBC\n\n\n\n\n\n\n");
Sleep(3000);
system("cls");
system ("color 1f");
SetConsoleTitle("Agenda telefonica\\Cadastro");
char * nome = (char *) malloc(sizeof(char) * 100);
printf("\n Digite o seu nome: ");
fflush(stdin); gets(nome); fflush(stdin);
FILE * outFile = fopen("AgendaTel.txt", "a+");
fprintf(outFile, "\n\nNome: %s", nome);
fclose(outFile);
system("cls");
char * endereco = (char *) malloc(sizeof(char) * 100);
printf("\n Digite o endereco: ");
fflush(stdin); gets(endereco); fflush(stdin);
outFile = fopen("AgendaTel.txt", "a+");
fprintf(outFile, "\nEndereco: %s", endereco);
system("cls");
char * telefone = (char *) malloc(sizeof(char) * 100);
printf("\n Digite o telefone: ");
fflush(stdin); gets(telefone); fflush(stdin);
outFile = fopen("AgendaTel.txt", "a+");
fprintf(outFile, "\nTelefone: %s", telefone);
system("cls");
char * aniversario = (char *) malloc(sizeof(char) * 100);
printf("\n Digite a data do aniversario: ");
fflush(stdin); gets(aniversario); fflush(stdin);
outFile = fopen("AgendaTel.txt", "a+");
fprintf(outFile, "\nAniversario: %s", aniversario);
system("cls");
char * email = (char *) malloc(sizeof(char) * 100);
printf("\n Digite o e-mail: ");
fflush(stdin); gets(email); fflush(stdin);
outFile = fopen("AgendaTel.txt", "a+");
fprintf(outFile, "\nE-mail: %s", email);
fclose(outFile);
system("cls");
getch();}
agora só falta eu aprender a abrir o arquivo salvo!!! gostaria de uma nova forcinha aew!!!
OBS: procuro no google antes de encher o s... de alguem ^^!