AERO 220 Introduction to Aerospace Engineering Computation - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

AERO 220 Introduction to Aerospace Engineering Computation

Description:

AERO 220. Introduction to Aerospace Engineering Computation. Meetings. Time: Tuesdays and Thursdays,11:10 AM 12:25 PM. Place: SSC 102 B. http://imechanica.org ... – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 8
Provided by: kaush8
Category:

less

Transcript and Presenter's Notes

Title: AERO 220 Introduction to Aerospace Engineering Computation


1
AERO 220 Introduction to Aerospace Engineering
Computation
Meetings Time Tuesdays and Thursdays,1110 AM
1225 PM Place SSC 102 B http//imechanica.org/n
ode/6727 10/15/09
2
Homework 4 Q1
include ltiostreamgt using namespace std int
main() int k coutltlt"\nPlease enter an
integer " cin gtgt k while(k!11) coutltlt"\
nYou Entered "ltltkltltendl coutltlt"\nPlease enter
an integer " cin gtgt k return 0
3
Homework 4 Q2
include ltiostreamgt using namespace std int
main() int k do cout ltlt "\nPlease
enter an integer " cingtgtk if(k!11)
coutltlt"\nYour number is "ltltkltltendl whi
le(k!11) return 0
4
Homework 4 Q2
  • include ltiostreamgt
  • using namespace std
  • int main()
  • int k 0
  • coutltlt"\nPlease enter an integer "
  • cingtgtk
  • for( k!11 )
  • coutltlt"\nYour number is "ltltkltltendl
  • coutltlt"\nPlease enter an integer "
  • cingtgtk
  • return 0

5
structure
  • A structure can hold items of more than one data
    type
  • Unlike an array, which can hold values of only
    one type, like a int array or a char array.

6
Structure declaration
The tag becomes the name for the new type
The struct keyword
Structure members
Terminates the structure declaration
Declares an variable named body of type testbody
7
The tag becomes the name for the new type
The struct keyword
Structure members
Terminates the structure declaration
Declares two variables of type triangle
Write a Comment
User Comments (0)
About PowerShow.com