Moderator: Board moderators
The car is blue. The car
is blue. The car is BLUE.
Wkh fdu lv eoxh. Wkh fdu
lv eoxh. Wkh fdu lv EoxH.
Wkh fdu lv eOXh. The car is blue. The car
is blue. The car is BluE.
The car is bLUe. Removed Andrew Neitsch wrote:Your integer compare is stupid. If the two numbers are equal, and you add 1 to each, they will still be equal.
Just do return *(int*)a-*(int*)b; to sort in ascending order.
while(gets( known ) ){
if(known[0]==0)break ;
...........
...........
}
i = 0 ;
while(gets( temp )){
strcpy(encoded[i++] , temp);
..........................
....................
}
give output .....known
known
known
known
encoded
encoded
encoded
encoded
encoded
encoded
encoded
EOF
Users browsing this forum: No registered users and 0 guests