If it's not homework, I'd just use the std::copy() algorithm and then chop off the last element, or better yet, use an std::vector...
If it's not homework, I'd just use the std::copy() algorithm and then chop off the last element, or better yet, use an std::vector...
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010