CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Need Help !! nsga source code implement into ccs c compiler

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
yast77



Joined: 19 Mar 2010
Posts: 1

View user's profile Send private message

Need Help !! nsga source code implement into ccs c compiler
PostPosted: Fri Mar 19, 2010 3:40 am     Reply with quote

Hi, anyone that have the modified source code of http://www.iitk.ac.in/kangal/codes/nsga/nsgaorig.tar that can be compiled and used in ccs c compiler? Because I got this error "expecting a declaration" from the following code.
Code:

struct indiv   

  unsigned *chrom;      /* chrosome string    */
  float fitness[MAXOBJ];   /* fitness functions    */
  float x[MAXVECSIZE];           /* variables        */
  float dumfitness;           /* modified objective   */
  int   flag;                   /* flag as follows
                     0 => untouched
                     1 => dominated
                          2 => non-dominated
                     3 => exhausted   */
  int   front;                  /* Front of the indiv.  */
  int   parent1;                /* two parents */
  int   parent2;
}; // <-- error here

typedef struct indiv INDIVIDUAL ;
typedef INDIVIDUAL *POPULATION ;   /* array of individuals */

Any help is appreciated ^^
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group