Hello ! my question is located as a comment beside the last printf ! can anybody help ? check the comment near the last printf
the comment is ==>here i get a sequence of numbers the question is how can i copy this sequence to an array and the print the array out ?
Code:
#include <stdio.h>
#define N 30
#define n 100
int main (void)
{
int i,z,k;
int total_chars = 0;
char c,seq[N];
int tmp[13];
char Table[] = {'z','c','C','d','D','e','f','F','g','G','a','A','h','c'
,'C','d','D','e','f','F','g','G','a','A','h','c'
};
for ( i=0 ; i<n; i++)
{
c=getchar();
seq[i]=c;
printf( "your input %c\n" , seq[i]);
if(seq[i] == '0')
{
total_chars = i;
break;
}
}
for(z=0 ; z<13 ; z++ )
{
for (i=0; i<13; i++)
{
if (seq[z]==Table[i])
//tmp[z]=i;
printf("\n%d" ,i); // here i get a sequence of numbers the question is how can i copy this sequence to an array and the print the array out ?
}
}
return 0;
}