lzhenf

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月19日

摘要: #include <stdio.h>typedef struct node{ int val; node* next;};node* reverse(node* list , node* &head){ if ( !list || !list->next ) { head->next = NULL; head = list; return list; } else { node* temp = reverse( list->next , head); temp->next = list; return list; }}node* nonreverse 阅读全文
posted @ 2012-03-19 23:22 lzhenf 阅读(3684) 评论(0) 推荐(0) 编辑

摘要: int checkCPU( ){ { union w { int a; char b; } c; c.a = 1; return(c.b ==1);} } 阅读全文
posted @ 2012-03-19 22:05 lzhenf 阅读(257) 评论(0) 推荐(0) 编辑