Timeline for Expression result unused in Vigenere
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 12, 2014 at 5:38 | comment | added | Azurespot |
Hey I fixed it!!! Turns out my error was in some argv[1] code I had. I tried to use isalpha(argv[i]) to make sure the key entered is only letters, but that would not check for the whole string (which is what our key is in this exercise), it would only check for one character in the key. So I had to create a for loop to iterate through argv[] , using strlen(argv[1]) as my middle loop condition, so it would check each character separately.
|
|
Aug 12, 2014 at 5:15 | comment | added | Azurespot | Ah thanks, I knew it had to do with memory, but didn't realize it was an empty memory issue. Lol, and yes... one problem leads to the next. ;) | |
Aug 12, 2014 at 4:46 | comment | added | sinister | That's the most horrible thing in a programmer's life. Hint-> You accessed an empty memory location. Good luck. | |
Aug 12, 2014 at 4:34 | comment | added | Azurespot |
Thanks sinister! I was not aware I could not have 2 expressions separated by a comma. I saw that you can have that in the 1st and last condition, e.g. int i = 0, j = 0; and here too i++, j++ , so I assumed it was okay to have it in the middle. But thanks, I changed it an && and that fixed it. Now I'm having a new problem though, a Segmentation fault (core dumped) , so I will have to figure out that one. :/
|
|
Aug 12, 2014 at 4:31 | vote | accept | Azurespot | ||
Aug 12, 2014 at 4:30 | history | edited | sinister | CC BY-SA 3.0 |
added 141 characters in body
|
Aug 12, 2014 at 4:23 | history | answered | sinister | CC BY-SA 3.0 |