Search:
Type: Posts; User: navy1991
Search:
Search took 0.01 seconds.
-
September 24th, 2013, 09:49 AM
The correct solution still eludes me. Every thing seems to work correct . I tried debugging line by line too. The method tries to search the correct combination by backtracking method. So even after...
-
September 24th, 2013, 08:12 AM
At GCDEF,
you are absolutely correct. I will try to use the debugger to interrupt execution and follow execution and to do all the fun stuff.
Regards.
-
September 24th, 2013, 07:39 AM
The specific problem is this:
This is the BASIC code of CheckPoss function:
FUNCTION CheckPoss (u)
tot = tot + 1
f = 0
SELECT CASE u
CASE 2
-
September 24th, 2013, 07:17 AM
Hi OReubens,
I did like you told.I got a code like this:
throw -- terminate on thrown exception REPLACEABLE
#define _HAS_EXCEPTIONS 0
#include <cstdio>
#include <cstdlib>...
-
September 24th, 2013, 07:00 AM
When I debugged it after removing comments , I got like this in the command window:
DEBUG2: m = 3 i = 0
{f} = 2 {u} 2
DEBUG2: m = 2 i = 0
The bug is exactly here at the end of...
-
September 24th, 2013, 05:42 AM
Hello Victor,
This is the reply that i get on my console window:
188 possibilities checked.
2147 million possibilities discarded.
0 solutions found.
Press any key to continue . . .
I...
-
September 24th, 2013, 05:38 AM
Hello Paul,
I will follow your advice from now on.
Regards,
Naveen.
-
September 24th, 2013, 05:35 AM
Hello victor,
please check the code below:
#include <iostream>
#include <math.h>
#include <string>
#include <cstdlib>
-
September 24th, 2013, 05:27 AM
Hi Paul,
My plan was to follow the logic as explained for the BASIC program. With this in mind, I started writing my code. In BASIC programming, the array starts from 1, but in C++ it starts...
-
September 24th, 2013, 05:11 AM
Hello Victor and Paul,
Here you go: This is the formatted code , which I am trying:
#include <iostream>
#include <math.h>
#include <string>
#include <cstdlib>
-
September 24th, 2013, 04:45 AM
Hello Paul,
I figured out that in the CheckPoss function, case 8 is not being checked .I tried to find the value of 'f' by inserting the comments , which u can see. But, I am still not...
-
September 24th, 2013, 04:38 AM
#include <iostream>
#include <math.h>
#include <string>
#include <cstdlib>
using namespace std;
long tot, tsol;
int P[8][6];
int A[8][1];
|
Click Here to Expand Forum to Full Width
|