Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
c++ linked list?
why the value cannot be read?
Update:
node* buildReverseList(char* number) {
node* n = new node;
n->data = number[0];
node* head = n;
node* curr = head;
for (int i = 1; i < strlen(number); i++) {
node *n = new node;
n->data = number[i];
curr->next = n;
curr = curr->next;
n->next = NULL;
}
return head;
}
1 Answer
Relevance
- Anonymous3 months ago
I cannot in good conscience do your work for you and help you to appear smarter then you actually are.
Still have questions? Get answers by asking now.