Well, my problem is..tracing it for around 1hr.. V is suppose to be connected to X, but after it loops back the outer loop, V will suddenly be pointing to A O_O
Type: Posts; User: givmefive5
Well, my problem is..tracing it for around 1hr.. V is suppose to be connected to X, but after it loops back the outer loop, V will suddenly be pointing to A O_O
void SortRecipe(Recipe **pFirst){
int swap;
Recipe *pHead,*pTail,*pRun,*pLast;
pRun=(*pFirst)->pNext;
pLast=*pFirst;
do{
pTail=*pFirst;
pHead=*pFirst;
Does this mean i got no way to access the pLink? well since this would be sorting of the linked list, u got other way?
I've heard that hiding a pointer type in a typedef is a bad practice, but this was the assignment given to us. Im having a hard time accessing the lists and "copying" the list. How to copy the pFirst...
edited everything you guys said to my program, thank you :))
Edited that part, thanks
Is my program logically correct, the accessing of the last part to be null byte. thanks. :))
My program needs to have at least 15instructions with at most 70 string length. It should be declared inside a structure,
typedef char string70[71];
typedef struct{
string70 instruct[15];...
int foodcalorie (int *num,struct recipe **foodcal)
{
char ans='Y';
system("cls");
while(ans=='Y' && *foodcal!=NULL)
{
system("cls");
...
Please close the thread. Got my answer through research. Sorry and thank you.
printf("Do you want to activate 'Cheat Feature'? \n If Yes [Y], If No [N]\n");
scanf("%c",&cheat);
cheat=toupper(cheat);
if(cheat=='Y')
printf("Cheat...
I guess that's it..it's been working good now. Thanks..but..why was the space a big thing @_@
//Ant, Bear, Cat, Dog, Emu, Goat, Lizard, Monkey, Parrot, Rabbit, Snake, and Tiger//
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
char LetterSwap(char a)//swaps invalid randomed...