Thread: i wanna make you enjoy with c

  1. #1
    /*enjoy*/
    Join Date
    Apr 2004
    Posts
    159

    Smile i wanna make you enjoy with c

    I want to make a function that displays characters of this way
    *************
    *************
    ****........ ****
    ************* == ==> To gold has A or a
    *************
    ****......... ****
    ****......... ****



    all without exeption
    I have begin has make it but it is long tre to be posteé has you to only give me ideés

    Code:
    .===> space
    Last edited by enjoy; 04-28-2004 at 04:15 PM. Reason: space

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Yea well in order to get help on your code you gotta first post it. It doesn't matter if its long (as long as its not huge).

    That and I don't understand your problem.

  3. #3
    Welcome to the real world
    Join Date
    Feb 2004
    Posts
    50
    If you wrote your posts in French, I would still not be able to understand what you are always trying to get at. But, for some reason I understand.

    You want to write letters to the screen (A, B, C, D, E, F, ..., Z), but have them in the form of:

    **************
    **************
    ***
    ***
    **************
    **************
    ***
    ***
    **************
    **************

    The only thing I could think of is to declare a char array[][] for each letter, and as you read user input, print out the two dimensional array. That should give you a start (which I doubt), but try some code and post the results/problems.

  4. #4
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    You could also implement a LED-type screen output. For each character, split it up into its 8 LED pieces and determine if they are on or not. Then have a function that prints them out. It would probably save 100x the memory since the only memory needed would be the 8x26 letters booleans (or bits).

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You couldn't just do eight pieces for each letter. You need at least a 5x5 grid for it. But, you could take that and use a 32bit int for it. That would still be a significant savings. However, another thing to consider is if you want the speed of having a lookup table, or if you want to have to do the calculation on each character every time you process every string. It would be significantly faster to have a lookup table, versus the computation of masking each bit and mapping it to your array or whatever it is you're using to hold your would-be output.

    Anyway, back to the 5x5 minimum:
    Code:
    oo*oo *ooo*
    o*o*o *ooo*
    ***** *o*o*
    *ooo* *o*o*
    *ooo* o*o*o
    A and W resepctively. Which is why you can't just use eight LED pieces as you would your alarm clock's LED bars. (Unless I'm mistaken in how you're thinking of representing each character.)

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  2. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  3. Need help With Scrolling Text - Wanna make Dialog Credits...
    By jekko in forum Windows Programming
    Replies: 10
    Last Post: 02-28-2004, 02:39 AM
  4. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM