Click here to Skip to main content
14,931,390 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: to get all da records.... Pin
Stephen Hewitt7-May-06 17:17
MemberStephen Hewitt7-May-06 17:17 
GeneralRe: to get all da records.... Pin
makaveli_077-May-06 17:22
Membermakaveli_077-May-06 17:22 
GeneralRe: to get all da records.... Pin
Stephen Hewitt7-May-06 18:15
MemberStephen Hewitt7-May-06 18:15 
QuestionRe: to get all da records.... Pin
Maxwell Chen7-May-06 20:38
MemberMaxwell Chen7-May-06 20:38 
AnswerRe: to get all da records.... Pin
Stephen Hewitt7-May-06 20:45
MemberStephen Hewitt7-May-06 20:45 
GeneralRe: to get all da records.... Pin
Maxwell Chen7-May-06 18:08
MemberMaxwell Chen7-May-06 18:08 
GeneralRe: to get all da records.... Pin
makaveli_077-May-06 20:33
Membermakaveli_077-May-06 20:33 
GeneralRe: to get all da records.... Pin
Stephen Hewitt7-May-06 20:42
MemberStephen Hewitt7-May-06 20:42 
If you had of tried it it would have worked. Here's a program which demonstrates this technique:
------------
// Console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main(int argc, char* argv[])
{
string s("1234");

sort(s.begin(), s.end());
do
{
cout << s << endl;
}
while ( next_permutation(s.begin(), s.end()) );

return 0;
}


Steve
QuestionAbout WM_KEYDOWN Pin
yourmom887-May-06 10:18
Memberyourmom887-May-06 10:18 
AnswerRe: About WM_KEYDOWN Pin
Neville Franks7-May-06 11:35
MemberNeville Franks7-May-06 11:35 
AnswerRe: About WM_KEYDOWN Pin
Russell'7-May-06 22:22
MemberRussell'7-May-06 22:22 
Questionwhy small ball jump, background bmp jump too? Pin
alan top7-May-06 9:32
Memberalan top7-May-06 9:32 
AnswerRe: why small ball jump, background bmp jump too? Pin
alan top7-May-06 22:52
Memberalan top7-May-06 22:52 
QuestionConvert an unsigned int to char* Pin
ThiagoFragoso7-May-06 8:59
MemberThiagoFragoso7-May-06 8:59 
AnswerRe: Convert an unsigned int to char* Pin
alan top7-May-06 9:43
Memberalan top7-May-06 9:43 
AnswerRe: Convert an unsigned int to char* Pin
Hamid_RT7-May-06 18:45
MemberHamid_RT7-May-06 18:45 
AnswerRe: Convert an unsigned int to char* Pin
Laxman Auti7-May-06 18:47
MemberLaxman Auti7-May-06 18:47 
AnswerRe: Convert an unsigned int to char* Pin
baldha rakesh7-May-06 20:37
Memberbaldha rakesh7-May-06 20:37 
QuestionProblem sockcore.cpp line 482 and 442 Pin
XStress7-May-06 7:59
MemberXStress7-May-06 7:59 
AnswerRe: Problem sockcore.cpp line 482 and 442 Pin
led mike7-May-06 18:13
Memberled mike7-May-06 18:13 
GeneralRe: Problem sockcore.cpp line 482 and 442 Pin
XStress7-May-06 20:57
MemberXStress7-May-06 20:57 
GeneralRe: Problem sockcore.cpp line 482 and 442 Pin
led mike8-May-06 5:42
Memberled mike8-May-06 5:42 
QuestionRemoving items unfer MFC Pin
dzldan7-May-06 6:19
Memberdzldan7-May-06 6:19 
AnswerRe: Removing items unfer MFC Pin
Maxwell Chen7-May-06 6:33
MemberMaxwell Chen7-May-06 6:33 
GeneralRe: Removing items unfer MFC Pin
dzldan7-May-06 7:23
Memberdzldan7-May-06 7:23 

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.