first test - return 0/List of things wrong 1 iostream is...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <iostream> using namespace std int main(void) { cout <<"ME205 IS THE COOLEST!!!"<< endl return 0 } //Hey this is Brandon, and this is a simple program about circles. #include <iostream> #define pi 3.1415926 #define r 3 using namespace std int main(void) { cout <<"The area of a circle with radius of 3 is " << r*r*pi <<" The perimeter of a circle with radius 3 is "<< 2*pi*r << endl
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return 0 } //List of things wrong. 1. iostream is missing. 2. # is missing in front of define. 3. namespaces should be namespace. 4. void m a #include <iostream> #define Per 5.8774345 using namespace std int main(void) { cout <<"Approximate value of Per = " << Per << endl return 0 } Sheet1 Page 2 // print ME205 IS THE COOLEST!!! to the console...
View Full Document

This note was uploaded on 04/13/2010 for the course ME me205 taught by Professor Pryor during the Spring '09 term at University of Texas-Tyler.

Page1 / 2

first test - return 0/List of things wrong 1 iostream is...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online