Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

C and C++

Rating
-
Sold
-
Pages
13
Uploaded on
03-03-2023
Written in
2022/2023

This a detail study of C and C++ course starting from the beginning of the language.

Institution
Course

Content preview

Introduction To C and C++
C is an awesome programming language and it’s actually one of the
oldest programming languages around in fact. A lot of modern
programming languages are based off of C so it is a really good idea if
you want to get into C or even if you 're trying to get. into something
like C++ to learn the basics. In this course, we 're gonna cover
everything you need to know about the C programming language. We
're gonna basically download and install a special program that will do
that for us. So let 's get started I am going to come over to my web
browser and I 'm just gonna go up to the Google search bar. So just
type in Code blocks C. and this link should come up. This is an
integrated development environment. In this tutorial I 'm gonna talk to
you guys about getting everything set up to start programming in C on
OS X. We 're actually going to use the text editor to write our C
programs in and you can use any text editor that you want to write C
programs. In the next few tutorials, we 're gonna be learning about
setting up code blocks writing our first C programs and really just
getting started with C

You need to get that C. compiler working so once you run that Xcode
select command just type in CC - V again and You should be getting
this version number Alright, so now that we have our C. compiler
installed What we want to do is download an. IDE So we. want to
download a special text editor that we can use to write our C programs
in. We 're gonna be doing is creating a console application This is like
there’s a basic C project that you can run on your computer. That’s
exactly what we need So click on console application and then click go
and I 'm just gonna click through this wizard and you 'll see over here.
It says C++ or C now C and C++ are both Different programming
languages for this course. In this tutorial I 'm going to talk to you guys
about the basics of writing a program in C. The purpose of this tutorial
was just to get our C project set up and to test our main dot C file. We
're essentially telling code blocks to run this file and execute the
program So as long as everything works here and you 're good to go
and now we can start really learning how to program.

In C we can actually write out a bunch of instructions for the computer
and then we can run our program so we can tell the computer to
Execute those programs. A method is just like a container where we
can put some of our code and this method main is very important
because this is the method that’s going to get executed when we run
our programs. C is a set of instructions that when executed correctly
will result in the computer doing something for us. C is one of the best
languages to program computers to do anything with C. and run it just
to see what Happened, you know? see how your program did So we
have this option over here called build and run and this will both build
your program and run. C is really the only instruction that we know

, which is printf so why do n't we use this printf? Instruction in order to
draw out a little shape onto the screen. As we go forward and we learn
how to write in C We 're gonna learn more and more complex
instructions and we 'll be able to use all those instructions in
conjunction with each other.

In this tutorial I want to talk to you guys about variables in C. A
variable is a container where we can store different pieces of
information so different data values we could sort of things like
numbers or texts or characters. These variables make it a lot easier for
us to keep track of and manage all the data in our programs. We
basically have two pieces of data that we 're working with Consistently
in this program the characters age and the character 's name. If I was
to run this program then all that information will be updated and we 'll
have new story. I would have to go through and manually change it in
every single location that would take forever and it would be a huge
track. I 'm gonna get into the different data types that we can
represent and see more in the next tutorial. In C we can also store
instead of just storing like one single character we can store a bunch
of characters and that would be kind of like you know a name. So, to
do that, I 'm just gonna type out char just like that and that 'll basically
tell C Hey, we 're gonna store characters inside of this variable.


C++
C++ is one of the most popular programming languages around. It's a
language that is closely related to the C programming language. In
this tutorial, Mike will show you how to get everything set up to start
working with c++. The knowledge you learn in this course will actually
carry over to potentially other programming languages as well. A
special text editor called an ID stands for integrated development
environment. It’s basically just an environment that's really awesome
for writing c++ code. And then we 're also going to need a program
called a. a c++. compiler. And this is a program that will basically take
the. code that we write, and it will translate it. into a language that the
computer is going to be able to understand. So as long as we have a
text editor, and we have ours. c++ compiler, then we're ready to start
programming in c. In this tutorial, I 'm going to show you guys how to
get everything set up. To start working with and start writing programs
in c++, in order to set this up, we 're actually going to need two
different things. The first thing is a text editor where we can write our
c++ programs. We also need a c++ compiler to translate the c++ that
we write into computer code code.

Xcode will install everything that we need for c++. If you don't have it,
just say Xcode, select hyphen, hyphen, V. already have the c++
compiler installed. So, what we want to do is get a text editor. We 're
going to be using a special text editor called codeblocks. In this

Written for

Course

Document information

Uploaded on
March 3, 2023
Number of pages
13
Written in
2022/2023
Type
Class notes
Professor(s)
Rohan
Contains
All classes

Subjects

$12.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
rohanshelar

Get to know the seller

Seller avatar
rohanshelar Z.B.Patil
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions