示例#1
0
int main() {
 
  CINI_open_window(400, 300, "test");
  
  CINI_draw_pixel(199, 200, "white");   /* affiche pt coord x=199, y=200*/
  CINI_draw_pixel(200, 200, "white");   /* affiche pt coord x=200, y=200*/
  CINI_draw_pixel(201, 200, "white");   /* affiche pt coord x=201, y=200*/

  CINI_loop();
  return 0;
}
示例#2
0
文件: 2.c 项目: Eastkap/1I002
int main(){
	int c;
	int tab[TAILLE];
	int h[TAILLE];
	int point[2];
	point[0] = 0;
	point[1] = 400;
	printf("Initialisation de tab :\n");
	c = init_tab(tab, TAILLE);
	printf("La valeur %d est presente %d fois.\n",V,compte(tab,c,V));
	printf("La valeur maximale est : %d\n",max_notes(tab,c));
	printf("\nTableau d'occurences :\n");
	histogramme(tab,h,c);
	CINI_open_window(FENETRE,FENETRE,"fenetre");
	CINI_fill_window("white");
	/*dessiner_baton(point,50,100,"red"); */
	printf("Dessiner histogramme\n:");
	dessiner_histogramme(tab,h,point,c,20,100,"red");
	return 0;
}