joely2k
asked on
How to use pseudocodes in linked list?
node *pointsHead, *pointsTail, *temp;
pointsHead = new node;
strcpy(pointsHead->playerN ame, "HUMAN");
pointsHead->playerPoint = 0;
pointsHead->next = NULL;
pointsTail = new node;
strcpy(pointsTail->playerN ame, "COMPUTER");
pointsTail->playerPoint = 0;
pointsTail->next = pointsHead;
pointsHead = pointsTail;
pointsTail = pointsHead->next;
How can I simply tell the above algorithm in Pseudocodes?
Thanks....
pointsHead = new node;
strcpy(pointsHead->playerN
pointsHead->playerPoint = 0;
pointsHead->next = NULL;
pointsTail = new node;
strcpy(pointsTail->playerN
pointsTail->playerPoint = 0;
pointsTail->next = pointsHead;
pointsHead = pointsTail;
pointsTail = pointsHead->next;
How can I simply tell the above algorithm in Pseudocodes?
Thanks....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
joely2k:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
pointsHead <-- allocate node
strcpy(pointsHead.playerNa
pointsHead.playerPoint <-- 0
pointsHead.next <-- nothing
pointsTail <-- allocate node
strcpy(pointsHead.playerNa
pointsTail.playerPoint <-- 0
pointsTail.next <-- pointsHead
pointsHead <-- pointsTail
pointsTail <-- pointsHead.next
as you my know different software dev firms may write there pseudocode different. There is no set standard for it.
Oh ya you should really write psuedocode first then write your code, it will be good practice for you when you get to the REAL job.