15,900,818 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: current user David Crow12-Dec-17 15:42 David Crow 12-Dec-17 15:42
 unsigned and signed in C Anonygeeker11-Dec-17 18:45 Anonygeeker 11-Dec-17 18:45
 Re: unsigned and signed in C Shaurya Sinha11-Dec-17 19:23 Shaurya Sinha 11-Dec-17 19:23
 Re: unsigned and signed in C Anonygeeker11-Dec-17 20:01 Anonygeeker 11-Dec-17 20:01
 Re: unsigned and signed in C Shaurya Sinha11-Dec-17 20:05 Shaurya Sinha 11-Dec-17 20:05
 Re: unsigned and signed in C Rick York12-Dec-17 4:45 Rick York 12-Dec-17 4:45
 Re: unsigned and signed in C David Crow12-Dec-17 15:44 David Crow 12-Dec-17 15:44
 Writing a Sorting Algorithm -- NEED HELP! Member 135671429-Dec-17 11:36 Member 13567142 9-Dec-17 11:36
 Introduction to the data: NOAA's National Centers for Environmental Information collects global climate data and aggregates this data to provide information on climate trends and variability. One product they offer is a monthly regional analysis. The following table gives "anomaly" data by continent for January 2017. "Anomaly" means the value is the temperature difference from the average temperature from years 1910–2000. Continent Anomaly (C) North America 3.18 South America 1.36 Europe -0.12 Africa 0.53 Asia 1.92 Oceania 0.98 Assignment task: Your task is to develop an algorithm that would sort data such as these from least to greatest. Specifically, given an unsorted set of N decimal values, your algorithm should sort them to give an answer of the sorted data. For this set of N = 6, your algorithm should produce: -0.12 0.53 0.98 1.36 1.92 3.18 Execute your algorithm for a different set of data, such as a subset of the given data, data you make up, or another month's climate data, such as February 2017: https://www.ncdc.noaa.gov/sotc/global-regions/201702 Does your algorithm work for any N? Have you thought of corner cases it might need to handle, such as N = 0 or N = 1?
 Re: Writing a Sorting Algorithm -- NEED HELP! PIEBALDconsult9-Dec-17 11:37 PIEBALDconsult 9-Dec-17 11:37
 Re: Writing a Sorting Algorithm -- NEED HELP! Member 135671429-Dec-17 12:01 Member 13567142 9-Dec-17 12:01
 Re: Writing a Sorting Algorithm -- NEED HELP! Richard MacCutchan9-Dec-17 21:52 Richard MacCutchan 9-Dec-17 21:52
 Re: Writing a Sorting Algorithm -- NEED HELP! David Crow10-Dec-17 14:31 David Crow 10-Dec-17 14:31
 local pointer need to initialize or not? samzcs8-Dec-17 8:04 samzcs 8-Dec-17 8:04
 Re: local pointer need to initialize or not? jschell8-Dec-17 8:43 jschell 8-Dec-17 8:43
 Re: local pointer need to initialize or not? samzcs8-Dec-17 16:15 samzcs 8-Dec-17 16:15
 Re: local pointer need to initialize or not? jschell11-Dec-17 7:03 jschell 11-Dec-17 7:03
 Re: local pointer need to initialize or not? CPallini8-Dec-17 11:20 CPallini 8-Dec-17 11:20
 How to make global 2D array using vectors User 135094507-Dec-17 23:14 User 13509450 7-Dec-17 23:14
 Re: How to make global 2D array using vectors Richard MacCutchan8-Dec-17 0:04 Richard MacCutchan 8-Dec-17 0:04
 Re: How to make global 2D array using vectors Jochen Arndt8-Dec-17 0:05 Jochen Arndt 8-Dec-17 0:05
 Re: How to make global 2D array using vectors CPallini8-Dec-17 6:14 CPallini 8-Dec-17 6:14
 Re: How to make global 2D array using vectors User 1350945013-Dec-17 7:46 User 13509450 13-Dec-17 7:46
 Re: How to make global 2D array using vectors CPallini13-Dec-17 8:11 CPallini 13-Dec-17 8:11
 System tray justin12046-Dec-17 22:51 justin1204 6-Dec-17 22:51
 Re: System tray Jochen Arndt6-Dec-17 23:15 Jochen Arndt 6-Dec-17 23:15
 Last Visit: 31-Dec-99 18:00     Last Update: 18-May-24 5:52 Refresh ᐊ Prev1...319320321322323324325326327328 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.