@salem
i corrected the linked list head
but i stil get segmentation fault when i applied whiteflags code
Type: Posts; User: darksifer
@salem
i corrected the linked list head
but i stil get segmentation fault when i applied whiteflags code
@whiteflags
i did what u mentionned above. the program displays nothing. output is null and i get segmentation fault
hello all,
am doing an assignment to store records in a text file. i have successfully done the writing part to the file but i got trouble reading from the file in the proper format.
when savin the...
@ grumpy & @ salem Thank you both. I answered the question as i understand it. but was not sure. As you said the question is poorly worded and that made me wonder. i just needed someone to tell me...
hi everyone. i got class test today and i think this question is pretty messed up or am stupid and ignorant. i can write the program in my way but this question i cant understand. i dont need the...
@whiteflags i was in a hurry. behind schedule. will arrange the code later. thank you
Thank you kmdv. will try it tomorrow since its kind late here.
hi everyone, can someone tells me whats wrong with this piece of code. i cant figured it out. i get an error: lastname was not declared in this scope in structure.h (in function: newEntry @ line }...
LOL. ok the code below is a small function from the main program. the function is supposed to read from a text file. then read each text from the text file and puts it in an array (i was thinking 2D...
hello everyone. can some one tell me whats wrong in this code. thanks
void charCount(FILE *fp)
{
int wordArray[noOfWords][noOfChar];
int nChar = 0;
int ch;
int longestWord =...
hi again,
i want to write a program that reads text from a text file and pass the text to 2D array. and
text in the file is as follows (there is no order):
breaking benjamin lifehouse good...
hi everyone. the program is rather big for me to code but am trying my best. the program does a lot of things from counting words finding longest word and so on. i am tackling each problem separately...
wow, how did i miss that. thank you.
Hello everyone,
i am writing some codes to encrypt text using ASCII codes. but i get segmentation fault at the Encryption menu when validating choice. the coding are simple. am new at C. it is stil...
ok guys. i wil see that. its late here so am going to bed. will try everything you stated tomorrow and will let you know.
many many thanks.
@jimblumberg heres the code
#include <stdio.h>
#include <string.h>
#define TEXTSIZE 256
am behind schedule i got other assignments in other modules.
lol. am stil learnin friends. i know there are many mistakes. nut i begin to learn C yesterD. i corrected the twice opening of file. i corrected what jimblumberg stated. i removed the ampersand. the...
Hello all. this is a great site for programming and thanks for all people who help. so am writing a C program in linux using gcc and gedit. the program is not yet completed. and i am short of time....