1 Lab Session-III CSIT121 Fall 2000 Setting Your Own Paths Setting Project Information Browse Information Generation Data types revisited Enumerated data.

Slides:



Advertisements
Similar presentations
This Time Whitespace and Input/Output revisited The Programming cycle Boolean Operators The “if” control structure LAB –Write a program that takes an integer.
Advertisements

P1PMF Split1 QBASIC. P1PMF Split2QBasic Command Prompt Will launch the emulator DOS operating system? Press Alt + Enter to display the widescreen.
Enumeration Data Type enum Day {SUN, MON, TUE, WED, THU, FRI, SAT}; Day today; today = WED; if (today == FRI) cout
Copyright © – Curt Hill Files to Hand-In And other things you should know.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition Chapter 4: Making Decisions.
CIS 101: Computer Programming and Problem Solving Lecture 8 Usman Roshan Department of Computer Science NJIT.
Display a 12-Month Calendar CS-2301 D-term Programming Assignment #2 12-Month Calendar CS-2301 System Programming C-term 2009 (Slides include materials.
1 Lab Session-I (A and B) CS-120 Fall 2000 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 DUE Fri September.
Introduction To Form Builder
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 4 Making.
1 Lab Session-VI CS121 Fall 2000 l HW#2 Assigned l Multiple Choice Selectors l The While Loop l Switch-Case-Break Exercise l The Counter Controlled Loops.
Assignment #2, 12- month Calendar CS-2301, B-Term Programming Assignment #2 12-Month Calendar CS-2301, System Programming for Non-Majors (Slides.
PHP and SQL Server: Queries IST2101. Project Report 4 SQL Queries Due Sunday, 4/5 at 11:59pm Instructions on how to access team webspace and SQL database.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
Java Programming Constructs 1 MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation.
System-level and RESA Administrators Functions. Topics Manually creating new student account Manually creating new teacher account Importing data Viewing.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training course describes how to configure the the C/C++ compiler options.
1- Date TimePicker 2- Month Calendar 3- User Defined Controls.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Includes and Dates.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
Header Research Paper Formatting. Start by opening up Microsoft Word under “All Programs:”
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Xiaoying Gao Computer Science Victoria University of Wellington Copyright: Xiaoying Gao, Peter Andreae, Victoria University of Wellington Call a Method,
CSC 107 – Programming For Science. Announcements  Memorization is not important, but…  … you will all still be responsible for information  Instead.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 4 Making Decisions.
CREATING A LABEL MAIL MERGE IN WORD. TERMS FIELDS RECORDS MERGE CODES.
Controls. Adding Controls to Form -You can pick controls from the toolbox. -To add the controls from Toolbox to the Form You have be in design view. -To.
CS Class 05 Topics  Selection: switch statement Announcements  Read pages 74-83, ,
+ Chapter 4: Making Decisions Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy Walters, and Godfrey Muganda.
Simple Data Types Built-In and User Defined Chapter 10.
Xiaoying Gao Computer Science Victoria University of Wellington Copyright: Xiaoying Gao, Peter Andreae, Victoria University of Wellington Exercise, printf,
Programming Fundamentals. Today’s Lecture The Conditional Operator Logical Operators Structures Enumerations.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Enumeration.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Copyright Curt Hill The C/C++ switch Statement A multi-path decision statement.
Message: "You are mature"
CMPE-013/L: “C” Programming Gabriel Hugh Elkaim – Spring 2013 CMPE-013/L Enumerations Gabriel Hugh Elkaim Spring 2013.
Programming Fundamentals1 Chapter 4 SELECTION STRUCTURES.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
CS 1430: Programming in C++.
Lecture 7: Menus and getting input. switch Multiple-selection Statement switch Useful when a variable or expression is tested for all the values it can.
2/19/2016IT 279, Chung-Chih Li1 Branching Condition Statement list 1 T F Statement list 2 Condition Statement list T F.
CS Class 04 Topics  Selection statement – IF  Expressions  More practice writing simple C++ programs Announcements  Read pages for next.
An Introduction to Programming with C++ Sixth Edition Chapter 5 The Selection Structure.
Offline Video Recording TNLA 2016 Erode District.
LECTURE # 7 : STRUCTURED PROGRAMMING Selection Statements Tr.Hadeel.
arithmetic operator & cin I.Mona Alshehri The output formatting functions setw(width) setw(n) - output the value of the next expression in n columns.
LESSON 06.
Microsoft Access 2016 Simplify Data Entry with Forms
Enumerated Data Types Data type created by programmer
The Selection Structure
Enumeration Types and typedef
MON TUE WED THU
Using AMOS With SPSS Files.
Topics 4.1 Relational Operators 4.2 The if Statement
2008 Calendar.
Sun Mon Tue Wed Thu Fri Sat
Sun Mon Tue Wed Thu Fri Sat
1/○~1/○ weekly schedule MON TUE WED THU FRI SAT SUN MEMO
2016 | 10 OCT SUN MON TUE WED THU FRI SAT
Sun Mon Tue Wed Thu Fri Sat
Structures Chapter 4.
2008 Calendar.
Presentation transcript:

1 Lab Session-III CSIT121 Fall 2000 Setting Your Own Paths Setting Project Information Browse Information Generation Data types revisited Enumerated data types Manipulators

2 Setting Your Own Paths The default paths are already set For changing source file path, Go to Tools-- >Options Select Directories Tab and input your own path Try the other Tabs and see what you can make out of these (Tabs, Compatibility, Format:)

3 Setting Project Information Select Project-->Settings Go to C/C++ Tab. Can you optimize your program for speed? What happens if Warnings as Errors is checked?

4 Browse Information Generation You can create a browse information file for each project This file has an extension.bsc This enables you to find out where in your source code any item is used and where it is defined

5 Browse Information Generation Go to Project-->Settings-->C/C++ Click on the Generate Browse Info checkbox Switch to Browse Info Tab Click on Build Browse Info checkbox

6 Browse Information Generation You can use the browse information file when you are browsing your source code Go to any item in your source code (for example a variable or a function call) Press right mouse button to see a menu Select Go to Definition --- or Go to Reference--- If the browse file is not available, it will be generated (Practice Temp. Program:Tools)

7 Data Types Revisited C++ is case sensitive Boolean variables are assigned values true and false and not TRUE and FALSE TRUE and FALSE carry the values 0 and 1 and these can be used with variables of type integer Write a program that asks if you have apples. A boolean variable is changed as per response and then used to print output

8 Enumerated Data Types Some data has only a limited set of values that can be referred by labels For example, months in a year, days in a week, desserts in a restaurant menu Enumerated data types can be defined by the user For example enum days_of_week {sun, mon, tue, wed, th, fri, sat}

9 Manipulators A manipulator modifies the way in which data input or output is handled For using manipulators, we need to put #include Try outputting numbers like below cout << setw(8) << num1 << setw(8) <<num2

10 Lab Exercises Define today as Sunday and print “Hoorrah” if ( today == sun) Print the following data in a nice format showing columns of serial numbers and data values: (28.45, 32, , 16.7, 99.1, , 12, 13.34, 8.2, 98.4)