#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable: 4996)
#include <stdio.h>
#include <string.h>
void findGG(char tempGG[1001], int* Location);
void complementation(char* ptemprev, int tempsize);
void extractsg(char* temp, char* temprev, int* pGG, int* pCC);
int main()
{
FILE *fp1 = NULL;
FILE *fp2 = NULL;
FILE *fp3 = NULL;
char buff[1001] = { "" };
char temp[1001] = { "" };
char temprev[1001] = { "" };
char* ptemp = NULL;
int tempsize = 0;
char ID[101] = { "" };
char sg[22] = {""};
int i = 0;
int j = 0;
int z = 0;
int sgcount = 0;
int GGlocation[1001] = { 0 };
int CClocation[1001] = { 0 };
fp1 = fopen("D:\\C\\寻找序列中的sg\\input.txt", "r");
fp2 = fopen("D:\\C\\寻找序列中的sg\\output.txt", "w+");
if (fp1 == NULL)
{
printf("fail to open the file input.txt.");
}
if (fp2 == NULL)
{
printf("fail to open the file output.txt.");
}
//-----------------------------------------------------------