Search Results

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: tirivamwe ; Forum: C and child forums
Forum: C Oct 24th, 2006
Replies: 8
Views: 1,823
Posted By tirivamwe
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
Posted By tirivamwe
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
Posted By tirivamwe
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
Posted By tirivamwe
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
Posted By tirivamwe
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
Posted By tirivamwe
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
Posted By tirivamwe
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
Posted By tirivamwe
thank you so much, it is now saving in the list.
Forum: C Oct 22nd, 2006
Replies: 4
Views: 1,459
Posted By tirivamwe
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
Posted By tirivamwe
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
Showing results 1 to 10 of 10

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC