Page 2 of 5

Posted: 25-04-2004 19:53
by GreyFox
donnu how to do that so ill just paste the code :P
_____________________________________________

#include <iostream>
#include <conio.c>
using namespace std;

void ritaKvadrat(int start, int bredd);
void skrivTecken(char tecken, int antal);

int main()
{
ritaKvadrat(10, 2);
ritaKvadrat(9, 4);
ritaKvadrat(8, 6);
getch();
return 0;
}

void ritaKvadrat(int start, int bredd)
{
for (int i = 0; i < bredd; i++)
{
skrivTecken(' ', start);
skrivTecken('*', bredd);
cout << endl;
}
}

void skrivTecken(char tecken, int antal)
{
for (int i = 0; i < antal; i++)
{
cout << tecken;
}
} // isnt ASCII fun????

Posted: 25-04-2004 20:39
by GoldenGun

Code: Select all

#include <iostream>
#include <conio.c>
using namespace std;

void ritaKvadrat(int start, int bredd);
void skrivTecken(char tecken, int antal);

int main()
{
ritaKvadrat(10, 2);
ritaKvadrat(9, 4);
ritaKvadrat(8, 6);
getch();
return 0;
}

void ritaKvadrat(int start, int bredd)
{
for (int i = 0; i < bredd; i++)
{
skrivTecken(' ', start);
skrivTecken('*', bredd);
cout << endl;
}
}

void skrivTecken(char tecken, int antal)
{
for (int i = 0; i < antal; i++)
{
cout << tecken;
}
} // isnt ASCII fun????


?!O_o

Posted: 25-04-2004 20:39
by GreyFox
ull have to paste it in c++ lol :P

and lol its not even worth tbh ^^

Posted: 25-04-2004 20:51
by speedy
ascii not c++

Posted: 25-04-2004 20:59
by GreyFox
using ascii chars ... so it still counts :P

Posted: 25-04-2004 21:01
by speedy
drawings not code :p

Posted: 25-04-2004 21:01
by fb.shev
..!..


... pff winnar

Posted: 25-04-2004 21:17
by GreyFox
if u run it will be a drawing in a way ^^

Posted: 25-04-2004 21:33
by speedy
run it then

Posted: 26-04-2004 05:34
by GoldenGun
```´´´
O O
v
\____/
| | /
( . ) ( . ) /
| | | |
. .
. .
/\
/ \
/ \
/ \
/ \>

Code: Select all

```´´´
 O    O
     v
\____/
   |  |       /
( . ) ( . ) /
  | | | |
 .        .
  .      .
    /\ 
   /  \
  /    \
 /      \
/        \>

Posted: 26-04-2004 05:35
by GoldenGun
doesn't work /o\

Posted: 26-04-2004 12:39
by Cenotaph

Code: Select all

\\                                  //          ============             ===========
 \\              //\\              //                ||                  ||
  \\            //  \\            //                 ||                  ||
   \\          //    \\          //                  ||                  ||
    \\        //      \\        //                   ||                  ||=====
     \\      //        \\      //                    ||                  ||
      \\    //          \\    //                     ||                  ||
       \\  //            \\  //                      ||                  ||
        \\//              \\//       [()]            ||           [()]   ||

Posted: 26-04-2004 13:31
by Maegrim

Code: Select all

( . Y . )

Posted: 26-04-2004 13:33
by f1end
If some1 tells me how to get spaces at the beginning of a line, you'll all thank them when i post my piccie...

HOW DO U DO SPACES?

Posted: 26-04-2004 14:13
by Messy
use

Code: Select all

 and 
f1end :)

That way it will be displayed in it's original form.

Oh yeah and:

\m/

..ascii is lame :< (gg goatse @ speedy..btw, this topic is so ripped from ina ;p)