Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sorting code in c++
#1
Code:
1. #include <stdio.h> 2. #include <stdlib.h> 3. 4. int main() 5. { 6. int numbers[10] = {12,33,51,1,-1,97,7,23,0,-99}; 7. 8. sort(numbers,10); 9. display(numbers,10); 10. return 0; 11. } 12. 13. void sort(int *numbers, int size) 14. { 15. /* 16. Hop you could help me provide codes to sort the numbers. after calling this function, the numbers array in main should be sorted. 17. 18. hint: use the size for looping 19. */ 20. } 21. 22. void display(int *numbers, int size) 23. { 24. /* 25. this will print the array of integers that has been called. 26. */ 27. }

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ASCII code is binary numbers of 0 and 1 in C++ 2012 Vuhelper 0 2,278 01-04-2012, 10:41 PM
Last Post: Vuhelper
  int x[10]; x[0]= 1; x[1]=2; if following code is executable in C++ 2012 Vuhelper 0 1,935 01-04-2012, 10:17 PM
Last Post: Vuhelper
  array project code c++ 2011 Vuhelper 0 1,272 12-10-2011, 06:32 PM
Last Post: Vuhelper
  factorial in C++ code 2011 Vuhelper 0 943 12-10-2011, 06:31 PM
Last Post: Vuhelper
  ASCII to char conversion code in C++ 2011 Vuhelper 0 1,720 11-05-2011, 05:01 PM
Last Post: Vuhelper
  C++ with loop code 2011-12 Vuhelper 0 975 09-18-2011, 07:09 PM
Last Post: Vuhelper
  Revised Student Record Code written in C++ 2011-12 Vuhelper 0 1,478 09-04-2011, 07:18 AM
Last Post: Vuhelper
  c++ code check this code 2011-12 Vuhelper 0 1,097 09-04-2011, 07:17 AM
Last Post: Vuhelper
  ASCII code of c++ Vuhelper 0 1,222 06-07-2011, 07:01 PM
Last Post: Vuhelper
  describe the highlighted code//header files #include #include using namespace saneha 0 1,814 05-02-2011, 06:45 PM
Last Post: saneha

Forum Jump:


Users browsing this thread: 1 Guest(s)