Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   printf statements (http://www.chiefdelphi.com/forums/showthread.php?t=63628)

Hazmatt 09-02-2008 11:28

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

Re: printf statements
 
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

Re: printf statements
 
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


All times are GMT -5. The time now is 01:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi