Search found 3 matches

by trelos
Thu Apr 16, 2009 9:40 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77887

Re: 10267 - Graphical Editor

void K(int X1,int Y1, int X2, int Y2,char C){
int i;

for(i=X1;i<X2;i++){V(i,Y1,Y2,C);}
}
you should swap (x1 and x2) and( y1 and y2) here

Yes!! That certainly was a bad mistake... thank you for that! :D

i found another problem in your code
i think this function
void F(int X, int Y, char ...
by trelos
Thu Apr 16, 2009 2:14 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77887

Re: 10267 - Graphical Editor

Again
bcoz if new and old color be same , your fill function check a cell over and over
you can use a map or a 2-D array for marking cells that you visited already
and
maybe x1 is greater than x2 or y1 > y2 , you should swap them

I think I already do those things...


void V(int X, int Y1, int ...
by trelos
Thu Apr 16, 2009 12:48 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77887

Re: 10267 - Graphical Editor

Hello people! New guy here trying to program everything!!

I really have scratched my head over this one but the judge keeps defying me giving me a refusing RE. If anyone can help, I would appreciate it!

#include <stdio.h>
#include <stdlib.h>

char **B;
int r,c;

void I(M,N){
int i,j;

c = M; r ...

Go to advanced search