Aiks, i really fresh in C. Your coding contain some element i never learn before.
Learning is a process always on going.
i copy paste the code and run it, it work perfectly.
No copy and paste. Write it. Practice. Write it again. Practice again.
You'll learn nothing by just coping and paste and looking at it, and rejoicing that it works.
You don't know
that it works until you understand why it does.
Cannot you use std::string apis ?
>i never learn about it.
haha
That's not C. Don't pay attention to it.
Reputation Points: 2224
Solved Threads: 218
Nearly a Posting Maven
Offline 2,304 posts
since Dec 2006