Make your own free website on Tripod.com
Source Codes
A list Of The First Source Codes
Simplesource
 _______________________________________       

 #include <iostream> //difinition for cout, and cin.
#include <stdio.h>

float d, a, v, i, e, sum, answer, answeur, product, differance, suum, diff, m, pro;
//Float makes the number have decimals in it instead of using 'int'
int main()

{
    cout << "David Dawkins hopes you appreciate this simple thing he has made\n";
    cout << "For his audience to enjoy.It was created Feb 10, 2001\n";
    cout << "Enter a number\n"; //This is displayed
    cin >> d;   //This is what you type in
    cout << "Enter another number\n";
    cin >> a;
    differance = d - a; //D the number you choose, minus A the number you choose
    sum = d + a;
    cout << "The differance is " << differance << "\n";
    cout << "The sum is " << sum << "\n";
    cout << "Enter another number\n";
    cin >> v ;
    answer = d + a + v ;
    cout << "So the number " << v << " plus the number " << d << " plus the number " << a << "\n";
    cout << "Equals the new number " << answer << "\n";
    cout << " Enter yet another number\n";
    cin >> i;
    answeur = d * a * v * i;
    cout << " Those numbers " << d <<" "<< a <<" "<< v <<" "<< i << "\n";
    cout << " Times each other, all equal " << answeur << "\n";
    suum = d + a + v + i;
    cout << "Also if you were curious, those numbers added together equal\n";
    cout << suum << "\n";
    cout << "If you dare enter a new number\n";
    cin >> e;
    diff = d - a - v - i - e;
    pro = d * a * v * i * e;
    cout << "This one is big. " << d <<" "<< a <<" "<< v <<" "<< i <<" "<< e <<"\n";
    cout << "Subtracted in order equal " << diff << "\n";
    cout << "All those numbers multiplied together all equal " << pro << "\n";
    cout << "The purpose of this program was for me to understand how easy it is to program\n";
    cout << "In C++ that I did at my house at the age of 12.\n";
    cin >> m;
    return 0;
    }


This one was made by a different owner.
Zodiac
_______________________________________

#include<stdio.h>
void main()
{
int sign;
char yn[4];
printf("Would you like your horoscope?\n");
scanf("%s",yn);
while(yn[0] == 'y' || yn[0] == 'Y')
 {
 printf("Enter your sign.\n");
 printf("(1) Pisces\n(2) Libra\n(3) Cancer\n(4) Scorpio\n");
 printf("(5) Leo\n(6) Gemini\n(7) Sagitarius\n(8) Aquarius\n");
 printf("(9) Taurus\n(10) Aries\n(11) Virgo\n(12) Capricorn\n\n\n");
 scanf("%d",&sign);
  switch (sign)
   {
   case 1:
    printf("\n\nYou will be having a fishy day!");
    break;
   case 2:
    printf("\n\nYour day will be perfectly balanced!");
    break;
   case 3:
    printf("\n\nDon't be crabby to your friends!");
    break;
   case 4:
    printf("\n\nYou will put some sting into someone's day!");
    break;
   case 5:
    printf("\n\nYou will have a ROARingly good day!");
    break;
   case 6:
    printf("\n\nYou will double your fun today!");
    break;
   case 7:
    printf("\n\nYou will shoot straight all day!");
    break;
   case 8:
    printf("\n\nYou will be watered down and moody.");
    break;
   case 9:
    printf("\n\nYou will be Bull-Headed all day!");
    break;
   case 10:
    printf("\n\nYou will be ramming your way to the top!");
    break;
   case 11:
    printf("\n\nYour day will go mostly untouched.");
    break;
   case 12:
    printf("\n\nDon't let anyone get your goat!");
    break;
   default:
    printf("\n\nThat sign does not compute.");
    break;
   }
  printf("\n\n\nWould you like to see another horoscope?");
  scanf("%s",yn);
  }
 }