October 15th, 2012 03:34 AM
void CFileMgm::write(string fname, solutions databox)
{
file1.open (fname.c_str(), ios::out);
if (file1.is_open())//if(file)+
{
file1<<"Population Size is : ";
...
September 26th, 2012 02:50 PM
thankyou for your help, small and may be last question e.g there is object named sol of type solutions im calling updateAllViews and passing this object, doing type cast that object, after which it...
September 24th, 2012 02:27 PM
yes it is SDI and windows explorer based, and has dialogs from menu
class CRightView : public CListView
yes this is the case.
September 24th, 2012 02:26 PM
yes it is SDI and windows explorer based, and has dialogs from menu
class CRightView : public CListView
yes this is the case.
September 24th, 2012 02:13 PM
CString str( arr.GetData() ); i tried this and getting errors like
CString(const class CString &)' : cannot convert parameter 1 from 'class CString *' to 'const class CString &' when i try this...
September 24th, 2012 01:34 PM
i have to get the file name from open file dialog so i must call this function in either openfile or open document and then pass it on to this read function
and question 3 was asked after viewing...
September 24th, 2012 09:42 AM
i dont have any problem with creating right view, thanx for your help but i already know that, what im asking is about reading file and tokenizing and then getting access to that read data for...
September 24th, 2012 05:32 AM
these are the things i can just read and understand im totally new at this can smone plz give me step by step guide and some sample code, i know how to create list view and adding items and columns...
September 24th, 2012 04:35 AM
i want to display data from text file in list view and in tree view root will be file name, but i dont know how to do it, the problem is with displaying text file data in list view, i don't know...
September 22nd, 2012 05:36 AM
for those who are reading these replies because they are facing similar errors, i have resolved my issue what you can do is try naming your composed object variable with lower case letters, check for...
September 21st, 2012 02:04 AM
have sent all the required code can u plz figure out whats te problem bcz i dnt knw what is problem in declaring member like that, i dont think there is some problem but i feel tat there is some...
September 20th, 2012 09:57 AM
[DIALOG CLASS]#if !defined(AFX_DIALOGPARAM_H__0C7E02C5_D8E6_4248_9292_25525F458CCB__INCLUDED_)
#define AFX_DIALOGPARAM_H__0C7E02C5_D8E6_4248_9292_25525F458CCB__INCLUDED_
#if _MSC_VER > 1000...
September 20th, 2012 09:47 AM
is this possible that i mail you my project? if it is not possible i will send you all the complete header files with everything all guards headers etc.
September 20th, 2012 09:45 AM
CTspGAParams GAParameters;
this is the line where i get errors i have composed objects of same class in two other classes also but it always gives me same error, plz tell me how can i resolve this...
September 20th, 2012 08:44 AM
i have deleted them in sending you
September 20th, 2012 08:43 AM
September 20th, 2012 08:34 AM
this is doc class dialog box takes input and that input is passed to generic class object of GAParams
September 20th, 2012 08:32 AM
I have sent both header files cpp files however not sent yet if you want them too i can send but they are lil lenghty
September 20th, 2012 08:30 AM
class CTspGAParams
{
int PopSize;
int n_Cities;
int MaxIeration;
double CrossOverRate;
double MutationRate;
//double LowerFitLimit;
//double UpperFitLimit;
September 20th, 2012 08:29 AM
#include "Tour.h"
#include "TspGAParams.h"
class CPop
September 20th, 2012 08:27 AM
what u wan me to send there are so many files and so many classes
September 20th, 2012 08:06 AM
im not getting error i dont know what is meant by these errors
September 20th, 2012 08:05 AM
#include "TspGAParams.h"
yes above file is included in pop header
September 20th, 2012 07:49 AM
class CPop
{
CBSVector<CTour> pop;
CBSVector<double> probability;
int popsize;
double TotalFitness;
CTour Elite;
CTspGAParams GAParameters;
}
August 7th, 2012 12:10 AM
has any one worked with genetic algorithms. im solving travelling salesman problem with genetic algorithm and unfortunately stuck at crossover im using partially mapped cross over. i have tried...