My program is working correctly but all checks on the Gradebook have failed.
I think problem is in printf
, but what is the reason?
I just print a few words and after that at new line the program will get a string.
int main (int arg , string arv [])
{
if (arg != 2)
{
printf ("Usage: ./ceasar.c key \n");
return 1;
}
int k = atoi(arv[1]);
int low_let = 'a';
int up_let = 'A';
printf("Enter string: \n");
string s = GetString();
string encr = s;
for (int i = 0; i < strlen(s); i++)
{
if ( isalpha(s[i]))
{
Some clarification: I have a different problem than in I can't get any grade on Gradebook because some programs were successfully checked:
and my test results look good:
jharvard@appliance (~/Dropbox/pset2): ./caesar 1
Enter string:
a
b
jharvard@appliance (~/Dropbox/pset2): ./vigenere BaZ
Enter string:
BaRFoo
CaQGon
Problem with check50 was solved after running command update50 more details can be found here: Why does check50 fail with status code 400?