Visual Studio

The compiler that I chose to you on my personal computer was Microsoft Visual Studio 2005. The first thing you need
to do is get a copy of it. Either from UBMicro, from a online retailer or from UB-MSDN Academic Alliance(if you have access to it
like I do). If you got an actually cd then all you have to do is put in the cd/dvd and run the installation program. As a
side note if you do not want to install compilers for Visual Basic, C#, J#, or any of the
compilers choose the custom option instead of the full instalation option.
Now if you chose to download it you must first log-in to the website and chose to download
Visual Studio 2005 Professional Edition CD1 and CD2, and also the MSDN Library for Visual
Studio 2005 CD1 thru CD3. After you choose to download them you will recieve an e-mail that contains
a link for you downloads. Go to the link and start downloading them( you will recieve multiple
links to download and I do not know if the website will allow you to download more than one file
you can try to see if it will let you, i didn't i just did it one at a time and it took me about
an hour and a half over a wireless internet connection so time may vary.). While and Visual Studio
is downloading itself and it Library going to http://www.disc-tools.com/download/daemon and download
Daemon tools.
After everything is download USE your viruscan and check EVERYTHING you just downloaded.
First thing you need to install is Daemon tools. During the instillation it will say that your
coumputer must be rebooted to finish installation. When your computer is rebooted
just choose to install the desktop shortcut and the Start Menu Shortcut, it will then ask you
do you wish to install it toolbar choose DECLINE.once you install it right click on the read icon
on the toolbar and choose Virtual CD-rom/DVD-rom choose mount image select the image Visual Studio
2005 Professional Edition CD1.iso file you just downloaded. AFter you mount it go to MY Computer
and you will noticed you have an extra cd-rom drive. Double click on it to start the instilation
instructions. When it asks you to install another cd right click on the Deamon tools icon on the toolbar and
unmount the .iso that is their and mount the .iso file it is asking for.After installation is
done go to http://ubit.buffalo.edu/software/win/index.php and downloadand in stall FileZilla,
UBVPN and X-Win32 if you do not have them on your computer from CSE115and 116.
Now Open Visual Studio and go to File->New->Project. Under Visual C++ choose General
and Empty Project, enter a for you project(i.e. Homework 1) and choose OK.(Please note that it
will be saved in you computers My Documents\Visual Studio 2005\Projects file. Now look at your
Solution explorer window and right click on the Source Files directory and Add and choose NEW ITEM.
A window will open and then choose C++ File and enter a name(i.e. SmallRecursive) and choose add.
Star programming.
When you are ready to compile press the following key comibination Ctrl + F5. A window will
pop up and say that there has been changes since the last time compiled(build) you program would
you like to compile(build) it again. Choose Yes. This will compile and attempt to run you program
for you. At the bottom half of the screen you will see the output window. If there are any
errors they will showup in there.(Note: program will still run if thereare warnings but not errors.)
If it fails it will tell you that it failed but would you like to run a previous compiled version
of your program say no. In the output screen you will see a underlinedlined line of a file
extention, Ctrl + right click on it and it will open up the build log in bigger file. Read
what the output says the error is. IT will give you a line nuber in paranethesis (i.e. 56).
This is cool but you have no line numbers so to get lined numbers go to Tools->Options. Scroll
down to Text Editor and click on C/C++. Under Display check the box to select Line Numbers, and click
ok. Here is trick if you double click on the error it will highlight the piece of code that is
in error. Fix your program and and recompile it again. If it works that is good, if it works
but at the end Visual Studio tells you would you like a debuger on it choose no. All this is telling you is
that Visual studio is having problems with it. Usually when you compile and run it on the schools
servers it will work and not cause g++ to blow a fuse with the code. After you are satesified with
you program transefer it to back to school and submit it.

 


How to run Windows Visual Basic on most Windows Computers-

SKIP 1 and 2 if you have a mail in your UB mail or the like, to the alliance. There's a link to it, and it's easier. You also need a password and your login is your UBemail address.

Step 1. You will first need to get Windows Basic, which is rather simple if you navigate to the CSE homepage. Not the 40th Annivedrsary page, although you can get to it from it.

Step 2. You much look for a link to 'consulting' within it. Somewhere through it, the MSDA Alliance can be found. Clicking on it, you will be lead to the webpage.

Step 3. You will have a simple search bar when you login, you'll want 'Visual Basic'. FDollowing the instructions to download, it shouldn't give you a problem.

Step 4. After downloading, you'll notice you get an ISO. You can't use it like that! You'll need to downlod a program, such as Alcohol 120%. or Daemon ( I believe) to create a fake drive.

Step 5.Installing either, eventually you will have an option to create a fake drive. Alcohol starts you with one.

Step 6.Then, you right click on the drive and select 'mount image'. Wherever the ISO is, find it, as it should be in a TEMP folder in C. It may be subject to change.

Step 7.After Mounting the image, it should install automatically, and you should be all set! Just need to restart so everything takes effect.
I am using Cygwin on Windows XP Pro SP2 32-bit with a 64 bit Processor. After some searching I found this website that explains an easy
way to install Cygwin and GCC

http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html

A couple notes on installing Cygwin:
1.The installation is fairly standard, but make sure to check the gcc, gdb, and make components under "devel" when asked what to install.
2.I had the best luck with the signal42 mirror, it gave me the best download speeds of the couple I tried.

The best way to check to see if your installation worked is make a simple c++ hello world program and see if it compiles with the command
g++ -Wall <filename.cpp> -o <programname>

if it compiles without issue in cygwin run it with the command
./<programname>

If it all works out cygwin is all setup, with the g++ compiler installed.

 

 

Compiler: Microsoft Visual C++ in WindowsXP

Step 1: Install Microsoft Visual Studio 6.0

Step 2: Open Microsoft Visual C++, create a program named SmallestRecursive.cpp.

Step 3: Test the code on many sample datasets to be sure it works.

Step 4: Install a sshclient software(I use fsshclient).

Step 5: Open it and connect to the server: nickelback.cse.buffalo.edu.

Step 6: Upload SmallestRecursive.cpp to the server.
Use command "g++ -o small SmallestRecursive.cpp" to compile it.
Use command "./small" to run it. Make sure it works.

Step 7: Use command "submit_cse250 SmallestRecursive.cpp" to submit the homework.