Programa En C++
Enviado por monster61193 • 23 de Agosto de 2012 • 552 Palabras (3 Páginas) • 638 Visitas
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char x[10];
int a=0,i=0,c=0;
cout<<"pasword : ";
gets(x);
a= strlen(x);
for(i=0;i<a;i++){
if(!isdigit(x[i]))
{
c++;
}
}
if(c>0){
cout<<"introduce numeros"<<endl;
}
if (strcmp(x,"12345")!=0){
do
{
system("cls");
cout<<"incert te pasword :";
gets(x);
}
while(strcmp(x,"12345")!=0);
}
{
float ham=45;
float t=15;
float r=10;
float hd=10;
float Gg=8;
float cc=25;
float ch=0.50;
float d=1;
float p=2;
float c=3;
float h=2;
float n=12;
float ccon=27;
float csin=20;
float tac=6.50;
float x,y,z,q,w,a,s,v,b,k,l,m,f,i,u;
cout<<"hamburguesas :"<<endl;
cin>>x;
system("cls");
cout<<"Tortas :"<<endl;
cin>>y;
system("cls");
cout<<"Refresco :"<<endl;
cin>>z;
system("cls");
cout<<"HoTdog :"<<endl;
cin>>q;
system("cls");
cout<<"Galleta :"<<endl;
cin>>w;
system("cls");
cout<<"Comida corrida :"<<endl;
cin>>a;
system("cls");
cout<<"chiles :"<<endl;
cin>>s;
system("cls");
cout<<"dulce :"<<endl;
cin>>v;
system("cls");
cout<<"paleta :"<<endl;
cin>>b;
cout<<"chicloso :"<<endl;
cin>>k;
cout<<"helado :"<<endl;
cin>>l;
cout<<"nieve :"<<endl;
cin>>m;
cout<<"tacos: "<<endl;
cin>>u;
cout<<"ley
...