Search found 2 matches

by vril4296
Thu Mar 29, 2012 1:23 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37482

Re: 10062 - what's different???

but I have considered about the newline

fgets : length=strlen(text)-1
gets : length=strlen(text)
by vril4296
Wed Mar 28, 2012 1:30 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37482

10062 - what's different???

i get ac when i use gets, but get wa when i use fgets can anyone tell me why??? thanks~ code use fgets #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char text[1001]; //Maximum length of each line is 1000.(max 1001,include '\n' or '\r') int ascii[95],length,i,j,n=0; //The gi...

Go to advanced search