[gameprogrammer] Re: Simple C++ Program

Yeah, I've done the Hello World thing lol.  And that's pretty much it for now, 
but ive learned some new stuff but I don't know how to use it yet.
  From: Jake Briggs<mailto:jakbri@xxxxxxxxxxxxxx> 
  To: gameprogrammer@xxxxxxxxxxxxx<mailto:gameprogrammer@xxxxxxxxxxxxx> 
  Sent: Sunday, September 24, 2006 10:26 PM
  Subject: [gameprogrammer] Re: Simple C++ Program




  Mark Silence wrote:
  > On 9/24/06, boris Jiron 
<xxlildragonjr@xxxxxxx<mailto: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"?

  Jake

  -- 
  Jacob Briggs
  Systems Engineer

  Core Technology Limited
  Level 1, NZX Centre
  11 Cable Street
  Wellington
  Phone +64 4 801 2252

  --

  object doAnythingConceivable(string whatToDo, object whatToDoItWith) { ....




  ---------------------
  To unsubscribe go to 
http://gameprogrammer.com/mailinglist.html<http://gameprogrammer.com/mailinglist.html>


Other related posts: