Don't worry, my career choice, leans towards electrical/mechanical engineering. I am in this course, because I want to simply understand basic programming.
As a wise man once said: Programmers...
Type: Posts; User: Dude22
Don't worry, my career choice, leans towards electrical/mechanical engineering. I am in this course, because I want to simply understand basic programming.
As a wise man once said: Programmers...
weird, It is now going through every word, although it is checking each word 2 times.... Also it says EVERY word is not spelled correctly, even though some of them are. I believe the second error...
ok, here is my code now... I was not able to remove the newline, could you link to the manual that you were referring to, as the only fgets manual I could find, shown nothing about removing the...
Hi everyone,
I would like to start by apologising, I should not have expected you to drop everything you were doing to help me. :o
I have also learnt a valuable lesson in scheduling... I left...
Help PLEASE!! the deadline is fast approaching, and I can't figure this out!
ok, that fixed half my errors, but I still have these:
dictionary.c:38:29: error: incompatible integer to pointer conversion passing 'char' to parameter of type 'const char *';
take the...
Also, there is another program that goes with this, they are compiled together with a makefile, here that program is:
#include <ctype.h>
#include <stdio.h>
#include <sys/resource.h>
#include...
sorry, that isn't all of my code, here it is, although I don't know how it will help:
include <stdio.h>
#include "dictionary.h"
#include <string.h>
#include <stdlib.h>
#define MAXWORDS 26
It needs to be done tonight! Do you have any recommendations for a different way to do it???
Hi,
I need help with converting a const char to a char. That is part of a larger function that is a part of a spell checker, this function is supposed to compare "word" with every word in the...
I totally agree with that Adak said, I myself made a Vigenere cipher a few months and it is actually a lot simpler then you may think! If you are doing cs50, as I was when I wrote the program, then...
Ok, so I have been working on getting this thing working, and I think I am close, I have commented out the "unload" function for now, as It was giving me some problems, but I think the problem(s) are...
You actually CAN change the .h file.... Here is part of the specification for this pset:
You may not alter speller.c.
You may alter dictionary.c (and, in fact, must in order to complete the...
I understand that, so I want to use a global variable for *fp but when I did that it only caused more problems.... Is global variables the right way to go???
Testing if unload worked or not, is part of the problem set's speck.
I didn't declare *fp in that snippet, but in an earlier function that loads. (see code I posted 2 hours ago)
This is the...
so is my current code for unload correct??? because my one error is coming from it:
dictionary.c:115:16: error: use of undeclared identifier 'fp'
if(fclose(*fp)==0)
There is no main(), all the program does is define functions that are called elsewhere.
I am not quite sure what you are getting at, I need fp in both load and unload....
OK, so I have been working on getting the variables to carry across the different functions. I looked at many possible ways to do this, including pointers, but ended up deciding on.... GLOBAL...
How do I carry variables across functions????
I have been fiddling around with the functions, but I cant get them to work, without getting these errors:
dictionary.c:22:6: error: conflicting types for 'check'
bool check(const char* word,...
I may be screwing it up, but I am learning a TON in doing so! And I am, actually, grasping the basics.
Ok, so I have made all the changes you recommended, BUT I am not so sure about changing the name of the functions, as they are called in speller.c.... Also, they are called in the .h file.....
I'm not sure if I should change the name of check (or any function), as it is called in the supplied program.... Below is the .h file
#ifndef DICTIONARY_H
#define DICTIONARY_H
#include...
Ok, so I have made the changes, including changing the DLENGTH to 45 (as when I read the instructions again, it actually says that the dictionary that will be used to test the program, may have words...
Sorry, got to go, I will check back tomorrow morning, Thanks SO much for your help so far!!!