Bummer! You must be logged in to access this page.

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 trial

iOS

Stuck! Need Help!

I've been working on this for hours and can't find the answer. I need help on this question:

Declare 2 separate variables of type char named "alpha" and "bravo". Assign the letter 'a' to the variable "alpha" and the letter 'b' to "bravo".

Thank you!

Please post a link to the challenge. Also, it's not a good idea to post two different threads on the same topic. Better to continue the conversation in the original thread.

Also, please post the code you are using that is failing.

6 Answers

How do you link it?

When you are in the Challenge, copy the URL from your browser and paste it here.

OK, thanks. Now please post your code that isn't working. I tried it based on the advise in the other post, and it worked. There is probably a typo or something small that is missing in your code.

Hey Mike have you finished Building an interactive website? If so can you help me with http://codepen.io/AcesUp/pen/spnrl

thanks!

Hi Stephen, I'll be glad to help. Please start a new post with a description of the problem you are having, the link to your code, and a link to the challenge, if it pertains to a challenge.'

Thanks!

You REALLY need to create a new post for this.

Stephen, please create a new discussion! We'd be happy to help you!

What did you type to get it right?

Giving the answer straight-away would defeat the purpose of learning. It's best to see what you're doing wrong first, and then understand what you need to do to get it right. Have you re-watched the video before the challenge?

It often helps to watch a video multiple times if you're stuck at the challenge to see exactly where you are going wrong.

Yes. This is what I put: char alpha = 'a'; char bravo = 'b'; char letters[2]; letters[0] = alpha; letters[1] = bravo;

OK, we can work with that.

You are declaring the alpha and bravo variables correctly. Why did you add the additional code? It didn't ask for that -- assuming you are on task 1 of the challenge (which your original post shows you are at). If you're still on task one, remove the extra code, and see if it likes it then.

It works thanks!

Excellent, Alexander! The challenge engine is very specific in what it expects each time you hit submit, so even though the code you had there wasn't wrong, it wasn't expecting it, so it failed your task.

''' char alpha = 'a'; char bravo = 'b'; char letters[2]; letters[0] = alpha; letters[1] = bravo;

'''

'''javascript char alpha = 'a'; char bravo = 'b'; char letters[2]; letters[0] = alpha; letters[1] = bravo; '''