Search found 8 matches

by kYsis
Mon Mar 11, 2002 6:58 pm
Forum: C
Topic: Scan of input file ....
Replies: 14
Views: 13605

and that's it ?

Thanks alot :wink:
by kYsis
Mon Mar 11, 2002 6:57 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 17007

I do use the keyboard shown on the problem, because I'm French and I have AZERTY keyboards at home ...
For ' ' I think it is ok, I tested the algorithm in another program with just a scanf for a single line, and I works perfectly good ...
by kYsis
Mon Mar 11, 2002 12:46 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 17007

I forgot to say I got WA ....
Don't see where it can come from ...
Please help !
by kYsis
Mon Mar 11, 2002 12:36 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 17007

I made a whole new one :
Works perfectly ...




#include<stdio.h>

char convert(char ch)
{
if( ch=='1') return '`';
if( ch=='2') return '1';
if( ch=='3') return '2';
if( ch=='4') return '3';
if( ch=='5') return '4';
if( ch=='6') return '5';
if( ch=='7') return '6';
if( ch=='8') return '7 ...
by kYsis
Mon Mar 11, 2002 12:31 pm
Forum: C
Topic: Scan of input file ....
Replies: 14
Views: 13605

Ok, so I program in C and I just need to know another thing :
How do I scan an input file made of several lines
Example :
//Beginning of the file
15
45
12

//End of file
I have to do something for each line, like for the 495th problem ...
by kYsis
Sun Mar 10, 2002 6:16 pm
Forum: C
Topic: Scan of input file ....
Replies: 14
Views: 13605

How do I scan an input file ?
Fro example, an input file made of sentences on separate lines ...
by kYsis
Sun Mar 10, 2002 2:03 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 17007

I don't understand the problem in my source : I don't have any warning when I compile it, but it crashes ...


// Be careful, my whole source is down there ...
















































#include<stdio.h>

#define TAILLE 1000

char convert(char phrase[TAILLE]);

int main ...
by kYsis
Sun Mar 10, 2002 2:00 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 12990

I got WA for this problem, i don't see why ...
My source should be OK, it works perfectly ...

//Careful, whole source down there !






















































































/* @JUDGE_ID: 18200YT 485 C "It

Go to advanced search