I'm getting this message:Code:using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.String; namespace JWGenetics { // instance Class public class Prog { // public static void Main(string[] args) static void Main() { Genetics jw = new Genetics(); jw.prog(); } // end main } // end class prog public class Genetics { //create list for sire data public List<int> siregtype = new List<int>(); //create list for dam data public List<int> damgtype = new List<int>(); public const int rows = 128; public const int columns = 7; // create lists for dictionaries public List<int> colorslist = new List<int>(); public List<int> gtypelist = new List<int>(); // create sire & dam data 2D arrays public int[,] siredata = new int[rows, columns]; public int[,] damdata = new int[rows, columns]; //create offspring 1D array public int[] offspring = new int[14]; // create sire && dam 1D arrays public int[] sire = new int[14]; public int[] dam = new int[14]; // create child 4D array public int[, , ,] child = new int[color_counter, 4]; public Dictionary<string, int> colors = new Dictionary<string, int>(); public string color; //name Dictionary<string, string> geneo = new Dictionary<string, string>(); public string gtype; //geneotype // gene groups public int Broken, Agouti, Brown, Colour, Dilute, Ext, Vienna; // Vienna types flags bool vienna = false; bool vm = false; bool vc = false; //color flags bool dilute = false; bool charlie = false; bool broken = false; bool rew = false; // data holders public int sen1, sen2, sa1, sa2, sb1, sb2, sc1, sc2, sd1, sd2, se1, se2, sv1, sv2; public int den1, den2, da1, da2, db1, db2, dc1, dc2, dd1, dd2, de1, de2, dv1, dv2; public char colorpct; // declare counters // public int sirecounter = 0; public int damcounter = 0; public int offspringcounter = 0; public int totalcount = 0; public int color_count = 0; public static bool e_trap; // main function // start program run public void program() { //housekeeping // array setup variables for parseing combinations into the correct fields Broken = (rows / 2); Agouti = (Broken / 2); Brown = (Agouti / 2); Colour = (Brown / 2); Dilute = (Colour / 2); Ext = (Dilute / 2); Vienna = (Ext / 2); setup_sire(); setup_dam(); child_setup(); // child_calc(); // determine % of each pheneotype && output to screen return; }
Error 1 Program 'C:\Documents and Settings\XXXX\My Documents\Visual Studio 2010\Projects\LapinGenetics1\ConsoleApplication1\o bj\x86\Release\RabbitGenetics.exe' does not contain a static 'Main' method suitable for an entry point
I've checked the properties settings and they seem fine. What should be the properties settings?



LinkBack URL
About LinkBacks


