Henk Jonas wrote:
int a, b, c;
a = 1;
b = 2;
c = a + b;
?????????
I was thrown for a loop by that too: a computer science PhD candidate
asking for example code to add two numbers?
Then it finally dawned on me. The answer you gave above is not correct,
because what they asked for is a program that adds two numbers. Based
on the context of this forum, that would be a Palm program. In other
words, what they're asking for is sample code for a trivial Palm
application, specifically the trivial Palm application that adds two
numbers. This app probably demonstrates some Palm concepts, like how
to read a string from a field, how to convert that to a number, how
to convert a number back to a string, and how to write the result
onto the screen or put the string into a third field.
- Logan
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/