On Monday 25 September 2006 05:26, Jake Briggs wrote: > Mark Silence wrote: > > On 9/24/06, boris Jiron <xxlildragonjr@xxxxxxx> wrote: > >> As I said before I am new to programming. Do you think you could > >> give me an > >> example of the code? > > > > If you are new to programming, and taking a beginning class, then > > you may not have gotten into arrays yet. > > Oh, good point. I forget what its like to be a beginner sometimes :) > > > If this is the case, an alternate, much messier, method of > > accomplishing this objective would be simply printing strings. > > > > I'd try basically the same approach as Mike and Jake suggested, > > start by using something like > > cout << "MMMMMMMMMM DDDDDDDDDD SSSSSSSSSS" << endl; > > > > you will nead to adjust the number of letters and number of cout > > statements to get a block of letters the size you want. Then, begin > > replacing letters with spaces inside the strings to begin forming > > the shape of the larger letter. > > You could just have : > > cout << "DDDDDDDDD " << endl; > cout << "DDDDDDDDDDD " << endl; > cout << "DDD DDDDDDDD " << endl; > cout << "DDD DDDDDDD " << endl; > cout << "DDD DDDDDD" << endl; > cout << "DDD DDDD" << endl; > cout << "DDD DDDD" << endl; > cout << "DDD DDDDDD" << endl; > cout << "DDD DDDDDDD " << endl; > > for a weird looking D. Then once you have it printing out like that, > work out how to use a for loop to spit out the same pattern :) > > I can't remember how soon I was introduced to arrays when I started > to learn programming (you never really stop), i am sure it wasn't > that late though.... > > How beginner are you anyway? Like a total n00b who has never written > anything apart from "hello world"? This is litle OT, but I add this one my friend has as (one of) his sig. main(i){for(;printf("\33[%d;%dH%c",1+i%5,i/5%78," >?%%> >" ">BB< B?2B B?2B ?0 "[(i/9999+i/5)%26]&1<<i%5?56:32);i++);} Quess what is his firstname;) --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html