Ok, today we learned something new in CS2 (BOUT TIME), she refered to them as self-made functions, seems like a correct term. I am going to type in the program we made, i just want opinions as to what could/should have been done different, if anything. Its a really basic example but we know how she tends to give bad learnings so... Thanks.
Code:#include <iostream.h> int get_data(); int main() { int value; value = get_data(); cout<<value<<endl; return 0; } int get_data() { int data; cout<<"Enter a number: "; cin>>data; return data; }