Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( IsEmpty( L ) )
- printf( "Empty listn" );
- else
- {
- do
- {
- P = Advance( P );
- printf( "%d ", Retrieve( P ) );
- } while( !IsLast( P, L ) );
- printf( "n" );
- }
- List DNA1,DNA2;
- Position P;
- int i=0;
- char a;
- DNA1 = MakeEmpty( NULL );/*Creating List Header*/
- //DNA2=MakeEmpty(NULL);
- P = Header( DNA1 );
- PrintList( DNA1 );
- //P=Header(DNA2);
- while(i<10){
- //printf("enter the bases");
- //scanf("%c",&a);
- Insert( i, DNA1, P );
- PrintList( DNA1 );
- P = Advance( P );
- i++;}
- system("PAUSE");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement