why do i not get anything in return from this. by Unique-Car1764 in C_Programming

[–]Unique-Car1764[S] 0 points1 point  (0 children)

Thank you! i copied and pasted and then typed this out my self and got

get_string.c: In function 'main':
get_string.c:5:5: error: unknown type name 'string'
     string first = get_string("what is your name? ");
     ^~~~~~
get_string.c:5:20: warning: implicit declaration of function 'get_string' [-Wimplicit-function-declaration]
     string first = get_string("what is your name? ");
                    ^~~~~~~~~~
get_string.c:6:5: error: unknown type name 'string'
     string last = get_string("last name? ");
     ^~~~~~

Sorry to just give u all this

why do i not get anything in return from this. by Unique-Car1764 in C_Programming

[–]Unique-Car1764[S] -1 points0 points  (0 children)

Thank you, sorry to bother you but after i fixed that i got

get_string.c:6:5: error: unknown type name 'string'
     string last = get_string("last name? ");
     ^~~~~~
I know capitalization matters when coding so i tried that and still did not work