All Questions
3 questions
0
votes
1
answer
116
views
:( handles lack of key failed to execute program due to segmentation fault
The following piece of code I've written for pset2/caesar produces a "segmentation error" when there is a lack of key (when no command-line argument is provided). I don't know which line or ...
0
votes
1
answer
473
views
Pset2 Readability test fail "complex single sentence" Grade 9 instead of Grade 8
When using check50 or inputting the provided texts, my program passes all but one test; the "complex single sentence" test returns a Grade 9 instead of Grade 8 (Coleman-Liau index returns 8.785455 and ...
0
votes
2
answers
68
views
pset2 readability. cannot compile although int is declared and code is complete. could someone please look into?
#include<cs50.h>
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<math.h>
int main (void)
{
string text=get_string("text:\n");
// to count ...