Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEllipsis / variable parameters Pin
0v3rloader29-Aug-04 6:46
0v3rloader29-Aug-04 6:46 
GeneralRe: Ellipsis / variable parameters Pin
PJ Arends29-Aug-04 8:46
professionalPJ Arends29-Aug-04 8:46 
GeneralRe: Ellipsis / variable parameters Pin
0v3rloader29-Aug-04 9:48
0v3rloader29-Aug-04 9:48 
GeneralSequentially sorting Pin
Daniel132429-Aug-04 5:46
Daniel132429-Aug-04 5:46 
GeneralRe: Sequentially sorting Pin
Maximilien29-Aug-04 6:09
Maximilien29-Aug-04 6:09 
GeneralRe: Sequentially sorting Pin
Daniel132429-Aug-04 6:26
Daniel132429-Aug-04 6:26 
GeneralRe: Sequentially sorting Pin
Maximilien29-Aug-04 6:38
Maximilien29-Aug-04 6:38 
GeneralRe: Sequentially sorting Pin
Daniel132429-Aug-04 6:43
Daniel132429-Aug-04 6:43 
I figured this out...
	<br />
for (int yy = 0; yy < Size; yy++)<br />
{<br />
   for (int y = 1; y < Size; y++)<br />
   {<br />
      if (c[y] < c[y-1])<br />
      {<br />
         a = c[y-1];<br />
         b = c[y];<br />
         c[y] = a;<br />
         c[y-1] = b;<br />
         a = b = 0;<br />
      }<br />
   }<br />
}<br />


Size = size of int array.

Its ugly, but it works.
GeneralRe: Sequentially sorting Pin
Ryan Binns29-Aug-04 19:24
Ryan Binns29-Aug-04 19:24 
GeneralUse STL Pin
Kevin McFarlane8-Oct-04 11:11
Kevin McFarlane8-Oct-04 11:11 
GeneralFinding CRLF or other Characters in char Pin
shibble29-Aug-04 4:32
shibble29-Aug-04 4:32 
GeneralRe: Finding CRLF or other Characters in char Pin
Member 30761229-Aug-04 7:09
Member 30761229-Aug-04 7:09 
GeneralRe: Finding CRLF or other Characters in char Pin
shibble29-Aug-04 7:19
shibble29-Aug-04 7:19 
GeneralIndentation+word wrapping in Edit windows Pin
DaFrawg29-Aug-04 2:26
DaFrawg29-Aug-04 2:26 
GeneralRe: Indentation+word wrapping in Edit windows Pin
Ryan Binns29-Aug-04 19:34
Ryan Binns29-Aug-04 19:34 
QuestionDetect available ODBC data sources? Pin
Roland E.29-Aug-04 0:09
Roland E.29-Aug-04 0:09 
AnswerRe: Detect available ODBC data sources? Pin
JimmyRopes29-Aug-04 5:04
professionalJimmyRopes29-Aug-04 5:04 
Question"Small" bug in CSimpleArray ??? Pin
Ernesto D.28-Aug-04 22:47
Ernesto D.28-Aug-04 22:47 
AnswerRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Neville Franks28-Aug-04 23:54
Neville Franks28-Aug-04 23:54 
GeneralRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Ernesto D.29-Aug-04 9:47
Ernesto D.29-Aug-04 9:47 
GeneralRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Neville Franks29-Aug-04 10:56
Neville Franks29-Aug-04 10:56 
GeneralRe: &quot;Small&quot; bug in CSimpleArray ??? Pin
Ernesto D.30-Aug-04 22:02
Ernesto D.30-Aug-04 22:02 
AnswerReal world example (try it if you wish) Pin
Ernesto D.29-Aug-04 9:38
Ernesto D.29-Aug-04 9:38 
GeneralRe: Real world example (try it if you wish) Pin
Neville Franks31-Aug-04 10:09
Neville Franks31-Aug-04 10:09 
GeneralRe: Real world example (try it if you wish) Pin
Ernesto D.1-Sep-04 13:19
Ernesto D.1-Sep-04 13:19 

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.