Discussion: printf on alcohol
Afficher un message
Vieux 19/10/2007, 00h03   #1
estantep@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut printf on alcohol

Has anybody ever seen a thing like this?

### code:

double link_bw_cost(int a, int b){

double ro;

ro = ( (double) link_usage[a][b].bandw / (double) link[a][b].bandw);

printf("DEBUG - a = %d e b = %d\n", a, b);
printf("DEBUG - link_usage[%d][%d].bandw = %ld link[%d][%d].bandw
= %ld \n", a, b, link_usage[a][b].bandw, a, b, link[a][b].bandw);


### when running:

DEBUG - a = 0 e b = 2
DEBUG - link_usage[0][2].bandw = 0 link[1078689792][0].bandw = 2

  Réponse avec citation
 
Page generated in 0,04550 seconds with 9 queries