[TIB] Re: [OT] C++ help


[Prev][Next][Index][Thread]

[TIB] Re: [OT] C++ help




i would try something like this on the ti-89
this is just me though
------Begin code------
inputstr "year day month",date
instring(date," ")_>s
left(date,s-1)_>year
instring(date," ",s+1)_>s
left(date,s-1)_>day
right(day,2)_>day
right(date,dim(date)-s)_>month
------End code------
year now = the year
day now = the day of the month
month now = the month of the year

hope this helps
Charles Moye


> hey i have to make a program that tells the day of the week of a certain
> date...for example 1983 23 7, was a friday...what i need to know is how
> to i get the 1982, 23, 7 seperate...the user will enter it like this
> "1983 23 7" and i need to get 1983 alone, and 23 alone and 7 alone
> 
> thanks,
> chris





Follow-Ups: References: