33,007
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
struct note
{
int s_index;
note *pNext;
};
int main(int argc, char *argv[])
{
printf("Hello, world\n");
note *pHead = null;
note *pNext = null;
pHead = new note();
pNext = pHead;
for(int i=0; i<10; i++)
{
pNext->pNext = new note();
pNext = pNext->pNext;
}
return 0;
}