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

General Discussion

Josh Keenan
Josh Keenan
20,315 Points

Help with C

So I'm trying to learn C and the next thing on my list of projects is to build a Star Naming game.

The idea being I have to print a 30x60 grid and randomly populate it with stars, within the stdout (console) and not in any format.

I need to use a 2d array but it hasn't been covered and I'm not entirely sure how to do this part of the game, can anyone help me out a bit?

Josh Keenan
Josh Keenan
20,315 Points

So the grid would output(after I do the rest of it)

..............................
..............................
..............................
..............................
..............................

all the way down until there are 60 rows

1 Answer

Hi Josh,

I had a little Google and found this which might be of use for you.

Steve.

Josh Keenan
Josh Keenan
20,315 Points

Steve you are a star <3

:+1: :+1: