Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to lock a CFile in VC++ 6.0? Pin
David Crow23-Sep-04 2:50
David Crow23-Sep-04 2:50 
GeneralCalling C# web service from c++/MFC Pin
fajlerköaölgja19-Sep-04 22:09
fajlerköaölgja19-Sep-04 22:09 
Generalstupid question Pin
eli1502197919-Sep-04 21:49
eli1502197919-Sep-04 21:49 
GeneralRe: stupid question Pin
fajlerköaölgja19-Sep-04 22:33
fajlerköaölgja19-Sep-04 22:33 
GeneralRe: stupid question Pin
eli1502197919-Sep-04 23:10
eli1502197919-Sep-04 23:10 
GeneralApplying Windows XP Visual Style Pin
aninddroy19-Sep-04 21:18
aninddroy19-Sep-04 21:18 
GeneralAdding IPv6 address programatically Pin
Alpha Siera19-Sep-04 19:13
Alpha Siera19-Sep-04 19:13 
GeneralTEMPLATE FUNCTIONS Pin
ISUstudent19-Sep-04 18:56
ISUstudent19-Sep-04 18:56 
Hi, My questions deals with Template Functions.

I am suppose to code these functions and write a driver program to test them with various types of arrarys. Each templated function should work on any size array of any type.

<b>sortArrary</b> to sort an array in ascending order (using < comparison) <b>NOTE: I must pass the array and its size. I can use either a selection sort or an insertion sort. </b>

<b>searchArry </b> to look for a target element in a given arrary and return the locations or -1 if the target is not found. This is to be a binary search. <b>NOTE: I must pass in a <i>sorted</i> array, its size, and the target element</b>.

<b>deleteItem</b> to delete an item from an arrary. <b>NOTE: I have to pass in an arrary, its size, and the targe5t to be deleted. I must pass in a <i>sorted</i> array, its size, and the target element</b>.



I am having trouble writing these functions.... Cry | :((

Thanks alot...Jason
GeneralRe: TEMPLATE FUNCTIONS Pin
Antti Keskinen19-Sep-04 23:08
Antti Keskinen19-Sep-04 23:08 
GeneralPragma Pin
caoquanghanh19-Sep-04 18:43
caoquanghanh19-Sep-04 18:43 
GeneralRe: Pragma Pin
Ramkrishna Pawar19-Sep-04 20:19
Ramkrishna Pawar19-Sep-04 20:19 
GeneralRe: Pragma Pin
caoquanghanh22-Sep-04 19:47
caoquanghanh22-Sep-04 19:47 
GeneralRe: Pragma Pin
Alpha Siera20-Sep-04 3:06
Alpha Siera20-Sep-04 3:06 
Generalcircular linked lists Pin
jhorstkamp19-Sep-04 17:42
jhorstkamp19-Sep-04 17:42 
GeneralRe: circular linked lists Pin
Antti Keskinen19-Sep-04 23:28
Antti Keskinen19-Sep-04 23:28 
GeneralString stuff Pin
Timothy Grabrian19-Sep-04 17:02
professionalTimothy Grabrian19-Sep-04 17:02 
GeneralRe: String stuff Pin
Aamir Butt20-Sep-04 0:06
Aamir Butt20-Sep-04 0:06 
GeneralRe: String stuff Pin
David Crow20-Sep-04 6:00
David Crow20-Sep-04 6:00 
GeneralRe: String stuff Pin
Timothy Grabrian20-Sep-04 11:59
professionalTimothy Grabrian20-Sep-04 11:59 
GeneralRe: String stuff Pin
David Crow20-Sep-04 16:52
David Crow20-Sep-04 16:52 
GeneralRe: String stuff Pin
Archer28220-Sep-04 13:16
Archer28220-Sep-04 13:16 
Generalchanging text color Pin
Jump_Around19-Sep-04 15:19
Jump_Around19-Sep-04 15:19 
GeneralRe: changing text color Pin
Archer28219-Sep-04 16:09
Archer28219-Sep-04 16:09 
GeneralRe: changing text color Pin
Sujan Christo20-Sep-04 1:52
Sujan Christo20-Sep-04 1:52 
Generalmaking your app upgradable Pin
mickelliot19-Sep-04 15:05
mickelliot19-Sep-04 15:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

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