Please Help!

I Need URGENT HELP PLX!!!!

Page 1 of 1

3 Replies - 1093 Views - Last Post: 17 November 2003 - 03:39 PM Rate Topic: -----

#1 kukoctony  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 10-November 02

Please Help!

Posted 16 November 2003 - 10:04 AM

I did most of my program but I couldn't figure out how to get user's banner and call functions to output the banner!! Should I use getline to get the banner and break it up or should I use a char for each letter ?? Please HELP!!!

I attached my work so far!!! Please Comment and HELP!!!!!

Problem:
I need to create a function for every letter in the alphabet and also one for a space. The main program should call these functions so that a phrase/word appears on the screen. If your phrase is too large, it will wrap around, this is ok.

The assignment is to have your banner print veritcally. As shown below:
I
H
A
T
E
T
H
I
S


You must allow the letters to be resized.

Your main program for the veritcal printing should look something like this: int main()
{
PrintLetterI(3);
PrintLetterSpace(3);
PrintLetterH(3);
PrintLetterA(3);
PrintLetterT(3);
PrintLetterE(3);
PrintLetterSpace(3);
PrintLetterT(3);
PrintLetterH(3);
PrintLetterI(3);
PrintLetterS(3);
return 0;
}

Attached File(s)

  • Attached File  lab8.cpp (25.77K)
    Number of downloads: 21


Is This A Good Question/Topic? 0
  • +

Replies To: Please Help!

#2 supersloth  Icon User is online

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4503
  • View blog
  • Posts: 28,410
  • Joined: 21-March 01

Re: Please Help!

Posted 16 November 2003 - 03:26 PM

i dont understand your final goal. are you just printing a phrase vertically? if so an array in a for loop should do the trick easy. what is the point of a function for every letter? what is each function supposed to do?
Was This Post Helpful? 0
  • +
  • -

#3 kukoctony  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 10-November 02

Re: Please Help!

Posted 17 November 2003 - 09:16 AM

I need to use *s to make a letter

for example
O is

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

please see my attached program to find out details.....

thx again for helping!!!!
Was This Post Helpful? 0
  • +
  • -

#4 runtime error  Icon User is offline

  • Lucky.Code
  • member icon

Reputation: 3
  • View blog
  • Posts: 629
  • Joined: 19-March 01

Re: Please Help!

Posted 17 November 2003 - 03:39 PM

you could just use getline with a character array and then break it up using a loop of your choosing. This is a simple way of doing it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1