-
Question about char
Hello!
i have a problem.
I need a function that adds number at the begining of char, so that the rest of the content moves one position forward. if it was (5 12 204 29 9) and when i add number 10, then after it, the comnet of char looks like (10 5 12 204 29 9)
main problem is ... that i don't know how to do it. Could somebody please help me?
Sorry for my bad english, hope you understand. If any questions, then ask :)
Mursik ,.
-
Use a data structure, like a queue.
(There are plenty of available information about how to implement them.)
-
It sounds like the memmove function could help you here.