I am trying to parse a date stored as an array of characters. I have a problem to paerse the date with a loop otherwise it works fine.
char date[]="20141018"; //the date is 10/18/2014
char _mypointer=date;
char year= "YYYY";
char month="MM";
char day= "DD";
year[0]=*my_pointer + 0;
month[1]=*my_pointer +1;
What I want is the loop to do this but I am getting serios errors:
int i,j =0;
do
i++;
j++;} while(i<4 and j<4);
chipo 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Moschops 683 Practically a Master Poster Featured Poster
David W 131 Practically a Posting Shark
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
sheikh.islampollob 0 Newbie Poster
David W 131 Practically a Posting Shark
David W 131 Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.