c++ - How do I return a char array from a function? - Stack Overflow

c++ - How do I return a char array from a function? - Stack Overflow

瀏覽:941
日期:2024-08-27
Possible Duplicate: c++ return array in a function I've tried the following: char[10] testfunc() { char[10] str; return str; } ... So, you have tried one thing, it didn't work, and now you ask? Have you used the search function? Have you looked at the sug...看更多