Advertisement
C_Volume2 Encryption #77593

TCrypt

Tcrypt has no text formatting available now but the encryption doesn't stuff up and random numbers are used (they work like a key, you need the same number to decrypt it) to make sure the encryption will look different every time. It has a multiple document interface and Encrypt and Decrypt buttons with a progress bar. Please vote since i made this only to put on this page.

AI

Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kode Sumber
original-source
Upload
/********An entertaining way of converting number into digis**********/
/*********************Tried and tested by-****************************/
/************************SUMIT THAWRANI*******************************/
/**********************[email protected]****************************/
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<math.h>
void main()
{
unsigned long dig,temp; //I prefer unsigned int as their range is much larger
unsigned long div;   //Just make sure that the number u enter is
int num,i;       // lesser than 4294977295 or be prepared to get an
int count=0,c;     // awkward answer
void word(int);
clrscr();
printf("Enter the digit to be converted into words :");
scanf("%lu",&dig);
printf("\nThe number you entered is : %lu\n",dig);
printf("\nAnd this can be written in words as ..");
temp=dig;
while (temp!=0)
{ temp=temp/10;
 count++;       //counts the number of digits in the given number
 }
temp=dig;
for(i=count-1;i>=0;i--)
{ c=temp/pow(10,i);
  div=pow(10,i);
  temp=temp%div;
  sound(random(9999)); //plays different sound
  delay(400);   //introduces some delay
  word(c);     //call to function word() to print word
  nosound();
  c=0;
}
getch();
}
void word(int i)
{
switch(i){
case 1: printf(" One ");
	break;
case 2: printf(" Two ");
	break;
case 3: printf(" Three ");
	break;
case 4: printf(" Four ");
	break;
case 5: printf(" Five ");
	break;
case 6: printf(" Six ");
	break;
case 7: printf(" Seven ");
	break;
case 8: printf(" Eight ");
	break;
case 9: printf(" Nine ");
	break;
case 0: printf(" Zero ");
	break;
				}
return;
}
Komentar Asli (3)
Dipulihkan dari Wayback Machine