presentation on microsoft visual studio

Download Report

Transcript presentation on microsoft visual studio

PRESENTATION ON MICROSOFT VISUAL STUDIO
Course Professor: Dr. Subbarao V Wunnava Ph.D.,P.E
Course Coordinator: Dr. Herman Watson, Ph.D
ECE Department: Florida International University Fall 2014
Teaching Associate:
Mohammad Saiful Islam
Info about Compiler for EEL 2880
course
 Your need to have at least two compiler to
execute your project.
 These are our recommendation
- Microsoft visual studio(MSVS) (You can access in
EIC MSVS 2008)
-CODE:: Blocks
-for mac user : use XCODE
(https://developer.apple.com/xcode/downloads/)
-Blood shed dev
Just google to get more compiler.
From where to download
• http://www.microsoft.com/visualstudio/eng#downloads
(otherwise use Citrix from EIC, FIU)
How to Access Software Access
from EIC?
• Click on the link below :
http://www.eic.fiu.edu/
Now Click on EIC Apps Login on right side
of the screen
Now Provide User name & Password to login
Applications Then Click Log on (if you don’t have
password & User ID,check with EIC personnel)
Now Download Citrix, clicking on download button
(Make sure download client checkbox is selected )
Your citrix software will start to Download locate
it to your desired location in drive .Then Run
If the installation was successful,
click Continue
Then, one window will open with
your desired software icon as list
Now, if you want to open ( For example,
microsft visual studio 2008 ) click on its icon,
then you continue with your program
application
After finalizing your activity make sure (for
security ) you are logged out from EICApps by
clicking Log off button on the right corner of
screen.
Start Microsoft Visual Studio 2008

Start → All Programs → Microsoft Visual
Studio 2008 → Microsoft Visual Studio
2008
13
Starting for the first time



The first time you run
MSVS, you might get a
window like this.
Set Visual C++
Development Setting as
your default
environmental settings.
Use General Development
Settings if you have no
preference.
14
Initial MSVS Window

Here is an
image of the
initial
window.
15
Opening a New Project

Open a project using File → New Project → Visual C++ →
Win32 → Win32 Console Application → enter your project
name and browse to select a location (where your project
will be saved) → OK.
16
Project Settings

Choose Next > at this dialog.
Project Settings (continued)

Be sure to check Empty project and Finish.
18
Add a New Item

Right-click on
Source Files
and Add a
New Item.
19
Create a .c File

Choose Visual C++ Code, C++ File, enter a file name with .c
as the file extension.
20
Enter Code into Your File

Enter a standard C program into the .c file.
21
Save and Compile Your Program

Save → Build → Build Solution F7 SHORTCUT KEY
22
Save and Compile Your Program

A successful build:
23
Save and Compile Your Program

An unsuccessful build, read the error message and
correct the errors and build again:
24
Run the Program

After a successful build, Debug →Start
Without Debugging to run the program
(CTRL+F5):
25
Run the Program

Examine the output:
26
What you have done so far --




You created a new Microsoft Visual Studio 2008
Project.
Selected Visual C++ Win32 Console Application.
Created your own .c file, entering code just like in
class.
Ran your program to produce output.
You did all of this using an easy editor without
logging onto the internet.
27
A SIMPLE PROGRAM IN MVS 2008
• #include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
C Program for repetitive addition of
two numbers in MVS
A program to calculate Factorial of a
Real number