Traditional Culture Encyclopedia - The 24 Solar Terms - How to use C language to convert to year, month and day format for help? . .
How to use C language to convert to year, month and day format for help? . .
# Contains? & ltstdio.h & gt
int? Master ()
{
int? yy,nn,dd,hh,mm,ss,len
Charles? out[2];
Charles? Enter []? =? "20 15-06-29? 10:55:55? pm”;
Ryan. =? Sscanf (input? ," %d-%d-%d? %d:%d:%d? %s "、& ampYY & amp; nn & amp; DD & amp; hh & amp; Um, & ss, out);
printf("%d-%d-%d? %d:%d:%d? %s? len->; %d”,yy,nn,dd,hh,mm,ss,out,len);
Return? 0;
}
- Related articles
- How about Liaocheng Vocational and Technical College?
- What is the flower language of apricot tung flower?
- Geomantic omen mode of 24 solar terms
- Why do young women have to step on Moutai?
- Write a composition with warm words at the beginning.
- What are the calculation methods of Yin Yi and Yang Yi?
- The solar terms with the same length of day and night in the northern and southern hemispheres are () A. Before and after vernal equinox and summer solstice B. Before and after vernal equinox and autu
- Damn it, what sign? What do you mean?
- What's the difference between New Year's Eve and Spring Festival?
- The normal driving history of Lifan Xuan Lang is that the engine vomited at 40 yards in second gear and 70 to 80 yards in fifth gear. What is the reason?