[QUOTE=shill le 2nd;19066963]postcount++;
printf("postcount = %d", postcount);
postcount = 1238[/QUOTE]
I'm not sure that's right, Since when does printf have 2 arguments? What you could do is printf("postcount ="+somefunctiontoturnintintostring(postcount));
so...
#define posting true
long postcount = 50;
while(posting==true)
{
postcount++;
printf("OMG MAH POST COUNT: ");
printf(postcount);
}
Not sure if i forgot something....
[QUOTE=ReCreate;19067021]I'm not sure that's right, Since when does printf have 2 arguments? What you could do is printf("postcount ="+somefunctiontoturnintintostring(postcount));
so...
#define posting true
postcount so long postcount = 50;
while(posting==true)
{
postcount++;
printf("OMG MAH POST COUNT: ");
printf(postcount);
}
Not sure if i forgot something....[/QUOTE]
Uhh, printf has an arbitrary amount of arguments, one for every variable placeholder in the string.
Go learn C.
[url]http://docsrv.sco.com:507/en/man/html.C/printf.C.html[/url]
Sorry, you need to Log In to post a reply to this thread.