Search found 2 matches

by MotherTiger
Thu Mar 03, 2011 8:55 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 57010

Re: 272 Runtime Error?!

I've just compiled and runned your code and turns out that it works fine in my box.
I even compared your output against my AC'd code's output and they are identical.
Have you searched for any additional input/output to test your code with?

Thanks for your reply!
Yes, i've tried some additional ...
by MotherTiger
Wed Mar 02, 2011 7:19 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 57010

272 Runtime Error?!

I got Runtime Error so many times, but don't know why!
Can anyone tell me what goes wrong please?
Thanks alot!

#include <stdio.h>

int main()
{
int counter = 0, flag = 0;
char text[5000] = {0}, x;
while((x = getchar()) != EOF)
{
if(x == '\"')
{
if(flag == 0)
{
text[counter ...

Go to advanced search