Ron's Brain

Just hit Ctrl+F5 for a great new taste!
3 total messages. For real this time.
Hydrogen
08/30/2004 @ 23:19:48 EDT

Here's a quick program that can provide hours of entertainment!


10 PRINT "JOSH IS COOL"
20 GOTO 10

Hydrogen
08/31/2004 @ 13:00:30 EDT

Here's another fun one!


#include <unistd.h>
#include <stdio.h>

int main()
{
while(1)
{
printf("This code is forkin' sweet!\r\n");
fork();
}

return 0;
}

Protactinium
09/11/2004 @ 14:08:49 EDT

#include <iostream>
#include <string>
using namespace std;

int main()
{
const double HOURLY_WAGE = 6.75;

cout << "\nEnter the student's name (L, F, MI) : "; //To get their name.
string lastName, firstName;
char middleInitial;
cin >> lastName >> firstName >> middleInitial;
cout << "Enter their id number: "; //Can I have an Id number?
int idNumber;
cin >> idNumber;

cout << "Enter their hours this pay period: "; //This is also essential.
double hours;
cin >> hours;

double pay = hours * HOURLY_WAGE;

cout << "\nName: "
<< firstName << ' ' << middleInitial << ". " << lastName
<< "\nId Number: " << idNumber
<< "\nPay: $" << pay << '\n'; //Of course it has to be on new lines.

}

Here was my first homework assignment.

Recent users
Logged on users that have pretended to enjoy this site within the last five minutes
There are no logged on users. How sad!