Senin, 14 Desember 2015

Program Membuat Nama Dengan Symbol ( Borland C++)

Pusing mikir tugas kuliah ? .. hahaha... sama.... ni kali ini admin memberikan contoh membuat sebuah tulisan nama dengan menggunakan simbol sehingga kumpulan simbol tersebut membentuk sebuah tulisan, silahkan di simak,,

Program Membuat Nama Dengan Symbol ( Borland C++)
Program Membuat Nama Dengan Symbol ( Borland C++)
Syntax Program

 #include<stdio.h>
    #include<conio.h>
    #include<iostream.h>
    main()

    {
    int i,j;
    int sdr[7][49]={
                            {1,1,1,1,0,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0},
                            {1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1},
                            {1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,0,1,1,1,1,0,0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1},
                            {1,1,1,1,0,0,0,1,0,0,0,1,0,0,1,1,1,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0,1,0,0,1,1,1,1},
                            {1,1,1,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,1,1},
                            {1,0,1,1,0,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1},
                            {1,0,0,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1}
                            };
    clrscr();
    for(i=0;i<7;i++)
    {
    for(j=0;j<49;j++)
    {
    if(sdr[i][j])
    putchar('\1');
    else
    putchar(' ');
    }
    cout<<endl;
    }
    getch();

    }

Hasil Running

Program Membuat Nama Dengan Symbol ( Borland C++)
Program Membuat Nama Dengan Symbol ( Borland C++)

2 komentar: