Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~9K People Reached
Favorite Forums
Favorite Tags
c x 37
c++ x 1

8 Posted Topics

Member Avatar for hariza

Hi guys, If i have a file like the one below what would be the best/easiest way to sort the words in alphabetical order. thanks. with an equal mix of biosolids to make the compost Sawdust is on their greens Compost applied properly will enhance growth of grass flowers shrubs …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for hariza

Hi Guys, I have written the below code but still need to remove the null terminator at the end of each string but don't know how. I've try strtcpy , srtcncpy but doesn't work. Any ideas would be highly appreaciated. thanks. [code=c] while (!feof(fp)) { fgets(line,LINE_BUF,fp); count++; strcat(string1,line); printf( " …

Member Avatar for hariza
0
5K
Member Avatar for hariza

Hi Guys, I need to be able to print something like: [B]Player 2: Enter a word (1-20 char,blank line to quit):[/B] and then right after I have entered the word the output should look like : [B]Player 2: Enter a word (1-20 char,blank line to quit): apple[/B] My printf looks …

Member Avatar for John A
0
143
Member Avatar for hariza

Hi Guys, I wonder if someone can help me out with this. I'm running the same C code in diffferent platforms (windows/unix) but getting different result. For instance the code is: [code=cplusplus] fgets(line,LINE_BUF,fp); while (!feof(fp)) { Len=strlen(line) - 1; if ( (newNode=malloc(sizeof(ListNode))) == NULL) { fprintf(stderr,"\nListInsert: Memory Allocation failed! Aborting.\n"); …

Member Avatar for Dave Sinkula
0
151
Member Avatar for hariza

Hi Guys, I'm trying to remove all the special characters within a file using the code below but I need to remove also the doble quotes " but what should I use to enclose the characters. I've been looking but can't find. Thanks. while (sep != 0) { sep = …

Member Avatar for hariza
0
546
Member Avatar for hariza

Hi Guys , If I have a file compouse by words one per line how can I get all the words to put them together and have them separated only by one space. Also how can I make sure I'm extracting only words and not numbers or special character. I …

Member Avatar for Ancient Dragon
0
87
Member Avatar for hariza

Hi Guys, I know this will be easy for anyone here and it might take 2 minutes to right the code. I wonder if someone can help me to right a loop using strtok() to be able to extract the words form a string like "various systems analyze the model …

Member Avatar for WolfPack
1
1K
Member Avatar for hariza

Hi Guys, Just wondering I'm newbie writing C programs and I don't expect to get the entire code here but I was allocated a task/assigment to create a C program that emulates a search engine so I was given a bunch of text files that contains HTML data and I …

Member Avatar for hariza
1
92

The End.