Search:

Type: Posts; User: Dude22

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    15,056

    Don't worry, my career choice, leans towards...

    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...
  2. Replies
    21
    Views
    15,056

    Weird

    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...
  3. Replies
    21
    Views
    15,056

    ok, here is my code now... I was not able to...

    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...
  4. Replies
    21
    Views
    15,056

    I thought all hope was lost..

    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...
  5. Replies
    21
    Views
    15,056

    Help PLEASE!! the deadline is fast approaching,...

    Help PLEASE!! the deadline is fast approaching, and I can't figure this out!
  6. Replies
    21
    Views
    15,056

    ok, that fixed half my errors, but I still have...

    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...
  7. Replies
    21
    Views
    15,056

    Also, there is another program that goes with...

    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...
  8. Replies
    21
    Views
    15,056

    sorry, that isn't all of my code, here it is,...

    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
  9. Replies
    21
    Views
    15,056

    It needs to be done tonight! Do you have any...

    It needs to be done tonight! Do you have any recommendations for a different way to do it???
  10. Replies
    21
    Views
    15,056

    converting from a const char to a char.

    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...
  11. Thread: Vigenere cipher

    by Dude22
    Replies
    2
    Views
    2,682

    I totally agree with that Adak said, I myself...

    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...
  12. Replies
    113
    Views
    15,174

    Ok, so I have been working on getting this thing...

    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...
  13. Replies
    113
    Views
    15,174

    You actually CAN change the .h file.... Here is...

    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...
  14. Replies
    113
    Views
    15,174

    I understand that, so I want to use a global...

    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???
  15. Replies
    113
    Views
    15,174

    Testing if unload worked or not, is part of the...

    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...
  16. Replies
    113
    Views
    15,174

    so is my current code for unload correct???...

    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)
  17. Replies
    113
    Views
    15,174

    There is no main(), all the program does is...

    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....
  18. Replies
    113
    Views
    15,174

    OK, so I have been working on getting the...

    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...
  19. Replies
    113
    Views
    15,174

    How do I carry variables across functions????

    How do I carry variables across functions????
  20. Replies
    113
    Views
    15,174

    I have been fiddling around with the 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,...
  21. Replies
    113
    Views
    15,174

    I may be screwing it up, but I am learning a TON...

    I may be screwing it up, but I am learning a TON in doing so! And I am, actually, grasping the basics.
  22. Replies
    113
    Views
    15,174

    Ok, so I have made all the changes you...

    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.....
  23. Replies
    113
    Views
    15,174

    I'm not sure if I should change the name of check...

    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...
  24. Replies
    113
    Views
    15,174

    Ok, so I have made the changes, including...

    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...
  25. Replies
    113
    Views
    15,174

    Sorry, got to go, I will check back tomorrow...

    Sorry, got to go, I will check back tomorrow morning, Thanks SO much for your help so far!!!
Results 1 to 25 of 73
Page 1 of 3 1 2 3