Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The beginning of the file "main.cpp"
- // - - - - - - - - - - - - - - - - - -
- #include <stdio.h>
- #include "resource/Cdate.h"
- TT t1;
- ////////////////////////////////////////////////////
- int main() //
- {
- return 0;
- }
- // The beginning of the file "LL.h"
- // - - - - - - - - - - - - - - - - - -
- #include <stdlib.h>
- ///////////////////////////////////////////////
- struct TT
- {
- TT *pNext;
- int nDate;
- //////////////
- void add(int);
- };
- // The beginning of the file "LL.cpp"
- // - - - - - - - - - - - - - - - - - -
- #include "Cdate.h"
- TT *pHead = 0,
- *pTail = 0;
- //////////////////////////////////////////////////////////
- void TT::add(int n)
- {
- TT *p = (TT*)malloc(sizeof(TT));
- if(pHead == 0)
- {
- pHead = p;
- }
- else
- {
- pTail->pNext = p;
- }
- nDate = n;
- pNext = 0;
- pTail = p;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement