All pastes #799846 Raw Edit

Untitled

public text v1 · immutable
#799846 ·published 2007-11-27 22:19 UTC
rendered paste body
#include <conio.h>
#include <stdlib.h>
#include <iostream.h>
#include <stdio.h>

                   void main (){

                   char e[30];
                   int x,y;
                      cout<<"digite un nombre "<<endl;
                    for(x=0;x<=30;x++) {

                   // cout<<"digite un nombre "<<endl;
                    cin>>e[x];


                    for(y=0;y<=x;y++){

                    		if(x==y){
                           y++;
                           }
                       if(e[y]==e[x]) {
                        		cout<<"nombre ya escrito";
                              x=x-1;
                              getch();
                        }
                    }

                    if(e[x]=='$')
                          x=30;

                   }
                     for(x=0;x<=30;x++){

                     cout<<e[x]<<endl;

                     }

                   }