• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Content Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Paul Jamieson
    Paul Jamieson
    2,698 Points

    Add default value where?

    Posted January 31, 2016 11:39pm by Paul Jamieson
    Paul Jamieson
    2,698 Points
    • iOS
    • Swift Enums and Structs
    • Structs
    • Review Structs

    1 Answer

  • Jason S
    Jason S
    16,247 Points

    Add a default value of 0.0 for the amount property of the Expense struct.

    Posted March 29, 2015 4:39am by Jason S
    Jason S
    16,247 Points
    • iOS
    • Swift Enums and Structs
    • Structs
    • Review Structs

    2 Answers

  • Marco Leo
    Marco Leo
    1,007 Points

    im a bit confused in this simple question

    Posted March 24, 2015 4:01pm by Marco Leo
    Marco Leo
    1,007 Points
    • iOS
    • Swift Enums and Structs
    • Structs
    • Review Structs

    1 Answer

  • Carlos Pedraza
    PLUS
    Carlos Pedraza
    Courses Plus Student 2,413 Points

    Could be possible to create an array of structs?

    Posted March 14, 2015 8:07pm by Carlos Pedraza
    Carlos Pedraza
    Courses Plus Student 2,413 Points
    • iOS
    • Swift Enums and Structs
    • Structs
    • Review Structs

    0 Answers

  • Vincent natale
    Vincent natale
    1,784 Points

    I'm not too sure what you are asking me to do here. I have set an init but that is not the same as a default

    Posted January 9, 2015 11:10pm by Vincent natale
    Vincent natale
    1,784 Points
    • iOS
    • Swift Enums and Structs
    • Structs
    • Review Structs

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.