Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. if( IsEmpty( L ) )
  2. printf( "Empty listn" );
  3. else
  4. {
  5. do
  6. {
  7. P = Advance( P );
  8. printf( "%d ", Retrieve( P ) );
  9. } while( !IsLast( P, L ) );
  10. printf( "n" );
  11. }
  12.  
  13. List DNA1,DNA2;
  14. Position P;
  15. int i=0;
  16. char a;
  17. DNA1 = MakeEmpty( NULL );/*Creating List Header*/
  18.  
  19. //DNA2=MakeEmpty(NULL);
  20.  
  21. P = Header( DNA1 );
  22.  
  23. PrintList( DNA1 );
  24.  
  25. //P=Header(DNA2);
  26.  
  27.  
  28.  
  29. while(i<10){
  30. //printf("enter the bases");
  31. //scanf("%c",&a);
  32. Insert( i, DNA1, P );
  33. PrintList( DNA1 );
  34. P = Advance( P );
  35. i++;}
  36.  
  37.  
  38. system("PAUSE");
  39. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement