Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,673 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,183 people online right now. Registration is fast and FREE... Join Now!




Write a program that prints CS in Large block letters

2 Pages V  1 2 >  
Reply to this topicStart new topic

Write a program that prints CS in Large block letters

EE student
post 15 Jul, 2007 - 07:41 AM
Post #1


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


Hi, can someone please help me program on how to output CS in large block letters inside a border of *s.
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 15 Jul, 2007 - 07:43 AM
Post #2


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


QUOTE(EE student @ 15 Jul, 2007 - 08:41 AM) *

Hi, can someone please help me program on how to output CS in large block letters inside a border of *s.


CODE

#include <stdio.h>

int main(void) {
  int i;

  for(i=0;i<20;i++) printf("*");
  printf("\n");

  return 0;
}


This should get you started, reply when you have some of your own code.

Good luck to you.
User is offlineProfile CardPM

Go to the top of the page

EE student
post 15 Jul, 2007 - 07:46 AM
Post #3


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


if i knew how to program that i wouldnt have asked so can you please give me hint or something good so i can try to write my own code
User is offlineProfile CardPM

Go to the top of the page

EE student
post 15 Jul, 2007 - 08:04 AM
Post #4


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


i am keep on getting a error
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 15 Jul, 2007 - 08:06 AM
Post #5


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,354



Thanked 58 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


QUOTE(EE student @ 15 Jul, 2007 - 08:46 AM) *

if i knew how to program that i wouldnt have asked so can you please give me hint or something good so i can try to write my own code

Then I have to ask, if you don't know HOW to program, why do you have this project?
User is offlineProfile CardPM

Go to the top of the page

EE student
post 15 Jul, 2007 - 08:10 AM
Post #6


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


because this is a beginnnig college CS class and the teacher assigned us to do it can you please help me no2pencil
User is offlineProfile CardPM

Go to the top of the page

EE student
post 15 Jul, 2007 - 08:17 AM
Post #7


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


can someone please help me
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 15 Jul, 2007 - 08:31 AM
Post #8


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,178



Thanked 33 times

Dream Kudos: 25
My Contributions


Please post the error you are receiving, as well as the code you are currently using. Also, are you using C or C++?
User is offlineProfile CardPM

Go to the top of the page

MorphiusFaydal
post 15 Jul, 2007 - 08:32 AM
Post #9


D.I.C Lover

Group Icon
Joined: 12 May, 2005
Posts: 1,086



Thanked 8 times

Expert In: Hardware, Networking

My Contributions


Show us what you've tried to do so far, and we'll help you.

Rule number 1 of dream.in.code : Your homework will not be done for you.
User is offlineProfile CardPM

Go to the top of the page

EE student
post 15 Jul, 2007 - 08:38 AM
Post #10


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


the code that i am using s the above formentioned and i am using c++
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 15 Jul, 2007 - 08:42 AM
Post #11


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,178



Thanked 33 times

Dream Kudos: 25
My Contributions


That code is C code. What is the error you are receiving? A translation of the code previously given to you would be:

CODE

#include<iostream>
using namespace std;

int main(void)
{
   for(int i=0;i<20;i++)
   {
      cout<<"*";
   }
   cout<<endl;
   return 0;
}

Again, it is to demonstrate some basic functionality....
User is offlineProfile CardPM

Go to the top of the page

EE student
post 15 Jul, 2007 - 08:44 AM
Post #12


New D.I.C Head

*
Joined: 15 Jul, 2007
Posts: 12


My Contributions


yes its the code im using but i do not know how to insert CS in block letters thats what i am trying to figure out
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Reply to this topicStart new topic
Time is now: 11/23/08 06:19AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month