Revision: 207
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=207&view=rev
Author: Oracle_
Date: 2008-06-03 09:12:26 -0700 (Tue, 03 Jun 2008)
Log Message:
-----------
Modified Paths:
--------------
ACMServer/branches/sharp tester/TestLibrary/TestLibrary.cpp
Modified: ACMServer/branches/sharp tester/TestLibrary/TestLibrary.cpp
===================================================================
--- ACMServer/branches/sharp tester/TestLibrary/TestLibrary.cpp 2008-06-03 15:59:35 UTC (rev 206)
+++ ACMServer/branches/sharp tester/TestLibrary/TestLibrary.cpp 2008-06-03 16:12:26 UTC (rev 207)
@@ -4,7 +4,6 @@
#include "stdafx.h"
#include "TestLibrary.h"
#include <new.h>
-#include <stdio.h>
TESTLIBRARY_API bool CheckCL(char* src, int cl, char*& details)
{
@@ -42,16 +41,16 @@
int curo=0;
for (int i=0;;i++,curo++)
{
- if (output[curo]=='\0'&&rightoutput[i]!='\0')
+ while ((output[curo]==' ')||(output[curo]=='\n')||(output[curo]=='\r'))
+ ++curo;
+ while ((rightoutput[i]==' ')||(rightoutput[i]=='\n')||(rightoutput[i]=='\r'))
+ ++i;
+ if ((output[curo]=='\0')&&(rightoutput[i]!='\0'))
return 1;
- if (output[curo]!='\0'&&rightoutput[i]=='\0')
+ if ((output[curo]!='\0')&&(rightoutput[i]=='\0'))
return 1;
- if (output[curo]=='\0'&&rightoutput[i]=='\0')
+ if ((output[curo]=='\0')&&(rightoutput[i]=='\0'))
return 3;
- while ((output[curo]==' ')&&(output[curo]=='\n')&&(output[curo]=='\r'))
- ++curo;
- while ((rightoutput[i]==' ')&&(rightoutput[i]=='\n')&&(rightoutput[i]=='\r'))
- ++i;
if (output[curo]!=rightoutput[i])
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|