Posts by fabiovinicius • 11 points
2 posts
-
1
votes0
answers47
viewsQ: How to store only characters from a text file in an array?
int main(){ char aux; int i=0,j=0,p=0; char vetor[26]; FILE *arq; My.txt file has any string, I just want to take the characters of this string and move to a 26 position vector, which is the amount…
casked fabiovinicius 11 -
0
votes1
answer79
viewsA: Read string pointer in C
the most suitable way to work with string in c( compound words) would be to use scanf(" %[ n]s");. [ n] will read all your string to n, and the space you give between " and % is a way to clear the…