Iam new to C++!

Posted on 2003-03-28
Medium Priority
Last Modified: 2010-04-01
Hi Experts!

Iam new to C++ language!

Iam having Visual Studio 6.0!

Can u help me about creating simple executable project with step by step instructions or any site providing the help!

Also i want to know what kind of things can be made with VC++!

Thanx a lot!
Question by:Sankar_V
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Accepted Solution

makerp earned 80 total points
ID: 8230002
open VC++
select file -> new -> projects -> Win32 Console Application
enter a name for the project in the right hand box
now the wizard will launch, accept the default (empty project)
now select file -> new -> files -> C++ source file
enter a file name in the right hand box and select OK
now paste the following into the file

/* my program */
#include <stdio.h>
void main()
  printf("Hello World..");

now select build -> ! Execute

your progran should now run..

In VC++ you can make practically anyapplication of you choice.. Windows services, windows GUI applications, console applications like the one you just made. basically any type of application listed in the new -> projects disloag you saw a minute ago. VC++ has extensive class libraries such as the MFC and ATL to help simplify writing various applications

Assisted Solution

braindude earned 80 total points
ID: 8232696
Go here:

They have lots of C/C++ Tutorials for VC++.


Author Comment

ID: 8236323
Thanks Makerp!

Can u give me some more like some input / output functions??
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 8236425
Thanks Braindude!

The link u specified gives many codes.........

I will get ba 2 u soon after going through that!

May be with some doubts!
LVL 10

Expert Comment

ID: 8247166
for input and output try either C functions such as printf and gets or C++ iostream classes like cin and cout. personally i would go with the later.

#include <string>
#include <iostream>
using namespace std;

void main()
  string str;
  cout<<"Enter a string: ";

here we also use the string class..

all of these things can be looked up in the help or MSDN

Assisted Solution

Muugokszhiion earned 80 total points
ID: 8621773
Well, here are some little things with quick explanations.

#include <iostream.h>         //This is necessary to us cin and cout

int main()        //A special function, this usually serves as the main body of your program
    int Age;      // This declares the variable "Age" to be an interger.
    cout << "Hello." <<endl;      //This outputs "Hello" to the screen and then <<endl goes to the next line.
    cout << "How old are you?" <<endl;
    cin >> Age; // cin waits for your input, in this case, answering the question how old you are. Notice the way the arrows face.
    cout << "You are " <<Age << "years old." <<endl;   //That's how old you are! ^_^
    return 0;        //Tells main to return 0... basically ends the program.
}  // Don't forget the closing brace.

That was a very simple breakdown of a basic program.

Author Comment

ID: 8626901
Sorry Guys........Sorry 4 the delay!

I was busy with VB projects!

Thanx 4 ur help!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question