How To Write Hello World Program In C++ Programming Language

Image
  How To Write a Hello World Program In C++ Programming Language In this post we will look at how a C++ program works. We will try make the example as simple as possible for the beginners so they can easily understand the basics of C++. We will write a simple C++ hello world program in C++ programming language which is considered as the very first program in almost every programming language. A Brief Introduction to the C++ Programming Language C++ is an object oriented programming language and it is an extension to C programming language. C++ is a general purpose programming language and it is also a case-sensitive language. C++ is very powerful programming language it has features of both low level and high level programming languages, and that is why it is called mid level programming language. Hello World program in C++ programming language Above is an example of a simple Hello World program in C++ programming language. Now let us look at the code, and I will take you...

How to run c project in visual studio community 2022

 How to Run C project in Visual Studio Community 2022

Many people think we cannot write c code in the visual studio community. but this is completely not true, yes we can create a C file and run C code in Visual Studio 2022 let us see how we can achieve it.






1) Open Visual Studio 2022 

First of all, we are going to open Visual Studio 2022.


2) creating a new project 

Then we are going to create a new project by clicking create new project button.



3) choosing a project template:

Create a new project window that will appear in front of you. From this window select an empty project template with C++ symbol on it. Then push the next button.







4) configure your project 

A new window will appear in front of you with the heading Configure your new project. In this window, you can select your project and solution name. And also the location of your project. then click the Create button.






5) New project created:

On clicking the create button a C++ project is going to be created in front of you. At this point go to view the top menu bar options and click on Solution Explorer.




6) Open solution explorer:

On opening the solution explorer right right-click on the source files folder, go to the add menu, and with the Add menu select New item.






7) Add new item window:

on clicking new item, add new item window will appear in front of you. From this window select visual c++ on the left panel then select c++ file(.cpp) and name the file according to your choice but remember the most important point,  




change the file name extension from source.cpp to source.c to create a c file.






Click the Add button.





On this file with source.c extension you can write a C program. Write the given code it will print Hello World on the console screen.



8) Congratulations you have achieved the goal.

Below is a description video to create a C++ project and print the Hello World program in C programming format.


Comments

Popular posts from this blog

How if else-if else ladder statement works in C program.

How to add two numbers in C programming language