Skip to main content

Questions tagged [include]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

In pset3, why do we write #include "bmp.h" and not #include <bmp.h>?

In pset3, I noticed that while cs50.h and stdio.h were included the usual way we encountered so far, bmp.h was included differently. I'm guessing bmp.h is not a part of the standard header files that ...
curious4ever's user avatar
0 votes
1 answer

Why do we write #include "structs.h"?

Why do we have to include the header structs.h every time we use structures? Why it should be included as #include "structs.h" not as #include <structs.h>?
Nitish Panda's user avatar
1 vote
2 answers

nanosleep function Implicit deceleration

I am working on my Final Project and I need to use the nanosleep function which suspends my program for a specified number of seconds. I tried to test this function first before using it in my actual ...
A.Emad's user avatar
  • 176
0 votes
1 answer

Unexpected errors while assigning variables

I just began taking the CS50x course, and while tweaking the programs used on the lectures I came accross a very unpleasant obstacle. I followed the exact same steps and recreated the exact same ...
Matheus Fonseca's user avatar
0 votes
1 answer

String error #include <cs50.h>

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 ...
RicochetRiot's user avatar
0 votes
1 answer

How does #include work?

I'm curious as to how including libraries via #include and #include actually work. These libraries do not seem to be already saved on our appliance (I may be mistaken). So how does geddit/clang ...
JK140's user avatar
  • 101