Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct weather
- {
- string date;
- int high;
- int low;
- };
- int find_pos_of_smallest (weather data, int start_pos, int end_pos);
- int main()
- {
- int days = 365;
- weather data[days];
- /* Do stuff to initialize data */
- cout<<find_pos_of_smallest(data, 0, days)<<endl;
- return 0; //no error so return a zero
- }//end of program
- int find_pos_of_smallest (weather data, int start_pos, int end_pos)
- {
- /* ... */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement