Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
60% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for jodzjcm

if( strcmp(z->Rev->x.y,z->x.y) > 0) In this statement i want to swap the pNext and pPrev. How will be the assignment look like?

Member Avatar for Ancient Dragon
0
94
Member Avatar for jodzjcm

How to sort alphabetically the link list? Example: pHead B pSecond A pLast C Result: pSecond A pHead B pLast C

Member Avatar for Ancient Dragon
0
223
Member Avatar for jodzjcm

I have a problem. If the text is too long in the text file...the program crashes. How to solve it?

Member Avatar for WaltP
0
146
Member Avatar for jodzjcm

If the user inputs 1 the program will automatically create a new node..How? the maximum that I can do is 2..how to add node? Code blocks are created by indenting at least 4 spaces ... and can span multiple lines def *New(def *pHead){ def *temp; temp = malloc(sizeof(def)); pHead->pNext = …

Member Avatar for TrustyTony
0
145
Member Avatar for jodzjcm

It doesn't read the first line of the text file. Why? pFile = fopen(user, "r"); if(pFile == NULL) printf("File doesn't exist!\n"); if(pFile != NULL){ while(fgets(line,80,pFile) != NULL) { fgets(search,1000,pFile); printf("%s\n",line); . . . . .

Member Avatar for zeroliken
0
127
Member Avatar for jodzjcm

I have this code: Note: boom.ok[1][0] has the character "a" while boom.ok[[tempr[0]][0] contains the string "ay". [CODE]if ( strcmp(&boom.ok[1][0],&boom.ok[[tempr[0]][0]) == 1) printf("Hello"); if ( strcmp(&boom.ok[1][0],&boom.ok[[tempr[0]][0]) == 0) printf("Hello");[/CODE] None of these statement prints hello. Why?

Member Avatar for Ab000dy_85
0
91
Member Avatar for jodzjcm

[CODE]while ((userinput[0]==userinput[1]||userinput[0]==userinput[2]||userinput[0]==userinput[3]||userinput[0]==userinput[4])&&(userinput[2]==userinput[1]||userinput[2]==userinput[2]||userinput[2]==userinput[3]||userinput[1]==userinput[3])) [/CODE] If the user types ABCC, the program must show double letter....but sometimes the code up there doesn't work correctly....suggestions or fix?

Member Avatar for jodzjcm
0
83
Member Avatar for jodzjcm

[CODE]void storedouble(int *determiner, char *line, char *line2, char *line3, char *line4, char *mem,char *mem2,char *mem3,char *mem4) { char temp[4]; //store nya sa temp temp[0]=*line; temp[1]=*line2; temp[2]=*line3; temp[3]=*line4; temp[0]=*mem; temp[1]=*mem2; temp[2]= *mem3; temp[3]= *mem4; printf ("%c",temp[0]); } [/CODE] THIS FUNCTION IS TO TRACK THE PREVIOUS USER INPUT....BUT IT WONT WORK..PLEASE HELP …

Member Avatar for WaltP
0
197
Member Avatar for jodzjcm

{ char user[]={'\0'}; char* animal_holder[12]={"Ant","Bear","Cat","D… printf("You have to guess what %c%c%c%c stands for.\n",animal_holder[a][0],animal_holde… printf("Enter your guess:"); scanf("%s",user); if(user==*animal_holder) printf("Your choice is %s",user); } What are the errors?

Member Avatar for Narue
0
138
Member Avatar for jodzjcm

char animal_holder[12]={'A','B','C','D','E','… char* animal_master[12]= {"Ant","Bear","Cat","Dog","Eagle","Gan… I've used the srand and rand function to get randomly a letter from the animal_holder array. Now if the program inputs ABCD....ABCD should be equivalent to ant bear cat dog from the string animal master....HOW TO DO THAT????

Member Avatar for imolorhe
0
122