PDA

View Full Version : what is Palm's equivalent of C++'s 'cout'?


JSY
02-16-2005, 04:00 AM
Hi. I'm writing a program using CodeWarrior, writing in C++ language. I just want to enquire what is CodeWarrior's equivalent of cout in C++? What function do I use to display a computed data (ie:'sum' which holds the result of a mathematical operation) onto a form in the PDA?

Also, how do you convert a string into integer?

Thanks in advance.

Rgds,
JSY

Sharkk717
02-16-2005, 06:21 AM
hi! this really should be posted in the Developer forum, but i'll respond here anyway (could Reggie or Joel move it?)

there is no direct equivalent to cout. Either copy the string into a label on your form or draw text directly onto the window. Use CtlSetLabel or FrmCopyLabel function for the label.

to convert a string to integer, use either StrPrintF (equivalent to sprintf in C++) or StrAToI

regards, sharky