Questions tagged [include]
The include tag has no usage guidance.
7 questions
0
votes
1
answer
9
views
No such file or directory #include <cs50.h>
sorry to bother"unknown type name "string"], but I was trying again to follow the video instructions, and error again: "unknown type name "string", and another error: No ...
0
votes
1
answer
96
views
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 ...
0
votes
1
answer
394
views
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>?
1
vote
2
answers
6k
views
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 ...
0
votes
1
answer
228
views
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 ...
0
votes
1
answer
845
views
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 ...
0
votes
1
answer
58
views
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 ...