Computer Science Canada Getting the current data in turing |
Author: | alt+f4 [ Sat Mar 17, 2007 1:01 pm ] | ||
Post subject: | Getting the current data in turing | ||
Hello i am trying to write a program that sloves this question: 9. Write a program that asks the user their name and date of birth, the program will output their age and appropriate comment whether they can have their G1, G2 and/or vote. I am having trouble getting the current date so that i can calculate the users age so far i have this... I am using the Time.date function and turing 4.0.3 I belive that the problem is that Time.date is a string. Is there a better way to get the current day, month and year in turing. And i am sorry this is probley a really easy question. i am not really this bad at coding i just dont know the syntax in turing yet.
|
Author: | CodeMonkey2000 [ Sat Mar 17, 2007 4:06 pm ] |
Post subject: | RE:Getting the current data in turing |
You may want to read up on string manipulation. Some useful functions you might need are strint() and length(). |
Author: | alt+f4 [ Mon Mar 19, 2007 8:20 am ] | ||
Post subject: | Re: Getting the current data in turing | ||
:UPDATE I got my program running with a static date it looks like this now...
|