AllFreePapers.com - All Free Papers and Essays for All Students
Search

Ide Coding

Autor:   •  October 3, 2015  •  Lab Report  •  888 Words (4 Pages)  •  877 Views

Page 1 of 4

Lab 1                TECH 104                Fall 2013

Maximum Marks 10

Lab reports are due at the beginning of the lab.

The lab reports that are handed in late are not marked.

Objectives:

  • Get familiar with the IDE
  • Get familiar with various components of basic C program
  • Create errors in the code and identify error massages generated by the IDE
  • Understand the basic print statements (printf and fprintf)
  • Write simple program that displays formatted information on different lines and using tabs and spaces.

Part-I

Open Microsoft VC++ 2010 Express edition/ Microsoft Visual Studio Professional Edition and create new project named “Lab1”.

It is Win32 Console Application and create “Empty Project”.

Add new source file “Lab1_part1.c” in this project.

Show the path where your project folder Lab1 (folder) is created:                                                                                                1 Mark

Now type the following program in the file “Lab1_part1.c

[pic 1]

Using Debug menu option, select “Build Solution”

What is the Build Information that you see at the bottom of the “Output Build” window at the bottom of the workspace?        Did it build successfully?

        unsuccesfully                                                                        1 Mark

Place the mouse cursor on the following statements one by one and write the error messages below:                                                        2 Marks

printf(….)Identifier “printf” is undefined:

fprintf(…):identifier “fprintf” is undefined

scanf(…):Identifier “scanf” is underfined

getchar():Identifier “getchar” is underfined

Now include the following statement on the first line of the source code (Lab1_part1.c):

#include

Use Debug menu option and “Build Solution” once again. Now observe the Build Information on the Output Build window at the bottom of the workspace of the source code. What is the build information that you see now? Was the Build successfully completed?

...

Download as:   txt (3.6 Kb)   pdf (752.8 Kb)   docx (621.4 Kb)  
Continue for 3 more pages »