Community articleRunning Calculate Age Under C
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Compile the source code file calculateAge.c to produce an executable called calculateAge.exe. Then follow these steps to run the Calculate Age sample application:
  1. Using the Viewer, open the form called calculateAge.xfd located in the following folder:
  2.    <API Installation Folder>\samples\Win32\form\demo\calculate_age\

  3. Change the name and birth date if you want, then save and close the form.
  4. Run calculateAge.exe.
    • This creates a form called output.xfd in the current folder.
  5. Open the output.xfd form, and check the result in the Age field.