Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialscipiosean
627 PointsHeight unexpected symbol SOLVED
I don't know what to do I don't have any of the symbols it says I have I honestly don't know whats happening
string heightInput = "168";
int.Parse(heightInput) = int height;
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Remember, we're creating a new variable. And the name of our new variable goes on the left of the equals, and the value assigned to it goes on the right. Yours is backwards.
string heightInput = "168";
int height = int.Parse(heightInput);
Here we declare a new integer named height and then we take the height input and parse the integer from the string. When that's done it's assigned back into height. Hope this helps!
scipiosean
627 Pointsscipiosean
627 PointsThanks alot going to leave this up incase anyone has the same problem as me. Thanks a mil for the help.