CSE 250 Lecture Notes - Lecture 4: American Recovery And Reinvestment Act Of 2009, Optio

51 views3 pages

Document Summary

We could return an array, some grouping of doubles, etc. double average; double median; double range; When we are done with the pointers, they disappear and then the only thing left is the value we put in those addresses. //put the average in the variable average, etc. class statsinfo { public: A(cid:374) arra(cid:455) (cid:449)ould(cid:374)"t (cid:271)e the (cid:271)est optio(cid:374) (cid:271)e(cid:272)ause there (cid:449)ould(cid:374)"t (cid:271)e a great (cid:449)a(cid:455) to tell the user (cid:449)hat is going where. Real-world application: i(cid:374)t s(cid:455)s_(cid:449)rite(cid:894) . , i(cid:374)t* ret(cid:448)al(cid:895); int = the error (if any is shown occurs) int* = the actual value we wanted to return. Homework application: (cid:271)ool isneigh(cid:271)orhoodvia(cid:271)le(cid:894) . , bool* const chosencusts) { bool = if we were able to find any subsets of customers that works bool* = the actual subset of valid customers, if any were found (if bool was true) 8 4 6 2 32 62 1 3 bool* x = new bool[16]; int n = 164;

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