Imagine and Creative

Welcome to Blogspot. ShareIn-Share-Out

Low Definition

Welcome to Blogspot. ShareIn-Share-Out

With natural

Here's an mp3 file that was uploaded as an attachment: Juan Manuel Fangio by Yue And here's a link to an external mp3 file: Acclimate by General Fuzz Both are CC licensed. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, ...

Games

Some block quote tests: Here's a one line quote. This part isn't quoted. Here's a much longer quote: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In dapibus. In pretium pede. Donec molestie facilisis ante. Ut a turpis ut ipsum pellentesque tincidunt. Morbi blandit sapien in mauris. Nulla lectus lorem, varius aliquet, ...

History

I'm just a lowly contributor. My posts must be approved by the editor.Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra. Nulla in tellus eget odio sagittis blandit. Maecenas at ...

Posted by Yusuf Maulana Penayata - - 0 komentar




Disini saya akan membuat program ShiftChiper , yaitu program encrypt dan decrypt sederhana dengan menggunakan Borland C++ 5.02. Semoga bermanfaat ^_^

To Open My Eyes To Be All I Can Be


#include iostream.h;
#include stdio.h;
#include conio.h;

void encrypt(int shift);

int main(void)
{
int shift;
int decOrEnc;

cout<<"| ======================= |\n";
cout<<"| Program Encrpyt Decrypt |\n";
cout<<"| ======================= |\n";
cout<<"| By Yusuf Maulana P |\n";
cout<<"| ======================= |\n";

cout<<"Masukkan angka pergeseran : ";
cin>>shift;
if (shift < 0)
{
cout<<"Bad Input.";
getch();
return 0;
}
cout<<"Ketikkan 1 untuk encrypt atau 0 untuk decrypt : ";
cin>>decOrEnc;
if (decOrEnc != 0 && decOrEnc !=1)
{
printf("Bad Input.");
return 0;
}
while(getchar() != '\n');
if (decOrEnc == 1)
encrypt(shift);
else
{
shift = -1 * shift;
encrypt(shift);
}
getch();
return 0;
}

void encrypt(int shift)
{
char ch;
cout<<"Inputkan string : ";
ch = getchar();
while(ch != '\n')
{
if (ch == ' ')
{
putchar(ch);
}
if(shift == 1){
putchar(ch + shift);
}
else{
putchar(ch - shift);
}
ch = getchar();
}
putchar(ch);
}
[ Read More ]