Coder Social home page Coder Social logo

the-young-programmer / c-cpp-programming Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 12.0 6.55 MB

C/C++ Programming for Beginners (Basic to Advance)

Home Page: https://cppprogramming.netlify.app

License: MIT License

C++ 51.63% C 48.37%
c c-programming-project cplusplus cprogramming cpp-programming-project c-course c-tutorials cpp cpp-course cpp-tutorials cpp-gui gui-application nemonet programming-language tutorial nemonet-typ nemonet-cpp typ-cpp netlify programming

c-cpp-programming's Introduction

C/C++ Programming for Beginners
Basic to Advance



Contents :

Visit here for full course

> Click the drop-down to view the outline

Introduction
C++ Basics
C++ Advance (GUI) Visit here for full course
C Basics
C Advance (GUI) Visit here for full course
Projects
Download App





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.

  • It is developed at AT and T's Bell Lab (USA) in 1979

  • 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.

Application of C++

  • Developing Games

  • Operating Syatems

  • Compilers and Editors

  • Database Systems and Interpreters

  • Graphics Packages

  • Network Drivers

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 Code. These are all free, and they can be used to both edit and debug C++ code.

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

You can find the latest version of VSCode at https://code.visualstudio.com/.

Follow this process to install and setup VSCode , which will install the text editor with a compiler.

Quick Start :

  • Let's create our first C++ file.
  • Open VSCode and go to File > New Text 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 VSCode, it should look like this:

Screenshot 2023-04-22 110959

  • Then, go to Run > 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.

  • Both C/C++ has the same features and applications

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

Quick Start :

  • Let's create our first C file.
  • Open VSCode and go to File > New Text 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 VSCode by going to there official website, VSCode

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

Donates to Support


Countributors ๐Ÿ”


Join our GitHub Organization :octocat: and continue to contribute to our Open Source Software โœจ

Connect With Us

c-cpp-programming's People

Contributors

easter-maxwell-01 avatar samuel-de-oliveira avatar the-young-programmer avatar tigertv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

c-cpp-programming's Issues

issues

If you face any issues or problem while using this code, pls let me know.

BUG

The Basic Calculator in C++ is giving error on CodeBlocks .
The .exe file is not also working.

pls fix this .

Cross-Plataform

Detailed description

Hey, I was creating a makefile to make the projects cross-platform, but looking at the graphical interfaces code, I saw that they used libraries that can only be used on Windows. For this reason i would like to suggest a graphical library called raylib, it is cross-platform, without any more dependencies, very simple to use for beginners to create graphical interfaces, games and more.

raygui for GUI

Context

I believe it would be very useful for who are learning

Possible implementation

No response

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[BUG] <description>

Problem subject

Documentation:
In the file called "README.md" in the Tutorials section.

Description

In the file called "README.md" in the Tutorials section there is a link to a page that no longer works. I have been able to verify that in the README.md file in the C language section of the Tutorials folder there is another link that I think could serve to replace the one that does not work in the main Tuturials section. I have opened a Pull Request changing one link for the other to fix the problem.

Expected behavior/contents

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[FEATURE] Create Linux & MacOS example projects

Detailed description

I've cloned this repo and I notice that all the programs is created only for Windows.

Context

So for leaning proposes of everyone the project need examples that's works for all systems.

P. S. I use Linux so maybe a can help about this.

Possible implementation

No response

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

BUG

The Hotel management . exe file is not opening.

Updating the Readme of each Project

Detailed description

Updating the Readme of each Project. So that there will be a proper understanding and usage of the code in the project.

Context

It will give a proper understanding on the code in the project

Possible implementation

No response

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.