View Full Version : printf statements
hello. I was just wondering where do i put a printf statement if I'm using kevin watson's code? thanks!
psy_wombats
09-02-2008, 13:05
You can put a printout anywhere inside a function after variable declarations. Just make sure each file that uses printf has a #include <stdio.h> so the function is defined.
3dude_2231
09-02-2008, 16:09
indeed, what psy_wombats said is correct,
you can place PRINTFs everywhere,
just be careful:
* 1. not to forget the #include<stdio.h> on top of every page that has a printf
* 2. try not to put it in vital areas, you don't wanna mess with functions
that are time-sensitive, printf is a rather complicated function, that bites up a lot of mS
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.