Showing posts with label visual studio. Show all posts
Showing posts with label visual studio. Show all posts

Saturday 14 September 2013

project file in Visual Studio

In this post of shapes in C, we will discuss our fourth C tutorial for beginners in which we will tell how to make visual studio program.

After installation comes the step of making a project file in your C++ compiler. So, in this C tutorial for beginners, you are going to learn how to make a project file in Microsoft Visual Studio.

Step 1> First open the Microsoft Visual Studio by double clicking on its folder that is located on Desktop. You can also access it from start menu.



open visual studio




Step 2> If this error comes then download the patch mentioned below and install it, your program will become compatible. This error comes due to compatibility issues.

visual studio program


Step 3> After starting the C++ compiler, click on create project.


create project visual studio

Step 4> Click on Win32 console application and then name the project and click OK.

visual studio program


Step 5> Now click on next

visual studio program


Step 6> Now this window will appear

visual studio program


Step 7>Tick empty project and click finish

visual studio program


Step 8> Now this window will appear

visual studio program


Step 9> Now right click on source files and then go to add and then click on new item. Short keyboard key for it is Ctrl + Shift  + A

visual studio program


Step 10> Select C++ file and name it  and click add.

visual studio program

Step 11> Now your first project file is created and you can start your programming.

visual studio program


If you want to open the existing file then right click on existing files then go to add and then click on existing item. Short keyboard key for it is Shift + Alt + A




Now choose the file that you want to open



Note: In this C programming tutorial i want to tell my viewers that  you can not open multiple main files in single project. If you do it then your files won't compile. This is because every file would contain main function and as computer is dumb machine, it does not get that what file we are trying to compile. So always compile on one file at a time and remove other unnecessary files.

Final words:
I hope that this c++ tutorial of shapes in C would have taught you in how to make project file in visual studio.

C++ compiler | Visual Studio 2012

In this post of shapes in C, we are going to show third C tutorial for beginners in which we are going to learn about C++ compiler and how to install visual studio 2012.

What is a compiler?
C/C++ is a human friendly third generation language. It's code is written in English sentences so, that it would be easily understood by most of the people. But computer doesn't understand this language. It only understands machine language (Binary coding). So, compiler is a tool which translate all the code back to the machine language.

Compilers for C++:
  1. Turbo C++
  2. DEV C++
  3. Code Blocks
  4.  Borland
  5. Microsoft Visual Studio
 Now a days, the mostly used compiler is Microsoft Visual Studio so, I would recommend you to use this. Many like code blocks too as that is a programming friendly compiler but Visual studio has many tools and it can be used for other languages too like C sharp.

Note for Turbo C++:
Turbo C++ is a very old compiler of C++ and it is compatible with 32 bit machines. Now a days, people use 64 bit operating systems so, Turbo C++ doesn't work on 64 bit operating systems. To resolve this problem, there is a tool available on internet named DOS BOX. So, you should download it and install in on your computer and then run Turbo C++ in it and Turbo C++ will work on your 64 bit operating system.

Installation of Visual studio C++:

Step 1> This is the setup folder of Microsoft Visual Studio 2012. Now, double click on vs_ultimate to start the setup file.
visual studio 2012

Step 2> Now this window will appear.

visual studio 2012

Step 3> Now click on "I agree to the license term and conditions" and then click next to proceed.
visual studio 2012

  Step 4> If you want to install all features then select all else click install to continue.


visual studio 2012


Step 5> Now your installation will start.
visual studio 2012



Step 6> As your setup has completed, click on the Launch button and enjoy your programming.

visual studio 2012


Congratulations! You've now completed installing the most reputed compiler by Microsoft .

Final Words:
 In this c programming tutorial of shapes in C, we learnt about C++ compilers and installing one of the mostly used compiler, Microsoft Visual Studio 2012.

Video: