CS 225 Lecture Notes - Lecture 2: Cube Root, A.Out, Semicolon

66 views4 pages

Document Summary

11:01 am course policies: https://chara. cs. illinois. edu/cs225 general assistance (ews, svn, etc. ) Post to piazza hw0 available, due 8/29 before lecture. #include using namespace std; int main() { int a = 8; cout << a << endl; return 0; clang++ ex0824. cpp the uoi. // clang is part of the l vm project that is a product of. #include using namespace std; class sphere { // there error would show [file name]:[line of error] if there"s no semicolon. Cs 225 - lecture page 1 int main() { int a = 8; sphere b; cout << a << endl; cout << b << endl; // we can"t do this because cout is not built. // for custom types such as "sphere" return 0; /* how would we define sphere? design discussion we could define the sphere with it"s radius, or diameter, or volume. The reason is because it"s a more complex piece of data.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents