Учусь писать на С++,пишу постенькую прожку,но полный результат не могу посмотреть быстро закрываеться окно,после нажатия кл enter, вот прога
#include <stdio.h>
void convert (int);
int main ()
{
int ch;
printf ("vvecti i najat Enter\n");
ch=getchar();
while (ch !='\n')
{convert (ch);
ch=getchar();
}
printf ("the end\n");
return 0;
}
void convert (int c)
{printf ("\tDec\tOct\tHex\n");
printf ("%c\t%d\t\t%o\t\t%x\n",c,c,c,c);
if (c < ' ')
printf ("special simbols\n");
return;
}
#include <stdio.h>
void convert (int);
int main ()
{
int ch;
printf ("vvecti i najat Enter\n");
ch=getchar();
while (ch !='\n')
{convert (ch);
ch=getchar();
}
printf ("the end\n");
return 0;
}
void convert (int c)
{printf ("\tDec\tOct\tHex\n");
printf ("%c\t%d\t\t%o\t\t%x\n",c,c,c,c);
if (c < ' ')
printf ("special simbols\n");
return;
}