Digital FXtbook
Easy Contacts
  • Home
    • Free Software
    • The Author
    • Former Students Hall of Fame
    • A tribute....
  • Animation
    • Intro to 3d >
      • AutoDesk
      • Introduction: The Temple
      • Troubleshooting Maya
      • Modeling >
        • The Nail
        • First Freestyle Lesson >
          • Cup and Straw
          • Garbage Can
        • Fence
        • Hammer
        • House
        • Environment Bubble
      • Animation >
        • Beginning Animation
        • Animation - Walk Cycle
        • Facial Animation
      • Rendering >
        • Arnold Rendering
      • StoryBoarding
      • Story Reels
      • Editing film >
        • Video Editing
        • Credits
      • Characters
      • Troubleshooting
    • Modeling and Rigging >
      • Modeling >
        • Image Planes
        • Polygon Modeling >
          • Coke Can
          • Low Polygon Character
          • Character Modeling Legion the Geth
          • Character Modeling Geth Armor
          • Face Modeling
        • NURBS Modeling >
          • Intro to NURBS
          • Lofting
          • CV Curves
          • Organic Modeling
          • Autombile
      • 3d Coat >
        • Integration with Maya >
          • Getting stuff out of Maya
        • UV Texture Mapping >
          • Texture mapping in 3d Coat
        • 3d Painting >
          • Painting in 3d Coat
        • Reintegration with Maya
      • Rigging >
        • Rigging
        • Smooth Skinning
        • Rigging with HumanIK
        • Smooth Skinning
      • Motion Capture
    • 3d Animation >
      • Arnold Rendering
      • Reference Videos
      • Beginning Animation
  • Gaming
    • Board Game Game Design Document
    • Modeling >
      • Introduction: The Temple
      • Halo 1 Blood Gulch Base
      • Hammer
      • Sword
      • Character Modeling Big Daddy
      • Shield
      • The OM6G
      • Weapon
      • Character Modeling Legion the Geth
      • Character Modeling Geth Armor
    • Animation >
      • Character Animation
    • Rigging >
      • Rigging with HumanIK
      • Characterizing and MoCap
      • Integration with Unity
    • Unity >
      • Number Wizard Game #1
      • Second Unity Game: Text Adventure
      • Number Wizard Game GUI
      • Block Breaker >
        • Block Breaker Game #1
        • Block Breaker Game #2
        • Block Breaker Game #3
        • Block Breaker Game #4
      • Terrain
      • Importing Models
  • Coding
    • Beginning C# >
      • First Unit >
        • First Program
        • Introduction Unity Lesson
        • Comments
        • PsuedoCode
        • Numbers and Operators
        • Use of Parenthesis
        • Casting
        • Try and Catch
        • Operators
      • Second Unit >
        • Conditional Statements >
          • Number validator
          • Number tester
          • Speed Camera
        • Random Class
        • Loops >
          • For Loops
          • For Each Loops
          • While Loops
          • Do While Loops
        • Arrays >
          • Simple Arrays
          • Complex Arrays
    • Web Design >
      • XHTML >
        • XHTML Introduction
        • XHTML Test #1
        • HTML Links and Images
        • XHTML Test #2
        • HTML Tables and Lists
        • XHTML Test #3
        • HTML intro to CSS
        • HTML CSS
        • HTML Styling
        • HTML Styles
        • HTML Positioning
      • HTML 5 >
        • HTML Chapter 1
        • HTML Chapter 2
        • HTML Chapter 3
        • HTML Chapter 4
        • HTML Chapter 5
        • HTML Chapter 6
        • HTML Chapter 7
        • HTML Chapter 8
        • HTML Chapter 9
  • Student Films
    • Advanced Student's movies
    • Beginning Student's movies
  • Adobe
    • Photoshop >
      • Introduction
      • Selection Tools >
        • Melonhead >
          • Melonhead Creative
        • Breakfast Lunch or Dinner
        • Blu 42
      • Painting Tools >
        • Invisi-World
        • Image Adjustment
        • FreeStyle project
      • Drawing Tools >
        • Abstract Expressionism
    • Premier >
      • Project 1
    • Illustrator >
      • Vector Ninjas
      • Live Art Painting
      • Starting the Pen Tool
      • Apple and Pear
      • Creating Your LOGO
      • Self Portrait
  • Links
    • Key Board Fix/Hack
    • Buiding Piers >
      • Buiding Piers
      • Buiding Piers
    • The Top Six Animation Schools
    • The Top Video Game Design Schools
  • International Team
  • BPA
    • BPA 2017-2018 >
      • Getting organized
      • Building the Train
      • Texturing the Train
      • Animating the Train
      • Making our Entry Film
    • BPA 2018-2019
    • BPA 2019-2020
  • Arnold Lighting
  • Example for 1st Hour

Arrays

Having to go in and create a whole bunch of variables can be a huge pain. Typing, typing, typing, typing!!! There is a different way to create multiple variables all at once and it is called creating an Array

Here is an example
     int numbers[5];
the line above will create 5 slightly different variable that are an Integer. The five different variables created will be named
     numbers[0] 
     numbers[1]
     numbers[2]
     numbers[3]
     numbers[4]

​All of these variables can manipulated in any fashion that we have done in previous lessons. They can be added, subtracted, multiplied, and divided. They can also be modulo'ed, assigned values, inputed into, and so on.

​


Assignment

In this assignment you will begin to manipulate arrayed variables.
Build a program that:
1. Initializes a variable with the code below
2. Using a While Loop print out to the console all of the numbers in the loop that are even




​

Initial code

     var vector = new int [7] {4, 7, 2, 8, 1, 3, 0};


​

example results

​4 2 8 0
Proudly powered by Weebly