Search found 4 matches

by nardhar
Wed Oct 24, 2007 5:23 am
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 121
Views: 64227

lol, silly mistake (wasnt in the insensitive case), anyone who sees my "compara" function would notice
by nardhar
Wed Oct 24, 2007 5:08 am
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 121
Views: 64227

lol, found a solution in the net (got AC) and the only thing different is that the member of the team struct is a "string" and not a "char array", then it just compare like this:

string s1 = t1->name;
string s2 = t2->name;
for (int i=0; i<s1.length(); i++)
if (s1[i] <='Z' && s1[i] >='A')
s1[i ...
by nardhar
Wed Oct 24, 2007 2:34 am
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 121
Views: 64227

my case insensitive function is ok, but it gives me WA, is there something wrong in my code? (what i do is copy the names to another strings which are lowercase and then i use strcmp with the new strings to sort) or should i implement case insensitive function?

int compara(equipo *a, equipo *b ...
by nardhar
Wed Oct 17, 2007 2:59 am
Forum: Volume 7 (700-799)
Topic: 722 - Lakes
Replies: 10
Views: 9250

plz somebody help!, i get RTE with java, guess its something with the ReadLn function, because it doesn't return null when there is a blank line

here is the code

class Main
{
static int mat[][];
static int c;
static String ReadLn (int max)
{
byte linea[] = new byte [max];
int largo = 0, car ...

Go to advanced search