0 Replies - 281 Views - Last Post: 20 April 2009 - 11:27 AM Rate Topic: -----

#1 rring  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-April 09

Massive Punnet Square

Posted 20 April 2009 - 11:27 AM

I always wanted to see the full Punnet with all 7 of Mendeleev's alleles he tested, but it is 16384 combination's.
I would like to know how to figure out the Phenotypes, ya know AA is the same as Aa or aA. Also i want to get the aA to be Aa. It is funny because wordpad will not let me have one line long enough for the whole side, so i had to write two programs. I could not imagion writing by hand almost 1/2 a megabyte. Thanks.


#include <cstdlib>
#include <iostream>
#include <fstream>	 
#include <iomanip>

using namespace std;

int main()
{

	string output_name = "128.TXT"; 
	ofstream OUTFILE;
	int count;
	int count1;
	int count2;
	const int NUM=128;
	string Allele[NUM];
	string Allele1[NUM];
	Allele[0]="ABCDEFG";
	Allele[1]="aBCDEFG";
	Allele[2]="AbCDEFG";
	Allele[3]="abCDEFG";
	Allele[4]="ABcDEFG";
	Allele[5]="aBcDEFG";
	Allele[6]="AbcDEFG";
	Allele[7]="abcDEFG";	
	Allele[8]="ABCdEFG";
	Allele[9]="aBCdEFG";
	Allele[10]="AbCdEFG";
	Allele[11]="abCdEFG";
	Allele[12]="ABcdEFG";
	Allele[13]="aBcdEFG";
	Allele[14]="AbcdEFG";
	Allele[15]="abcdEFG";
	Allele[16]="ABCDeFG";
	Allele[17]="aBCDeFG";
	Allele[18]="AbCDeFG";
	Allele[19]="abCDeFG";
	Allele[20]="ABcDeFG";
	Allele[21]="aBcDeFG";
	Allele[22]="AbcDeFG";
	Allele[23]="abcDeFG";	
	Allele[24]="ABCdeFG";
	Allele[25]="aBCdeFG";
	Allele[26]="AbCdeFG";
	Allele[27]="abCdeFG";
	Allele[28]="ABcdeFG";
	Allele[29]="aBcdeFG";
	Allele[30]="AbcdeFG";
	Allele[31]="abcdeFG";
	Allele[32]="ABCDEfG";
	Allele[33]="aBCDEfG";
	Allele[34]="AbCDEfG";
	Allele[35]="abCDEfG";
	Allele[36]="ABcDEfG";
	Allele[37]="aBcDEfG";
	Allele[38]="AbcDEfG";
	Allele[39]="abcDEfG";	
	Allele[40]="ABCdEfG";
	Allele[41]="aBCdEfG";
	Allele[42]="AbCdEfG";
	Allele[43]="abCdEfG";
	Allele[44]="ABcdEfG";
	Allele[45]="aBcdEfG";
	Allele[46]="AbcdEfG";
	Allele[47]="abcdEfG";
	Allele[48]="ABCDefG";
	Allele[49]="aBCDefG";
	Allele[50]="AbCDefG";
	Allele[51]="abCDefG";
	Allele[52]="ABcDefG";
	Allele[53]="aBcDefG";
	Allele[54]="AbcDefG";
	Allele[55]="abcDefG";	
	Allele[56]="ABCdefG";
	Allele[57]="aBCdefG";
	Allele[58]="AbCdefG";
	Allele[59]="abCdefG";
	Allele[60]="ABcdefG";
	Allele[61]="aBcdefG";
	Allele[62]="AbcdefG";
	Allele[63]="abcdefG";
	Allele[64]="ABCDEFg";
	Allele[65]="aBCDEFg";
	Allele[66]="AbCDEFg";
	Allele[67]="abCDEFg";
	Allele[68]="ABcDEFg";
	Allele[69]="aBcDEFg";
	Allele[70]="AbcDEFg";
	Allele[71]="abcDEFg";	
	Allele[72]="ABCdEFg";
	Allele[73]="aBCdEFg";
	Allele[74]="AbCdEFg";
	Allele[75]="abCdEFg";
	Allele[76]="ABcdEFg";
	Allele[77]="aBcdEFg";
	Allele[78]="AbcdEFg";
	Allele[79]="abcdEFg";
	Allele[80]="ABCDeFg";
	Allele[81]="aBCDeFg";
	Allele[82]="AbCDeFg";
	Allele[83]="abCDeFg";
	Allele[84]="ABcDeFg";
	Allele[85]="aBcDeFg";
	Allele[86]="AbcDeFg";
	Allele[87]="abcDeFg";	
	Allele[88]="ABCdeFg";
	Allele[89]="aBCdeFg";
	Allele[90]="AbCdeFg";
	Allele[91]="abCdeFg";
	Allele[92]="ABcdeFg";
	Allele[93]="aBcdeFg";
	Allele[94]="AbcdeFg";
	Allele[95]="abcdeFg";
	Allele[96]="ABCDEfg";
	Allele[97]="aBCDEfg";
	Allele[98]="AbCDEfg";
	Allele[99]="abCDEfg";
	Allele[100]="ABcDEfg";
	Allele[101]="aBcDEfg";
	Allele[102]="AbcDEfg";
	Allele[103]="abcDEfg";	
	Allele[104]="ABCdEfg";
	Allele[105]="aBCdEfg";
	Allele[106]="AbCdEfg";
	Allele[107]="abCdEfg";
	Allele[108]="ABcdEfg";
	Allele[109]="aBcdEfg";
	Allele[110]="AbcdEfg";
	Allele[111]="abcdEfg";
	Allele[112]="ABCDefg";
	Allele[113]="aBCDefg";
	Allele[114]="AbCDefg";
	Allele[115]="abCDefg";
	Allele[116]="ABcDefg";
	Allele[117]="aBcDefg";
	Allele[118]="AbcDefg";
	Allele[119]="abcDefg";	
	Allele[120]="ABCdefg";
	Allele[121]="aBCdefg";
	Allele[122]="AbCdefg";
	Allele[123]="abCdefg";
	Allele[124]="ABcdefg";
	Allele[125]="aBcdefg";
	Allele[126]="Abcdefg";
	Allele[127]="abcdefg";
	Allele1[0]="ABCDEFG";
	Allele1[1]="aBCDEFG";
	Allele1[2]="AbCDEFG";
	Allele1[3]="abCDEFG";
	Allele1[4]="ABcDEFG";
	Allele1[5]="aBcDEFG";
	Allele1[6]="AbcDEFG";
	Allele1[7]="abcDEFG";	
	Allele1[8]="ABCdEFG";
	Allele1[9]="aBCdEFG";
	Allele1[10]="AbCdEFG";
	Allele1[11]="abCdEFG";
	Allele1[12]="ABcdEFG";
	Allele1[13]="aBcdEFG";
	Allele1[14]="AbcdEFG";
	Allele1[15]="abcdEFG";
	Allele1[16]="ABCDeFG";
	Allele1[17]="aBCDeFG";
	Allele1[18]="AbCDeFG";
	Allele1[19]="abCDeFG";
	Allele1[20]="ABcDeFG";
	Allele1[21]="aBcDeFG";
	Allele1[22]="AbcDeFG";
	Allele1[23]="abcDeFG";	
	Allele1[24]="ABCdeFG";
	Allele1[25]="aBCdeFG";
	Allele1[26]="AbCdeFG";
	Allele1[27]="abCdeFG";
	Allele1[28]="ABcdeFG";
	Allele1[29]="aBcdeFG";
	Allele1[30]="AbcdeFG";
	Allele1[31]="abcdeFG";
	Allele1[32]="ABCDEfG";
	Allele1[33]="aBCDEfG";
	Allele1[34]="AbCDEfG";
	Allele1[35]="abCDEfG";
	Allele1[36]="ABcDEfG";
	Allele1[37]="aBcDEfG";
	Allele1[38]="AbcDEfG";
	Allele1[39]="abcDEfG";	
	Allele1[40]="ABCdEfG";
	Allele1[41]="aBCdEfG";
	Allele1[42]="AbCdEfG";
	Allele1[43]="abCdEfG";
	Allele1[44]="ABcdEfG";
	Allele1[45]="aBcdEfG";
	Allele1[46]="AbcdEfG";
	Allele1[47]="abcdEfG";
	Allele1[48]="ABCDefG";
	Allele1[49]="aBCDefG";
	Allele1[50]="AbCDefG";
	Allele1[51]="abCDefG";
	Allele1[52]="ABcDefG";
	Allele1[53]="aBcDefG";
	Allele1[54]="AbcDefG";
	Allele1[55]="abcDefG";	
	Allele1[56]="ABCdefG";
	Allele1[57]="aBCdefG";
	Allele1[58]="AbCdefG";
	Allele1[59]="abCdefG";
	Allele1[60]="ABcdefG";
	Allele1[61]="aBcdefG";
	Allele1[62]="AbcdefG";
	Allele1[63]="abcdefG";
	Allele1[64]="ABCDEFg";
	Allele1[65]="aBCDEFg";
	Allele1[66]="AbCDEFg";
	Allele1[67]="abCDEFg";
	Allele1[68]="ABcDEFg";
	Allele1[69]="aBcDEFg";
	Allele1[70]="AbcDEFg";
	Allele1[71]="abcDEFg";	
	Allele1[72]="ABCdEFg";
	Allele1[73]="aBCdEFg";
	Allele1[74]="AbCdEFg";
	Allele1[75]="abCdEFg";
	Allele1[76]="ABcdEFg";
	Allele1[77]="aBcdEFg";
	Allele1[78]="AbcdEFg";
	Allele1[79]="abcdEFg";
	Allele1[80]="ABCDeFg";
	Allele1[81]="aBCDeFg";
	Allele1[82]="AbCDeFg";
	Allele1[83]="abCDeFg";
	Allele1[84]="ABcDeFg";
	Allele1[85]="aBcDeFg";
	Allele1[86]="AbcDeFg";
	Allele1[87]="abcDeFg";	
	Allele1[88]="ABCdeFg";
	Allele1[89]="aBCdeFg";
	Allele1[90]="AbCdeFg";
	Allele1[91]="abCdeFg";
	Allele1[92]="ABcdeFg";
	Allele1[93]="aBcdeFg";
	Allele1[94]="AbcdeFg";
	Allele1[95]="abcdeFg";
	Allele1[96]="ABCDEfg";
	Allele1[97]="aBCDEfg";
	Allele1[98]="AbCDEfg";
	Allele1[99]="abCDEfg";
	Allele1[100]="ABcDEfg";
	Allele1[101]="aBcDEfg";
	Allele1[102]="AbcDEfg";
	Allele1[103]="abcDEfg";	
	Allele1[104]="ABCdEfg";
	Allele1[105]="aBCdEfg";
	Allele1[106]="AbCdEfg";
	Allele1[107]="abCdEfg";
	Allele1[108]="ABcdEfg";
	Allele1[109]="aBcdEfg";
	Allele1[110]="AbcdEfg";
	Allele1[111]="abcdEfg";
	Allele1[112]="ABCDefg";
	Allele1[113]="aBCDefg";
	Allele1[114]="AbCDefg";
	Allele1[115]="abCDefg";
	Allele1[116]="ABcDefg";
	Allele1[117]="aBcDefg";
	Allele1[118]="AbcDefg";
	Allele1[119]="abcDefg";	
	Allele1[120]="ABCdefg";
	Allele1[121]="aBCdefg";
	Allele1[122]="AbCdefg";
	Allele1[123]="abCdefg";
	Allele1[124]="ABcdefg";
	Allele1[125]="aBcdefg";
	Allele1[126]="Abcdefg";
	Allele1[127]="abcdefg";
	
	OUTFILE.open(output_name.c_str());
	

	

	OUTFILE<<"		";
  // The top   
	for(count=0; count<64; count++)
	{OUTFILE<<"	"<<Allele[count]<<"	";}
	OUTFILE<<endl;
	//the dashes under it
	for(count2=0; count2<(80*12+1);count2++)
	{OUTFILE<<"-";}
	OUTFILE<<endl;
	//The body
	for(count=0; count<128; count++)
	{for(count1=0; count1<64; count1++)
	{
	if(count1==0)
 {   OUTFILE<<Allele[count1];
	 OUTFILE<<"|";
}
	OUTFILE<<" "<<Allele[count].substr(0,1);
	OUTFILE<<Allele1[count1].substr(0,1);
	OUTFILE<<Allele[count].substr(1,1);
	OUTFILE<<Allele1[count1].substr(1,1);
	OUTFILE<<Allele[count].substr(2,1);
	OUTFILE<<Allele1[count1].substr(2,1);
	OUTFILE<<Allele[count].substr(3,1);
	OUTFILE<<Allele1[count1].substr(3,1);
	OUTFILE<<Allele[count].substr(4,1);
	OUTFILE<<Allele1[count1].substr(4,1);
	OUTFILE<<Allele[count].substr(5,1);
	OUTFILE<<Allele1[count1].substr(5,1);
	OUTFILE<<Allele[count].substr(6,1);
	OUTFILE<<Allele1[count1].substr(6,1);
	if(count1==63)
	{OUTFILE<<endl;}}
	}
	for(count2=0; count2<(80*12+1);count2++)
	{OUTFILE<<"-";}
	OUTFILE<<endl;
   
	if (OUTFILE.bad() )
	{
		cout << "Error Opening OUTPUT file" << endl;
		return 1;
	}

   
	
	
	
	
	OUTFILE.close();
	
	system("PAUSE");
		return EXIT_SUCCESS;}



#include <cstdlib>
#include <iostream>
#include <fstream>	 
#include <iomanip>

using namespace std;

int main()
{

	string output_name = "128part2.TXT"; 
	ofstream OUTFILE;
	int count;
	int count1;
	int count2;
	const int NUM=128;
	string Allele[NUM];
	string Allele1[NUM];
	Allele[0]="ABCDEFG";
	Allele[1]="aBCDEFG";
	Allele[2]="AbCDEFG";
	Allele[3]="abCDEFG";
	Allele[4]="ABcDEFG";
	Allele[5]="aBcDEFG";
	Allele[6]="AbcDEFG";
	Allele[7]="abcDEFG";	
	Allele[8]="ABCdEFG";
	Allele[9]="aBCdEFG";
	Allele[10]="AbCdEFG";
	Allele[11]="abCdEFG";
	Allele[12]="ABcdEFG";
	Allele[13]="aBcdEFG";
	Allele[14]="AbcdEFG";
	Allele[15]="abcdEFG";
	Allele[16]="ABCDeFG";
	Allele[17]="aBCDeFG";
	Allele[18]="AbCDeFG";
	Allele[19]="abCDeFG";
	Allele[20]="ABcDeFG";
	Allele[21]="aBcDeFG";
	Allele[22]="AbcDeFG";
	Allele[23]="abcDeFG";	
	Allele[24]="ABCdeFG";
	Allele[25]="aBCdeFG";
	Allele[26]="AbCdeFG";
	Allele[27]="abCdeFG";
	Allele[28]="ABcdeFG";
	Allele[29]="aBcdeFG";
	Allele[30]="AbcdeFG";
	Allele[31]="abcdeFG";
	Allele[32]="ABCDEfG";
	Allele[33]="aBCDEfG";
	Allele[34]="AbCDEfG";
	Allele[35]="abCDEfG";
	Allele[36]="ABcDEfG";
	Allele[37]="aBcDEfG";
	Allele[38]="AbcDEfG";
	Allele[39]="abcDEfG";	
	Allele[40]="ABCdEfG";
	Allele[41]="aBCdEfG";
	Allele[42]="AbCdEfG";
	Allele[43]="abCdEfG";
	Allele[44]="ABcdEfG";
	Allele[45]="aBcdEfG";
	Allele[46]="AbcdEfG";
	Allele[47]="abcdEfG";
	Allele[48]="ABCDefG";
	Allele[49]="aBCDefG";
	Allele[50]="AbCDefG";
	Allele[51]="abCDefG";
	Allele[52]="ABcDefG";
	Allele[53]="aBcDefG";
	Allele[54]="AbcDefG";
	Allele[55]="abcDefG";	
	Allele[56]="ABCdefG";
	Allele[57]="aBCdefG";
	Allele[58]="AbCdefG";
	Allele[59]="abCdefG";
	Allele[60]="ABcdefG";
	Allele[61]="aBcdefG";
	Allele[62]="AbcdefG";
	Allele[63]="abcdefG";
	Allele[64]="ABCDEFg";
	Allele[65]="aBCDEFg";
	Allele[66]="AbCDEFg";
	Allele[67]="abCDEFg";
	Allele[68]="ABcDEFg";
	Allele[69]="aBcDEFg";
	Allele[70]="AbcDEFg";
	Allele[71]="abcDEFg";	
	Allele[72]="ABCdEFg";
	Allele[73]="aBCdEFg";
	Allele[74]="AbCdEFg";
	Allele[75]="abCdEFg";
	Allele[76]="ABcdEFg";
	Allele[77]="aBcdEFg";
	Allele[78]="AbcdEFg";
	Allele[79]="abcdEFg";
	Allele[80]="ABCDeFg";
	Allele[81]="aBCDeFg";
	Allele[82]="AbCDeFg";
	Allele[83]="abCDeFg";
	Allele[84]="ABcDeFg";
	Allele[85]="aBcDeFg";
	Allele[86]="AbcDeFg";
	Allele[87]="abcDeFg";	
	Allele[88]="ABCdeFg";
	Allele[89]="aBCdeFg";
	Allele[90]="AbCdeFg";
	Allele[91]="abCdeFg";
	Allele[92]="ABcdeFg";
	Allele[93]="aBcdeFg";
	Allele[94]="AbcdeFg";
	Allele[95]="abcdeFg";
	Allele[96]="ABCDEfg";
	Allele[97]="aBCDEfg";
	Allele[98]="AbCDEfg";
	Allele[99]="abCDEfg";
	Allele[100]="ABcDEfg";
	Allele[101]="aBcDEfg";
	Allele[102]="AbcDEfg";
	Allele[103]="abcDEfg";	
	Allele[104]="ABCdEfg";
	Allele[105]="aBCdEfg";
	Allele[106]="AbCdEfg";
	Allele[107]="abCdEfg";
	Allele[108]="ABcdEfg";
	Allele[109]="aBcdEfg";
	Allele[110]="AbcdEfg";
	Allele[111]="abcdEfg";
	Allele[112]="ABCDefg";
	Allele[113]="aBCDefg";
	Allele[114]="AbCDefg";
	Allele[115]="abCDefg";
	Allele[116]="ABcDefg";
	Allele[117]="aBcDefg";
	Allele[118]="AbcDefg";
	Allele[119]="abcDefg";	
	Allele[120]="ABCdefg";
	Allele[121]="aBCdefg";
	Allele[122]="AbCdefg";
	Allele[123]="abCdefg";
	Allele[124]="ABcdefg";
	Allele[125]="aBcdefg";
	Allele[126]="Abcdefg";
	Allele[127]="abcdefg";
	Allele1[0]="ABCDEFG";
	Allele1[1]="aBCDEFG";
	Allele1[2]="AbCDEFG";
	Allele1[3]="abCDEFG";
	Allele1[4]="ABcDEFG";
	Allele1[5]="aBcDEFG";
	Allele1[6]="AbcDEFG";
	Allele1[7]="abcDEFG";	
	Allele1[8]="ABCdEFG";
	Allele1[9]="aBCdEFG";
	Allele1[10]="AbCdEFG";
	Allele1[11]="abCdEFG";
	Allele1[12]="ABcdEFG";
	Allele1[13]="aBcdEFG";
	Allele1[14]="AbcdEFG";
	Allele1[15]="abcdEFG";
	Allele1[16]="ABCDeFG";
	Allele1[17]="aBCDeFG";
	Allele1[18]="AbCDeFG";
	Allele1[19]="abCDeFG";
	Allele1[20]="ABcDeFG";
	Allele1[21]="aBcDeFG";
	Allele1[22]="AbcDeFG";
	Allele1[23]="abcDeFG";	
	Allele1[24]="ABCdeFG";
	Allele1[25]="aBCdeFG";
	Allele1[26]="AbCdeFG";
	Allele1[27]="abCdeFG";
	Allele1[28]="ABcdeFG";
	Allele1[29]="aBcdeFG";
	Allele1[30]="AbcdeFG";
	Allele1[31]="abcdeFG";
	Allele1[32]="ABCDEfG";
	Allele1[33]="aBCDEfG";
	Allele1[34]="AbCDEfG";
	Allele1[35]="abCDEfG";
	Allele1[36]="ABcDEfG";
	Allele1[37]="aBcDEfG";
	Allele1[38]="AbcDEfG";
	Allele1[39]="abcDEfG";	
	Allele1[40]="ABCdEfG";
	Allele1[41]="aBCdEfG";
	Allele1[42]="AbCdEfG";
	Allele1[43]="abCdEfG";
	Allele1[44]="ABcdEfG";
	Allele1[45]="aBcdEfG";
	Allele1[46]="AbcdEfG";
	Allele1[47]="abcdEfG";
	Allele1[48]="ABCDefG";
	Allele1[49]="aBCDefG";
	Allele1[50]="AbCDefG";
	Allele1[51]="abCDefG";
	Allele1[52]="ABcDefG";
	Allele1[53]="aBcDefG";
	Allele1[54]="AbcDefG";
	Allele1[55]="abcDefG";	
	Allele1[56]="ABCdefG";
	Allele1[57]="aBCdefG";
	Allele1[58]="AbCdefG";
	Allele1[59]="abCdefG";
	Allele1[60]="ABcdefG";
	Allele1[61]="aBcdefG";
	Allele1[62]="AbcdefG";
	Allele1[63]="abcdefG";
	Allele1[64]="ABCDEFg";
	Allele1[65]="aBCDEFg";
	Allele1[66]="AbCDEFg";
	Allele1[67]="abCDEFg";
	Allele1[68]="ABcDEFg";
	Allele1[69]="aBcDEFg";
	Allele1[70]="AbcDEFg";
	Allele1[71]="abcDEFg";	
	Allele1[72]="ABCdEFg";
	Allele1[73]="aBCdEFg";
	Allele1[74]="AbCdEFg";
	Allele1[75]="abCdEFg";
	Allele1[76]="ABcdEFg";
	Allele1[77]="aBcdEFg";
	Allele1[78]="AbcdEFg";
	Allele1[79]="abcdEFg";
	Allele1[80]="ABCDeFg";
	Allele1[81]="aBCDeFg";
	Allele1[82]="AbCDeFg";
	Allele1[83]="abCDeFg";
	Allele1[84]="ABcDeFg";
	Allele1[85]="aBcDeFg";
	Allele1[86]="AbcDeFg";
	Allele1[87]="abcDeFg";	
	Allele1[88]="ABCdeFg";
	Allele1[89]="aBCdeFg";
	Allele1[90]="AbCdeFg";
	Allele1[91]="abCdeFg";
	Allele1[92]="ABcdeFg";
	Allele1[93]="aBcdeFg";
	Allele1[94]="AbcdeFg";
	Allele1[95]="abcdeFg";
	Allele1[96]="ABCDEfg";
	Allele1[97]="aBCDEfg";
	Allele1[98]="AbCDEfg";
	Allele1[99]="abCDEfg";
	Allele1[100]="ABcDEfg";
	Allele1[101]="aBcDEfg";
	Allele1[102]="AbcDEfg";
	Allele1[103]="abcDEfg";	
	Allele1[104]="ABCdEfg";
	Allele1[105]="aBCdEfg";
	Allele1[106]="AbCdEfg";
	Allele1[107]="abCdEfg";
	Allele1[108]="ABcdEfg";
	Allele1[109]="aBcdEfg";
	Allele1[110]="AbcdEfg";
	Allele1[111]="abcdEfg";
	Allele1[112]="ABCDefg";
	Allele1[113]="aBCDefg";
	Allele1[114]="AbCDefg";
	Allele1[115]="abCDefg";
	Allele1[116]="ABcDefg";
	Allele1[117]="aBcDefg";
	Allele1[118]="AbcDefg";
	Allele1[119]="abcDefg";	
	Allele1[120]="ABCdefg";
	Allele1[121]="aBCdefg";
	Allele1[122]="AbCdefg";
	Allele1[123]="abCdefg";
	Allele1[124]="ABcdefg";
	Allele1[125]="aBcdefg";
	Allele1[126]="Abcdefg";
	Allele1[127]="abcdefg";
	
	OUTFILE.open(output_name.c_str());
	

	

	
	
	for(count=64; count<128; count++)
	{OUTFILE<<"	"<<Allele[count]<<"	";}
	OUTFILE<<endl;
	for(count2=0; count2<(80*12+1);count2++)
	{OUTFILE<<"-";}
	OUTFILE<<endl;
	for(count=0; count<128; count++)
	{for(count1=64; count1<128; count1++)
	{

	OUTFILE<<" ";
	OUTFILE<<Allele[count].substr(0,1);
	OUTFILE<<Allele1[count1].substr(0,1);
	OUTFILE<<Allele[count].substr(1,1);
	OUTFILE<<Allele1[count1].substr(1,1);
	OUTFILE<<Allele[count].substr(2,1);
	OUTFILE<<Allele1[count1].substr(2,1);
	OUTFILE<<Allele[count].substr(3,1);
	OUTFILE<<Allele1[count1].substr(3,1);
	OUTFILE<<Allele[count].substr(4,1);
	OUTFILE<<Allele1[count1].substr(4,1);
	OUTFILE<<Allele[count].substr(5,1);
	OUTFILE<<Allele1[count1].substr(5,1);
	OUTFILE<<Allele[count].substr(6,1);
	OUTFILE<<Allele1[count1].substr(6,1);
	if(count1==127)
	{OUTFILE<<"|"<<endl;}}
	}
	   // Output
   
	if (OUTFILE.bad() )
	{
		cout << "Error Opening OUTPUT file" << endl;
		return 1;
	}

   
	
	
	
	
	OUTFILE.close();
	
	system("PAUSE");
		return EXIT_SUCCESS;}


This post has been edited by rring: 20 April 2009 - 07:36 PM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1