0

I am getting:

error: unknown type name 'string'; did you mean 'string'? string name = "Seth";

I am using VMware with the cs50 appliance, I ran update50. I've tried running it in both gedit and terminal. Same error everytime.

My code:

#include <cs50.h>
#include <stdin.h>

int main(void)
{
    string name = "seth";
    printf("hello, %\n", name);
}

Thanks!

Screen Shot

2
  • Can you post a screenshot of your appliance window showing the error and your code?
    – curiouskiwi
    Commented Sep 4, 2015 at 23:16
  • Yes I just added one. Commented Sep 5, 2015 at 1:17

1 Answer 1

1

Check your spelling of string. You spelt it as stirng it is spelled string

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .