32 lines
551 B
C++
32 lines
551 B
C++
#include <stdio.h>
|
|
#include <conio.h>
|
|
|
|
|
|
void main( int argc, char *argv[] )
|
|
{
|
|
int i;
|
|
unsigned char *aux;
|
|
|
|
printf ( "\n Linea de parametros fue: \n" );
|
|
for ( i = 0; i < argc; i++ )
|
|
printf ( "%s ", argv[i] );
|
|
|
|
printf( "\n \n \n ¨Deletrear linea de comandos? (S/-): \n " );
|
|
switch( getch() )
|
|
{
|
|
case 'S':
|
|
case 's':
|
|
for ( i = 1; i < argc; i++ )
|
|
{
|
|
printf( "\n" );
|
|
aux = argv[i];
|
|
do {
|
|
printf ( "%03d %c + ", (unsigned int)(*aux), (unsigned char)(*aux) );
|
|
} while ( *(++aux) != '\0' );
|
|
|
|
}
|
|
getch();
|
|
break;
|
|
}
|
|
|
|
} |