Hot answers tagged

3 votes

How was get_string() function written in C?

You can find the current cs50.c and cs50.h files in /usr/src/libcs50 in the IDE. Suggest running update50 to make sure that you have the most current versions as it does get updated from time to time. ...
Cliff B's user avatar
  • 68.7k
1 vote


string name = get_string ("What is your name?\n"); This line needs to be inside the main function. It also needs to be before printf("hello, %s\n", name); this line, since you can'...
Llenk's user avatar
  • 744
1 vote

How to get list of function signatures from header files

It is difficult to respond in a simple way, without going into great depths we can find very good documentation in man pages: We can find documentation of the standard head files by typing in the ...
MARS's user avatar
  • 5,169
1 vote

How to install SPL libraries on ubuntu?

Just for reference, the problem was that the OP installed Oracle's JDK manually, and the directories containing the JDK's programs were not on root's PATH. That's why sudo make install failed, when it ...
kzidane's user avatar
  • 17.7k

Only top scored, non community-wiki answers of a minimum length are eligible