Click here to Skip to main content
14,840,384 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555616-Sep-19 3:06
MemberMember 1457555616-Sep-19 3:06 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu16-Sep-19 8:05
Member_Flaviu16-Sep-19 8:05 
GeneralRe: MFC vc++ and MySQL database Pin
Member 1457555617-Sep-19 20:29
MemberMember 1457555617-Sep-19 20:29 
GeneralRe: MFC vc++ and MySQL database Pin
_Flaviu18-Sep-19 1:10
Member_Flaviu18-Sep-19 1:10 
Question_open generate "Access is denied" error Pin
_Flaviu1-Sep-19 7:44
Member_Flaviu1-Sep-19 7:44 
AnswerRe: _open generate "Access is denied" error Pin
Graham Breach1-Sep-19 21:04
MemberGraham Breach1-Sep-19 21:04 
AnswerRe: _open generate "Access is denied" error Pin
Richard MacCutchan1-Sep-19 22:04
mveRichard MacCutchan1-Sep-19 22:04 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 1:58
Member_Flaviu2-Sep-19 1:58 
QuestionRe: _open generate "Access is denied" error Pin
Richard MacCutchan2-Sep-19 5:42
mveRichard MacCutchan2-Sep-19 5:42 
AnswerRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 0:30
Member_Flaviu4-Sep-19 0:30 
GeneralRe: _open generate "Access is denied" error Pin
Richard MacCutchan4-Sep-19 1:10
mveRichard MacCutchan4-Sep-19 1:10 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 1:18
Member_Flaviu4-Sep-19 1:18 
GeneralRe: _open generate "Access is denied" error Pin
Richard MacCutchan4-Sep-19 1:31
mveRichard MacCutchan4-Sep-19 1:31 
AnswerRe: _open generate "Access is denied" error Pin
leon de boer1-Sep-19 22:19
Memberleon de boer1-Sep-19 22:19 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 1:37
Member_Flaviu2-Sep-19 1:37 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu2-Sep-19 3:27
Member_Flaviu2-Sep-19 3:27 
GeneralRe: _open generate "Access is denied" error Pin
leon de boer2-Sep-19 14:52
Memberleon de boer2-Sep-19 14:52 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 0:29
Member_Flaviu4-Sep-19 0:29 
GeneralRe: _open generate "Access is denied" error Pin
Victor Nijegorodov4-Sep-19 1:58
MemberVictor Nijegorodov4-Sep-19 1:58 
GeneralRe: _open generate "Access is denied" error Pin
_Flaviu4-Sep-19 9:01
Member_Flaviu4-Sep-19 9:01 
GeneralRe: _open generate "Access is denied" error Pin
Victor Nijegorodov4-Sep-19 9:09
MemberVictor Nijegorodov4-Sep-19 9:09 
GeneralRe: _open generate "Access is denied" error Pin
leon de boer4-Sep-19 15:03
Memberleon de boer4-Sep-19 15:03 
GeneralBacktracking in C. Pin
Washiko31-Aug-19 20:23
MemberWashiko31-Aug-19 20:23 
GeneralRe: Backtracking in C. Pin
Richard MacCutchan31-Aug-19 20:57
mveRichard MacCutchan31-Aug-19 20:57 
GeneralRe: Backtracking in C. Pin
Stefan_Lang3-Sep-19 4:52
mveStefan_Lang3-Sep-19 4:52 
Washiko wrote:
A + E + B is not valid

I don't see why not. Above the condition was stated that
Washiko wrote:
a coalition of More than 60 must be negotiated

which means neither A+E nor A+B or B+E would be enough - all three are needed to get more than 60.

As for your program, if you don't know what backtracking means, look up recursion and backtracking. There's nothing difficult about coding these concepts in C. If you do know what it means, write a program and, if at any point you're stuck, show the code you're stuck with.

We don't write full programs for other people on request. If it's homework, we'd do you a disfavor by destroying a chance for you to learn. If it's work, you'd get paid, and you can't expect from others to do that work for you without payment. If it's a contest, it's part of the contest to find out how to write the program - if others do it for you it tells nothing about your skills, and it would be unfair to the other contestants.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

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.