[AGDev-newbies] visual C++
Sean Mealin
seanpm at triad.rr.com
Sun Jun 18 22:50:54 BST 2006
Hi,
Here is how to write a program in Visual C++ 2005 Express Edition
Please excuse the grammer, I quickly put this together.
Open Visual C++ 2005 Express Edition
Press alt
Go to file menu
Press right arrow on new
Press enter on "new project" (Note there should be three things in that
menu; make sure that it is the first option)
Make sure that win32 is selected in the first tree view
Press tab
Make sure that Win32 Console Application is selected
Press tab
In the name box, change "<Enter_name>" to anything you want. I put mine as
"Tutorial 1"
Press tab
Put the location where you want it. Default is C:\Documents and
Settings\<Login name>\My Documents\Visual Studio 2005\Projects
Where <Login name> is your login name. (Who would have thought? ;-))
Press tab
Tab pass the brows button (unless you need it; I am not going over how to
use a dialog like that; because I really don't want to right now. ;-))
Press tab
Change your solution name to anything you want. (Mine is Tutorial 1 because
that is what I put in the project box)
Press tab
Ignore the "create directory for solution" check box if you want. Default is
checked
Press tab
Press spacebar on "OK" button.
Use your jaws curser to left click on "Next >" button. (For some reason,
spacebar does not work)
Use your Jaws curser to check the box that says "Empty project" (Make sure
that you do this)
Use your Jaws curser to click on the "Finish" button
Press the right arrow key to open the tree view and go to "source files"
Press your applications key
Go to "Add"
Press right arrow
Go to "New Item..."
Press enter
Make sure that code is selected in the first tree view
Press tab
Make sure that C++ file *.CPP is selected
Press tab
Change the name from "<Enter_name>" to something you want. I put it as "CPP
file 1"
Press tab
Change the location to something you want. Default is "C:\Documents and
Settings\<Login Name>\My Documents\Visual Studio 2005\Projects\Tutorial
1\Tutorial 1"
Where <Login Name> is your login name.
Press tab
Ignore the "Browse..." button if you want.
Press tab
Press spacebar on "Add" button.
Press Right arrow on "source files"
Go to CPP File 1.CPP (Or what ever you put for your CPP file name as)
Press enter
In the file, type this code:
<Copy after this line>
// the include statements.
#include <iostream>
#include <string>
using namespace std;
int main ()
{
// this is going to be a little odd; for some reason, as soon as you //run
the program, it will exit so fast, that Jaws does not see it. So, //we are
going to get some user input to slow it down.
cout << "Hello World" << "!\n";
string YourName;
cout << "What is your name" << "?\n";
getline (cin, YourName);
cout << "Hello " << YourName << ".\n";
cout << "type exit to exit!" << "\n";
string GoodBy;
cin >> GoodBy;
//watch, when you run the program, you will not see this next line
cout << "Good by " << YourName;
return 0;
}
<Stop copying before this line>
Press alt
Go to the debug menu
Press down
Go to "start debugging"
Press enter
Press enter again.
Run through the program.
That's more or less it. If you have any questions, just ask!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agrip.org.uk/pipermail/agdev-newbies/attachments/20060618/75b53666/attachment.html
More information about the AGDev-newbies
mailing list