/*Kullanicidan aldigi degerleri kullanip grafigi cizer.*/ int draw_ver_diag_of_bb(int first_height, int feet_height, char the_peak_point, char the_road_point) { int result=0,r,length=1; printf("^\n"); for(r=first_height; r>=1; r--) { result+= (first_height * feet_height * 2)+1; draw_diag_step(first_height, feet_height, the_peak_point, the_road_point); first_height--; } first_height--; /*printf("result:%d\n",result);*/ return result; }
/*##########################################################################*/ int draw_ver_diag_of_bb(int first_height, int feet_height, char the_peak_point, char the_road_point) { int height2,counter=0; printf("^\n"); /* grafigin adimlarinin azaltilarak tekrardan cagirilmasi */ /* gelen return degerlerini toplayarak toplam karakter sayimizi buluruz*/ for(height2=first_height;height2>=1;height2--) { counter = counter + draw_diag_step(height2,feet_height, the_peak_point,the_road_point); } /* grafigin x eksenini basarız */ finish_diag(first_height*feet_height); return counter; }