Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Josh-D18/C-CPP-Programming

Open more actions menu
 
 

Repository files navigation

cpplogo clogo

Introduction to C/C++ Programming for Beginners



Build Status

Contents :

Visit here for full course

> Click the drop-down to view the outline

Introduction
C++ Basics
C++ Advance Visit here for full course
C Basics
C Advance Visit here for full course
Simple C/C++ Projects





Introduction to C++

What is C++ Programming Language ?

  • C++ is a cross-platform language that can be used to create high-performance applications.

  • C++ was developed by Bjarne Stroustrup, as an extension to the C language.

  • The language was updated 4 major times in 2011, 2014, 2017, and 2020 to C++11, C++14, C++17, C++20.

  • C++ is fun and easy to learn!

  • As C++ is close to C# and Java, it makes it easy for programmers to switch to C++ or vice versa.

C++ compiler /IDE

To start using C++, you need two things:

  • A text editor, like Notepad, to write C++ code
  • A compiler, like GCC, to translate the C++ code into a language that the computer will understand

An IDE (Integrated Development Environment) is used to edit AND compile the code.

Popular IDE's include: Code::Blocks, Eclipse, and Visual Studio. These are all free, and they can be used to both edit and debug C++ code.

I will be using Code::Blocks in this Project, which I believe is a good place to start.

You can find the latest version of Codeblocks at http://www.codeblocks.org/.

Download the mingw-setup.exe file, which will install the text editor with a compiler.

Quick Start :

  • Let's create our first C++ file.
  • Open Codeblocks and go to File > New > Empty File.
  • Write the following C++ code and save the file as myfirstprogram.cpp (File > Save File as):
// myfirstprogram.cpp

#include <iostream>
using namespace std;

int main() {
  cout << "Hello World!";
  return 0;
}
  • In Codeblocks, it should look like this:

  • Then, go to Build > Build and Run to run (execute) the program.
  • Congratulations! You have now written and executed your first C++ program.




Introduction to C

What is C Programming Language ?

  • C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972.

  • It is a very popular language, despite being old.

  • C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

NOTE C and C++ uses the same compiler and IDE

Quick Start :

  • Let's create our first C file.
  • Open Codeblocks and go to File > New > Empty File.
  • Write the following C code and save the file as myfirstprogram.c (File > Save File as):
// myfirstprogram.c


#include <stdio.h>

int main() {
  printf("Hello World!");
  return 0;
}




Differences between and

  • C++ was developed as an extension of C, and both languages have almost the same syntax.

  • The main difference between C and C++ is that C++ support classes and objects, while C does not.




C++/C Compiler on different OS

For Windows, Linux and MacOS

  • Install code::blocks by going to there official website, Code Blocks

For Andriod OS

  • Install C4Droid on playstore, C4Droid

For IOS



How to Contribute:

  • Just fork the project and clone it into your machine
  • Then make your contribution and upload it to your fork repository
  • Then click on pull request


Countributors


Info

Join our GitHub Organization :octocat: and continue to contribute to our Open Source Software ✨

Connect With Us

           

About

C/C++ Programming for Beginners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 66.8%
  • C++ 33.0%
  • Makefile 0.2%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.