青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

小蟲之家
C++探索之旅
要不是因為哥哥在網上搜到這個博客,我近乎(已經)忘記了它的存在,當哥哥把貌似熟悉的文字發給我看時,驚喜和溫柔,不能完全描述我的當時的心情。即使是現在,仍然能感受到這種歡欣和被愛的快樂。

這個新年,在哥哥每日早上的問候,和馬普爾小姐的鄉村生活中,淡淡的度過。和哥哥在一起的日子,完全可以不需要網絡的存在,只和對方相伴,都能有著無比精彩和豐富的生活。

網絡聊天的工具,就讓它慢慢淡出我的生活吧,也未嘗不是一個新的開始。

最近在看Java版的數據結構和一些Android的知識,在這里,重新開辟一個小天地吧。For both of us, only love that matters……
posted @ 2011-02-09 17:06 小蟲 閱讀(190) | 評論 (0)編輯 收藏
1.   C++的函數可以放在strcut內部作為“成員函數”。

2.   C++編譯器將結構名轉變為一個新的類型名(如int,char,float和double是類型名一樣)

3.   在下面的C版本的struct的函數中,硬性傳遞結構的地址作為這些函數的第一個參數。例如:
           typedef struct CstashTag{
               int size;             //size of each space
               //.........
           } Cstash;
           void initialize(CStash *s, int size);

      而C++中則不是,這一過程是由編譯器來完成。
           struct Stash {
               int size;            //size of each space
               //.........
               void initialize(int size);
           };
         
posted @ 2006-01-20 11:57 小蟲 閱讀(1689) | 評論 (0)編輯 收藏

華為筆試題
         1.請你分別畫出OSI的七層網絡結構圖和TCP/IP的五層結構圖。
  2.請你詳細地解釋一下IP協議的定義,在哪個層上面?主要有什么作用?TCP與UDP呢?
  3.請問交換機和路由器各自的實現原理是什么?分別在哪個層次上面實現的?
  4.請問C++的類和C里面的struct有什么區別?
  5.請講一講析構函數和虛函數的用法和作用。
  6.全局變量和局部變量有什么區別?是怎么實現的?操作系統和編譯器是怎么知道的?
  7.8086是多少位的系統?在數據總線上是怎么實現的?

聯想筆試題
         
1.設計函數 int atoi(char *s)。
  2.int i=(j=4,k=8,l=16,m=32); printf(“%d”, i); 輸出是多少?
  3.解釋局部變量、全局變量和靜態變量的含義。
  4.解釋堆和棧的區別。
  5.論述含參數的宏與函數的優缺點


普天C++筆試題
         1.實現雙向鏈表刪除一個節點P,在節點P后插入一個節點,寫出這兩個函數。
  2.寫一個函數,將其中的\t都轉換成4個空格。
  3.Windows程序的入口是哪里?寫出Windows消息機制的流程。
  4.如何定義和實現一個類的成員函數為回調函數?
  5.C++里面是不是所有的動作都是main()引起的?如果不是,請舉例。
  6.C++里面如何聲明const void f(void)函數為C程序中的庫函數?
  7.下列哪兩個是等同的
  int b;
  A const int* a = &b;
  B const* int a = &b;
  C const int* const a = &b;
  D int const* const a = &b;
  8.內聯函數在編譯時是否做參數類型檢查?
  void g(base & b){
   b.play;
  }
  void main(){
   son s;
   g(s);
   return;
  }

         1. How do you code an infinite loop in C?
  2. Volatile:
 ?。?)What does the keyword volatile mean? Give an example
 ?。?)Can a parameter be both const and volatile? Give an example
  (3)Can a pointer be volatile? Give an example
  3. What are the values of a, b, and c after the following instructions:
  int a=5, b=7, c;
  c = a+++b;
  4. What do the following declarations mean?
 ?。?)const int a;
 ?。?)int const a;
  (3)const int *a;
 ?。?)int * const a;
  (5)int const * a const;
  5. Which of the following statements describe the use of the keyword static?
 ?。?)Within the body of a function: A static variable maintains its value between function revocations
 ?。?)Within a module: A static variable is accessible by all functions within that module
  (3)Within a module: A static function can only be called by other functions within that module
  6. Embedded systems always require the user to manipulate bits in registers or variables. Given an integer variable a, write two code fragments.
  The first should set bit 5 of a. The second shnuld clear bit 5 of a. In both cases, the remaining bits should be unmodified.
  7. What does the following function return?
  char foo(void)
  {
   unsigned int a = 6;
   iht b = -20;
   char c;
   (a+b > 6) ? (c=1): (c=0);
   return c;
  }
  8. What will be the output of the following C code?
  main()
  {
   int k, num= 30;
   k =(num > 5 ? (num <=10 ? 100:200): 500);
   printf(“%d”, k);
  }
  9. What will the following C code do?
  int *ptr;
  ptr =(int *)Ox67a9;
  *ptr = Oxaa55;
  10. What will be the output of the follow C code?
  #define product(x) (x*x)
  main()
  {
   int i = 3, j, k;
   j = product(i++);
   k = product(++i);
   printf(“%d %d”,j,k);
  }
  11. Simplify the following Boolean expression
  !((i ==12) || (j > 15))
  12. How many flip-flop circuits are needed to divide by 16?
  13. Provides 3 properties that make an OS, a RTOS?
  14. What is pre-emption?
  15. Assume the BC register value is 8538H, and the DE register value is 62A5H.Find the value of register BC after the following assembly operations:
  MOV A,C
  SUB E
  MOV C,A
  MOV A,B
  SBB D
  MOV B,A
  16. In the Assembly code shown below
  LOOP: MVI C,78H
   DCR C
   JNZ LOOP
   HLT
  How many times is the DCR C Operation executed?
  17. Describe the most efficient way (in term of execution time and code size) to divide a number by 4 in assembly language
  18. what value is stored in m in the following assembly language code fragment if n=7?
   LDAA #n
   LABEL1: CMPA #5
   BHI L3
   BEQ L2
   DECA
   BRA L1
  LABEL2: CLRA
  LABEL3: STAA #m
  19. What is the state of a process if a resource is not available?
  #define a 365*24*60*60
  20. Using the #define statement, how would you declare a manifest constant that returns the number of seconds in a year? Disregard leap years in your answer.
  21. Interrupts are an important part of embedded systems. Consequently, many compiler vendors offer an extension to standard C to support interrupts. Typically, the keyword is __interrupt. The following routine (ISR). Point out problems in the code.
  __interrupt double compute_area (double radius)
  {
   double area = PI * radius * radius;
   printf(“\nArea = %f”, area);
   return area;
  }

 維爾VERITAS軟件筆試題
  1. A class B network on the internet has a subnet mask of 255.255.240.0, what is the maximum number of hosts per subnet .
  a. 240 b. 255 c. 4094 d. 65534
  2. What is the difference: between o(log n) and o(log n^2), where both logarithems have base 2 .
  a. o(log n^2) is bigger b. o(log n) is bigger
  c. no difference
  3. For a class what would happen if we call a class’s constructor from with the same class’s constructor .
  a. compilation error b. linking error
  c. stack overflow d. none of the above
  4. “new” in c++ is a: .
  a. library function like malloc in c
  b. key word c. operator
  d. none of the above
  5. Which of the following information is not contained in an inode .
  a. file owner b. file size
  c. file name d. disk address
  6. What’s the number of comparisons in the worst case to merge two sorted lists containing n elements each .
  a. 2n b.2n-1 c.2n+1 d.2n-2
  7. Time complexity of n algorithm T(n), where n is the input size ,is T(n)=T(n-1)+1/n if n>1 otherwise 1 the order of this algorithm is .
  a. log (n) b. n c. n^2 d. n^n
  8. The number of 1’s in the binary representation of 3*4096+ 15*256+5*16+3 are .
  a. 8 b. 9 c. 10 d. 12

揚智(科技)筆試題目
  1. Queue is a useful structure
  * What is a queue?
  * Write 5 operations or functions, without details, that can be done on a queue.
  2. Insert a sequence fo keys(24,49,13,20,59,23,90,35) into a data structure, which has no keys initially. Depict the data structure after these insertions, if it is:
  * a heap tree
  * an AVL tree
  3. * What is a synchronous I/O bus?
  * What is an asnchronous I/O bus?
  * Compare the advantages and disadvantages of synchronous and a synchronous I/O bus.
  4. Explain the following terminology:
  * Baud rate
  * Handshaking
  * Memory mapped I/O
  5. Explain the key issues in supporting a real-time operation system for embedded system.
  6. Explain the mapping of visual addresses to real addresses under paging by
  * direct mapping
  * associative mapping
  * combined direct/associated mapping
  7. Please explain what is “write-back” and “write-through”, and discuss the advantage and disadvantage about these two methods.
  8. Explain the concept and benefit of threads
  9. What is hardware interrupt? What is software interrupt? What is exception? Please tell me all you know about interrupt.
  10. Write a recursive function that tests wether a string is a palindrome. A palindrome is s string such as “abcba” or “otto” that reads the same in both directions.If you can write this function recursively,you can write an iterative version of this function instead.
  11.什么是進程(Process)和線程(Thread)?有何區別?
  12.MFC和SDK有何區別?
  13.IRP是什么?有何作用?
  14.Windows 2000操作系統下用戶模式和內核模式下編程有何區別?
  15.驅動程序的BUFFER能swap到磁盤上去嗎?為什么?
  16.試編寫3個函數實現
 ?。?)建立一個雙向鏈表
 ?。?)插入一個節點
  (3)刪除一個節點
  17.簡述Hardware interrupt和software中斷的區別,簡述其應用。
  18.試編寫一個函數,計算一個字符串中A的個數。
  19.畫出其相應流程圖并編寫一個函數實現一個整數到二進制數的轉換,如輸入6,輸出110。
  20.
 ?。?)編寫一個遞歸函數,刪除一個目錄。
  (2)編寫一個非遞歸函數,刪除一個目錄。
  并比較其性能。


廣東北電面試題目
  英文筆試題
  1. Tranlation (Mandatory)
  CDMA venders have worked hard to give CDMA roaming capabilities via the development of RUIM-essentially, a SIM card for CDMA handsets currently being deployed in China for new CDMA operator China Unicom. Korean cellco KTF demonstrated earlier this year the ability to roam between GSM and CDMA using such cards.However,only the card containing the user’s service data can roam-not the CDMA handset or the user’s number (except via call forwarding).
  2. Programming (Mandatory)
  Linked list
  a. Implement a linked list for integers,which supports the insertafter (insert a node after a specified node) and removeafter (remove the node after a specified node) methods;
  b. Implement a method to sort the linked list to descending order.
  3. Debugging (Mandatory)
  a. For each of the following recursive methods,enter Y in the answer box if themethod terminaters (assume i=5), Otherwise enter N.
  static int f(int i){
   return f(i-1)*f(i-1);
   }
  Ansewr:
  static int f(int i){
   if(i==0){return 1;}
   else {return f(i-1)*f(i-1);}
   }
  Ansewr:
  static int f(int i){
   if(i==0){return 1;}
   else {return f(i-1)*f(i-2);}
   }
  Ansewr:
  b. There are two errors in the following JAVA program:
  static void g(int i){
   if(i==1){return;}
   if(i%2==0){g(i/2);return;}
   else {g(3*i);return;}
   }
  please correct them to make sure we can get the printed-out result as below:
  3 10 5 16 8 4 2 1
  
  中文筆試題
  1.漢譯英
  北電網絡的開發者計劃使來自于不同組織的開發者,能夠在北電網絡的平臺上開發圓滿的補充業務。北電網絡符合工業標準的開放接口,為補充業務的開展引入了無數商機,開發者計劃為不同層面的開發者提供不同等級的資格,資格的劃分還考慮到以下因素:補充業務與北電網絡平臺的集合程度,開發者團體與北電網絡的合作關系,等等。
  2.編程
  將整數轉換成字符串:void itoa(int,char);
  例如itoa(-123,s[])則s=“-123”;


posted @ 2006-01-20 10:23 小蟲 閱讀(2785) | 評論 (5)編輯 收藏
        剛在china-pub里翻了翻書目,由于最近在翻 Bruce Eckel 的C++編程思想,順便去瞅了瞅其中文版的書評。
        象大多數翻譯版的作品一樣,C++編程思想的翻譯版被許多讀者(留了言的讀者)損的一塌糊涂。其實任何事情都是說起來容易,做起來難,當一份真正經典的計算機書籍擺在眼前時,其經典之處除了對于技術的透徹講述、細致的選材之外,往往也頗具閱讀趣味。想要翻譯好一部這樣的書籍,并非易事。除了深厚的技術功底、對技術的透徹了解之外,也需要扎實的語言功底,既能理解作者的意圖,也要能夠用語言將其完美的詮釋。
        我有幾個熟識的朋友,都并非計算機專業,他們大都對計算機專業能夠有這么多經典著作(無論原版還是翻譯版本)出現在國內的市場上表示羨慕不已。雖然現在有些出版物的確有不負責任之嫌,但真正熱愛這門科學的朋友,我相信一定能夠克服語言方面的障礙,通過交流和不斷的學習,領悟到技術的精髓。

        稍有感悟,特此一記! (若有不同意見,歡迎拍磚)
 
posted @ 2006-01-18 17:14 小蟲 閱讀(278) | 評論 (0)編輯 收藏

    在使用類之前,我們通常會在程序中包含某個相應的頭文件,因為自定義的類并不是程序語言本身的內建(built-in)。例如:
     #include <string>
     string s1[3] = {"winne","jackie","xp"};

    一般類的定義方式為:
     class stack //stack為類名
     {
       public:
           //.... 公共接口
       private:
          //....私有量的實現
     }

    成員函數可以在類主體內定義,也可以在主體外定義,但必須在class主體內進行聲明。在主體內定一的成員函數會被自動視為內聯(inline)函數;在主體外定義成員函數,如果希望該函數為inline,必須顯式聲明。例:
     inline bool
     stack::empty()
     {
         return _stack.empty();
     }
    運算符(::)是class scope resolution運算符

    通常類的定義和內聯成員函數會放在與類同名的頭文件中。如上例中的stack class的定義和empty()函數的定義,都放在stack.h文件中。

posted @ 2006-01-16 15:53 小蟲 閱讀(530) | 評論 (1)編輯 收藏
僅列出標題  下一頁

<2006年7月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

常用鏈接

留言簿

隨筆分類(7)

C++

Network

Search

最新隨筆

積分與排名

  • 積分 - 7525
  • 排名 - 1352

最新評論

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久美女性网| 亚洲综合欧美| 亚洲一区久久久| aa级大片欧美三级| 亚洲一区免费| 欧美在线免费播放| 久久久激情视频| 欧美96在线丨欧| 亚洲日本成人女熟在线观看| 亚洲精华国产欧美| 亚洲理论在线观看| 亚洲在线不卡| 久久久综合免费视频| 欧美激情视频一区二区三区免费| 欧美精品一区二区三区一线天视频| 欧美日韩国语| 国语对白精品一区二区| 99国产精品久久久| 欧美在线观看视频在线 | 一区二区三区在线观看视频| 在线成人性视频| 中日韩男男gay无套| 久久―日本道色综合久久| 欧美激情一区二区三区在线| 欧美乱人伦中文字幕在线| 国产精品亚洲人在线观看| 亚洲尤物精选| 蜜桃av一区二区| 欧美三区在线| 在线观看不卡| 亚洲欧美日韩另类| 欧美激情一区二区三区高清视频 | 久久精品国产综合精品| 欧美日韩不卡合集视频| 国内精品久久久久久久97牛牛| 亚洲美女网站| 亚洲国产高清aⅴ视频| 亚洲天堂网站在线观看视频| 乱码第一页成人| 在线中文字幕不卡| 欧美激情精品久久久久久变态| 国产欧美一区二区色老头| 99国产精品久久久久久久| 猛男gaygay欧美视频| 亚洲一区二区精品视频| 欧美日韩伦理在线| 亚洲人体一区| 可以看av的网站久久看| 亚洲免费在线精品一区| 国产精品xxx在线观看www| 99爱精品视频| 亚洲国产视频一区二区| 欧美成年网站| 亚洲国产欧美不卡在线观看| 久久亚洲一区二区| 久久高清免费观看| 国精品一区二区| 欧美中文在线免费| 亚洲欧美日韩第一区| 国产精品久久久久免费a∨| 亚洲少妇在线| 亚洲色图制服丝袜| 国产精品一区二区久久| 午夜欧美大片免费观看| 亚洲自拍偷拍福利| 国产欧美日韩91| 欧美在线影院在线视频| 久久99伊人| 亚洲电影毛片| 亚洲欧洲另类| 欧美色精品天天在线观看视频| 一本色道久久综合亚洲二区三区| 亚洲国产精品传媒在线观看| 欧美成人免费全部观看天天性色| 亚洲乱码久久| 亚洲无线观看| 国产午夜精品美女视频明星a级| 久久久久国产一区二区| 久久这里只有| 亚洲美女诱惑| 亚洲自拍偷拍麻豆| 在线精品国产欧美| 亚洲卡通欧美制服中文| 国产精品日韩在线观看| 久久精品国内一区二区三区| 久久人人97超碰人人澡爱香蕉| 欧美精品在线播放| 亚洲制服少妇| 欧美在线一级视频| 亚洲精选国产| 西西裸体人体做爰大胆久久久| 很黄很黄激情成人| 亚洲国产精品va在线看黑人动漫 | 亚洲电影天堂av| 欧美日韩一区二区在线| 久久国产夜色精品鲁鲁99| 久久伊人一区二区| 一区二区高清在线| 欧美在线在线| 亚洲视频中文| 久久五月天婷婷| 亚洲一卡久久| 蜜桃久久精品乱码一区二区| 亚洲欧美中文另类| 欧美大片免费| 久久精品欧美| 国产精品久久久久久久7电影 | 欧美高清视频| 国产精品自在线| 91久久嫩草影院一区二区| 国产免费成人| 99精品国产热久久91蜜凸| 狠狠色综合日日| 亚洲午夜三级在线| 一本一本久久a久久精品综合妖精| 亚洲欧美日本国产专区一区| 99热精品在线| 欧美成人a∨高清免费观看| 久久久久久久久久久成人| 国产精品久久久久一区二区三区共 | 欧美久久一级| 欧美成人免费观看| 国产一区二区三区久久悠悠色av | 欧美精品一区二区在线观看| 另类综合日韩欧美亚洲| 国产精品女人网站| 亚洲美女福利视频网站| 亚洲精品国精品久久99热一| 久久精选视频| 久久午夜视频| 黄色一区三区| 久久久成人精品| 久久尤物视频| 激情成人亚洲| 久久狠狠久久综合桃花| 久久久亚洲精品一区二区三区| 国产欧美日韩不卡| 欧美一区二区三区另类 | 久久久亚洲一区| 国产一区二区中文| 欧美一区二粉嫩精品国产一线天| 小黄鸭视频精品导航| 国产精品一区二区久久国产| 亚洲综合视频网| 久久精品免费| 影音先锋久久精品| 欧美高清视频一区二区| 亚洲第一成人在线| 一本一本a久久| 国产精品乱码人人做人人爱| 亚洲影视在线播放| 久久久久久久久久久久久久一区 | 国产精品国产三级国产aⅴ浪潮 | 亚洲性感激情| 久久精品一区二区三区不卡| 精品不卡一区二区三区| 美女国内精品自产拍在线播放| 亚洲第一区在线| 亚洲午夜精品久久| 国产一区91| 欧美成人一区在线| 日韩天天综合| 欧美在线免费视屏| 在线观看一区| 欧美日韩专区在线| 久久精品30| 亚洲乱码一区二区| 久久久久久久久蜜桃| 日韩视频永久免费| 国产精品一区二区三区久久| 噜噜噜91成人网| 亚洲视频久久| 亚洲成色精品| 国产精品伦理| 久久久www成人免费无遮挡大片| 亚洲福利在线视频| 午夜综合激情| 亚洲精品视频免费观看| 国产伦精品一区二区三区四区免费| 久久蜜桃资源一区二区老牛 | 亚洲天堂成人在线观看| 久久欧美中文字幕| 亚洲视频一二| 亚洲高清一区二| 国产精品久久网| 欧美激情第3页| 欧美在线视频在线播放完整版免费观看 | 国产精品国产三级国产专区53| 久久99伊人| 宅男噜噜噜66一区二区| 亚洲第一福利视频| 久久综合狠狠| 久久精品免费| 欧美一区网站| 亚洲综合国产| 一区二区三区日韩精品| 亚洲激情一区二区| 在线视频国产日韩| 一区二区久久久久| 亚洲永久精品大片|