Search:

Type: Posts; User: aleflow7

Search: Search took 0.00 seconds.

  1. Thanks for everything!

    Thanks for everything!
  2. Ok, I've only changed simpleEncrypt, medium and...

    Ok, I've only changed simpleEncrypt, medium and ultra are still like when I started.
    Header:

    /*!
    * Replaces each letter in the character array wih its next lexicographical
    * letter.
    * ...
  3. Ok, my main code looks like this now. Also for...

    Ok, my main code looks like this now. Also for some reason when I input 's' as a encryption type it outputs
    Original word is: good
    Segmentation fault
    But when I try to do 'm' or 'u' the program...
  4. Ok, now I'm getting a warning: passing arg 1 of...

    Ok, now I'm getting a warning: passing arg 1 of 'simpleEncrypt' makes pointer from integer without a cast. What does this mean? And when I run the program I still get a segmentation fault. I think my...
  5. So you're saying to have something like: void...

    So you're saying to have something like:

    void simpleEncrypt(char input[])
    {
    int i, len = strlen(input);
    //for loop goes through all the characters in input and adds 1 to the ascii value
    ...
  6. Thanks for the help again, but I can't seem to...

    Thanks for the help again, but I can't seem to figure this out. If I am using a string (char*) and I increment a value in the string (string[0]++) am I incrementing the ASCII value for the char? Or...
  7. Sorry for the weird wording, it appears my...

    Sorry for the weird wording, it appears my problem had to do with the way I was getting the input. But now I get a segmentation fault when I run. Could you guys help me spot where I am causing this?...
  8. Thanks a lot guys! I finally got it to compile so...

    Thanks a lot guys! I finally got it to compile so now I have a lot of debugging to do!
    What I think I'm doing when I do.

    input[i] = (int)input[i];
    input[i]++;
    Is taking the ascii value...
  9. Ok, so to compile the whole file would I do: gcc...

    Ok, so to compile the whole file would I do:
    gcc -S lab2.c
    gcc -c lab2.s
    gcc encrypt.c lab2.c
    gcc lab2.o
    gcc -o lab2 lab2.o
    and then finally run it with lab2?

    Thank you so much!
  10. Please help! Novice coder trying to figure c out.

    I'm new to C and need some help figuring out this error.I've only just started coding my main function but decided to compile it to test it; I get this error.
    Undefined first referenced
    ...
Results 1 to 10 of 11