阅读背景:

动态分配和数组/指针的分段错误

来源:互联网 

I'm working on an assignment that is introducing the principals of dynamic allocation of memory and pointers. I had made a simple program in the past that accepted 5 names and 5 scores and then used a selection sort to put them in descending order. My assignment now is to come back to that same program and ask the user how many scores they would like to input, then use pointers to dynamically allocate the necessary amount of memory. This is my first time working with pointers and these concepts so im still trying to figure it all out.I'm working on an assignment that is introducin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: