Tuesday, May 25, 2010

C++ Programming

Alot of people think that programming is really hard. I would like to explain it to show how easy it is. When I put // it will mean things after that is explaining.


#include //basically just sets up the program

int main() //makes the main section of code
{ //starts everything in main

float pi = 3.14159; //makes a variable that holds 5 decimal places, name = pi, value = 3.14159
float pi2; //makes another decimal variable which will then hold pi times 2

pi2 = pi*2; //multiplies pi times 2

std::cout << pi2 <<"\n"; //std::cout tells it to print, pi2 shows pi2, \n makes new paragraph

system("PAUSE"); //waits for you to close the box
return 0; //just a thing needed to finish the program
} //ends the section called main.

you must always have a ; after each line except when using {} and int main() and #include .

For feedback I would just like to know how well you understand this now that it is broken down a bit. It was written in C++ coding.

Tuesday, May 18, 2010

Book Discussion

I'm reading the Hunger Games for my book group. I have a simple, but thought provoking question about the Hunger Games. I am wondering what you think will happen between Peeta and Katniss? Do you think they will fall in love or not, and why.

Tuesday, May 11, 2010

Dogs poem

Dogs

Trained to be pets,
Couch takers,
Frisbee chasers,
Walk lovers,
Dogs.

Daytime sleepers,
Scrap beggers,
Face lickers,
Tail chasers,
Man's best friend,
Dogs.

I'll take any feedback on this.

Wednesday, May 5, 2010

Wind

Blowing, howling, whistling.
Ruffling the grass,
Bending branches,
Cooling you off.
Hard to run into,
Gets dust in your eyes,
Wind.

I would just like to know what you thought about it, because it was just something I made up on the spot.

Wednesday, April 14, 2010




Try your best to read this. I would like suggestions on ways to reorganize it.




Tuesday, April 6, 2010

First Russian Space Walk Poem

Tethered on an 18 foot rope,
Aleksey Leonov floats in space.
Traveling 17,400 miles per hour,
Over looking the Pacific Ocean.
He is being shown on TV all over the world.
But the ten minutes go by too fast,
Making him hastily get back to the airlock.
But he can't find his hands or feet,
His suit has bloated from the pressure change.
If he does not get in soon his life support system will fail.
He dives headfirst into the airlock,
Then does a flip to face the door and close it.
He is safe now,
And pressurized air pumps into the airlock.
Does anyone have suggestions on how to make this better or see any mistakes?