- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
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 … | |
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( " … | |
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 … | |
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"); … | |
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 = … | |
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 … | |
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 … | |
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 … |
The End.