Forum: C Oct 24th, 2006 |
| Replies: 8 Views: 1,823 here is the whole program:
line in bold when debugged is giving the value of currunt->words as Could not watch this variable
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>... |
Forum: C Oct 24th, 2006 |
| Replies: 8 Views: 1,823 temp has value of : "is"
check->value has avue of: Could not watch this variable |
Forum: C Oct 24th, 2006 |
| Replies: 8 Views: 1,823 i tried that but when debugging i am having this error
An Access violation(segment fault) raised in your program.
the line of code crushinhg the program is: |
Forum: C Oct 24th, 2006 |
| Replies: 8 Views: 1,823 the function first search a word from the linked list. if found it then increment the numWords (number of words in listfor that word) and if not found it shoud create a new node for the word.
the... |
Forum: C Oct 23rd, 2006 |
| Replies: 8 Views: 1,924 i finally got it right my mistake was here:
int getCount(char word)
it should be:
int getCount(char word[30]) |
Forum: C Oct 23rd, 2006 |
| Replies: 8 Views: 1,924 herer is the code of the list:
struct doc_words
{
char words[30];
struct doc_words *next;
};
and the code of the function: |
Forum: C Oct 23rd, 2006 |
| Replies: 8 Views: 1,924 i have this line of code and want to compare the word from the linked list with the one supplied by user.
the code is:
if (strcmp(p->word,word)==0)
and i am having this error:
passing... |
Forum: C Oct 22nd, 2006 |
| Replies: 4 Views: 1,459 thank you so much, it is now saving in the list. |
Forum: C Oct 22nd, 2006 |
| Replies: 4 Views: 1,459 here is code
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <string.h> |
Forum: C Oct 22nd, 2006 |
| Replies: 4 Views: 1,459 can someone please help me to write a code in c to do the following:
1)read words from a file
2)store the words in a linked list
3)read the words and display
4)count the number of words in list |