(English (Auto-Generated) ) C Programming
(English (Auto-Generated) ) C Programming
just c
when done
path next
then install
or a couple minutes
two extensions c
install that
code
folder
then add
the folder
helloworld.c
code.visualstudio.com
command
so click next
x8664
relevant later
then system
go to environment variables
okay
task so go to a terminal
everything
that again
future so go to file
auto save
brackets
need that
i like pizza
it's really
good
like
fellow bro
[Music]
gcc
third step a
exe enter
type
comment
be a multi-line comment
this
is a
multi-line
comment
line character
then maybe a7
tab 8
quoting somebody
i like pizza
abraham
lincoln
and pizza
escape sequence
as i'll put
fellow bro
value
is variable x
three
so this is
string
name
grade printf
your average
grade
is
grid
average grade is c
percent f
print f
your gpa
is
percent f
then i'll add a new line character
value
that would be
zero
32
768 to positive 32
integer
unsigned integer
is percent lld
so
chars
doubles booleans
item two
item three
item three
number
would be
3.1415
say x plus y
two
float
int z equals x
modulus y
and if we display z
could say x
plus plus
would be six
times four
five
percent d
variable edge u
are
percent d
prompt
printf
what's your
printf
hello
percent s
easier to read
spaces
f gets
parentheses
array
include
string dot h
hit enter
fellow bro
statement
within an integer
let's round
3.14
3.14 rounded is 3.
3.14 rounded up is 4.
is
from zero
negative 100
logarithm of a number
log 3
is
1.098612
cosine
and tangent
3.14159
type that in
line
enter
radius
circumference
specifier is lf
comma circumference
area
so area
10 meters
the circumference is
and b
print f
enter
side
squared
so we will set c
times a
plus b times b
side
let's try it
four
fellow bro
to
equal to
program do something
statement
born yet
six
something else
just to demonstrate
else if
message
parentheses
case
colon
an if statement
let's print
perfect
so case b
casey
you did
okay
case d
case f
you failed
letter grades
so let's print
f you failed
breaks
grade
grades
so the reason that we have breaks is to
need
user input
printf is the
temperature
in
or
characters
which is an ampersand
unit
check to see
if unit
else if
unit is equal to f
in celsius
currently in fahrenheit
so format specifier c
f or c
so f
lowercase t
function
to c celsius
in celsius
point number
temp
temp
times
9 divided by 5
plus 32
printf
the
temp
in
fahrenheit
is
so see
fahrenheit
variable
temp equals
temp minus 32
times 5
[Music]
celsius
the temp
in celsius is
which it is
fellow bro
operator
or divide
double num2
enter an operator
multiplication or division
enter
number one
then scanf
is lf
num1
switch
switch
four symbols
addition
result
our result
result
lf
multiplication
3.14
that is
real quick
is
is 13.19
3.14
divided by 4.20
is
0.75
calculator program in c
calculator program in c
and or
something
else
the weather is
weather is good
temp
so if temp is at 1000
top stdbool.h
then let's add another condition
or equal to zero
this statement
true
fellow bro
condition
the or logical
fellow bro
message
so if sunny
is equal to true
cloudy outside
so this does work it's sunny outside
to be false
well then
fellow bro
it like this
one section
three times
with char
so printf
return x times x
calling function
statement in c
and four
max is
check to see if
x is larger than y
if so then return x
else
return
is four
we have a condition
question mark
so hello name
hello function
in a name
behavior
this function
void
character array
prototype
function of prototypes in c
function
name
over
an integer
common function
if statement
in c
int
times
seven nine
in c
instead
pass in name
-1
currently
enter
enter
an empty string
equal to zero
yell at them
you
it again
your name no no no no
okay i give up
loop
enter a number
check to see if
number
to sum
sum
condition
we will exit
code once
of another loop
or equal to columns
then increment j by one for the time
so printf
columns five
symbol
is c
scanf again
displaying an integer
use an if statement
so
if i is equal to 13
statements in c
15
so printf
array name
dollar sign
dollars
is fifteen three
is twenty five
prices
introduction to arrays in c
zero
statement
our array
dollar sign
is going to be in bytes
prices
prices divided by
so 48 divided by
eight equals six we will iterate through
later on
is int
these
giant comment
would be
columns
this as long as j
d is fine
to be i
columns
so we will say
so we have rows
and columns
named cars
tesla
copy
pass in my array
loop
size of
statement
index of i
strings in c
and y
let's assign
temp is equal to x
x equals y
water
of x
over to temp
copy y
over to x
and string
copy
temp over to y
it contains water
happens
size
an array of integers
in two arguments
our array
and a size
if it isn't we do nothing
so we need an if statement
if array
at index of j
one
array
at index of j
of j plus one
size
minus i
so for
increment i by one
crossed
to characters
in c
members
specifier
are structs in c
character
is a struct
a password of 12 bytes
type struct
user
values
of these members
characters
student 2
student 3
array of structs
so for
elements
is
and we will use the member axis operator
line
students at index of i
dot
what we have
dot 2
array of structs in c
say day
week
today is sunday
display today
what today is
is equal to 1
or
today
is equal to 7
party time
of seven
real quick
time
and six
one
this to 20.
so 288
uppercase
will be one
and int
what we can do
to
min as an offset
between
min
and max
everything's working
displaying
answer
enter a guess
to see if guess
too high
know
to
hi
else if
guess
correct
plus plus
so we will print
the answer
this is an integer
answer
so
guesses
guesses
let's run it
how about 69
that's still too low so between 69 and
75
maybe 72
and 75
73
2 low
maybe 18
2 low 21
questions
array
like
care
character array
char
options
questions
question
be a one-dimensional array
so char
answers and the size will be three
my quiz are b
number
of
questions
sizeof operator
questions
player's score
zero
questions
so printf
format specifier
with creating c
question
possible options
so four
tricky
fourth string
i times four
2d array of options
j is less than
times 4
four strings
options at index of j
it works
in a guess
let's say a
buffer
question two
okay
let's say a
input now
to our guess
answer so if else
guess
correct
plus
printf
and display
final score
wrong
so d
would be b
three
a dennis ritchie
and b
so six is
to do is set z equal to x
and y
let's print z
back to zero
equal to x
or y or is represented by a single
vertical bar
stay at zero
as well
fourteen
that
equals x
exclusive or y
we will set z
same
so
shift left
yep
there you go
doubles
paste it
is three
operators in c
and char c
integer
is within bytes
going to pass in a
of memory is a byte
specifier is p
ab
and c
long time
memory
to declare
char a
the size of b
age
value of age
ph
at
stored
address
address
address
my pointer to char
pointer
size of age
will be in
pointer as an integer
the actual size of our pointer is going
hexadecimal address
argument to a function
to declare a function
void
age
you
are
age years
old
variable
in a pointer too
pointer age
and we need to change the parameter from
an integer to a pointer
indirection operator
to de-reference
before
null
this
we have a new text file within the same
so if the mode is w
document
spongebob squarepants
text
exist
file
was deleted
successfully
printf
deleted
says deleted
not there
go to properties
double backslashes
location on my desktop
and here's that file test.txt and it
poem.txt
are red
rockin
everywhere
file
our buffer
top
unable to open
file
of this file
fellow bro
free spaces
char
check winner
winner
a body
letters uppercase
winner
this function
at index of i
space
effectively clearing it
board
a character a space
a vertical bar
space
space
character
a new line
three dashes
a vertical bar
paste it once
one two
two zero
two one
two two
printf
new line
to an empty space
function
function
within the check free spaces function
i plus plus
empty space
return
free spaces
move
to move first
statement
we will enter
row number
operator x
technically
so using an if statement
at index of x
and y
another character
know
invalid move
at index of x and y
write do
while
within there
is if our board
at index of x
function
winner function
conditions
int i
elements
character
so board at index i
and one
and paste it
indices around
so if board at index 0
check diagonals
is equal to
zero
this
paste it
is equal to board at
middle and
no winner
a winner
computer
computer's move
function
numbers
pass in time
and 2.
x equals
modulus three
even open
so board at index of x
and y
available
a draw
you win
else if
winner is equal to computer
you lose
it's a tie
board
and print
winner
is
and one
column three
two
two one
one two
two two
response
copy it
delete it
loop
create a prompt
printf
response
response
upper function
pass in response
the character y
again