Top "Cs50" questions

Code questions pertaining to Harvard's self-study introductory.

What do .c and .h file extensions mean to C?

It's all in the title; super-simple I reckon, but it's so hard to search for syntactical things anywhere. These are …

c file-type cs50
C - Undefined symbols for architecture x86_64 when compiling on Mac OSX Lion

I'm getting some problems on compiling a very very simple name.c file on Mac OSX Lion. Now, I started …

c macos osx-lion x86-64 cs50
*Beginner* C: incompatible integer to pointer conversion passing 'char' to parameter of type 'const char *'

I'm trying to convert each letter in a string to it's ASCII number. Using int letter = (atoi(ptext[i])); gives …

c cs50
Include an external library in C

I'm attempting to use a C library for an opencourseware course from Harvard. The instructor's instructions for setting up the …

c cs50
Write a program in C to apply Luhn's algorithm for credit card validation

I am completely new to C (and all forms of programing...) and following the CS50 class this year. I'm having …

c algorithm cs50 luhn
warning: implicit declaration

I have an assignment I am supposed to turn in for my computer science MOOC CS50. In it I have …

c cs50
"Incompatible integer to pointer conversion"

The following program is refusing to compile because of these errors: vigenere.c:52:31: error: incompatible integer to pointer conversion assigning …

c pointers compiler-errors cs50 incompatibletypeerror
How can I multiply a string in the C language?

I want to "multiply" a string by an int variable that the user inputs. #include <cs50.h> #include &…

c cs50
tolower() Function not Working in C99

I am using the CS50 appliance from Harvard and trying to make a character lowercase. I am trying to use …

c cs50 tolower
Why is implicit declaration of gets() not allowed in C99?

I am starting to learn programming in C language the book I am refering to code shows some source code …

c clang c99 cs50 gets