‫ﺑﺴﻢ اﷲ اﻟﺮﺣﻤﻦ اﻟﺮﺣﻴﻢ‬

‫ﻃﺮیﻘﺔ ﺱﻬﻠﺔ ﻟﺒﻨﺎء ﺑﻨﻚ اﻻآﻮاد اﻟﺨﺎص ﺑﻚ‬
‫اﻋﺪاد‬
‫م‪ .‬ﻡﺤﻤﻮد ﻓﺎیﺪ‬
‫‪msfclipper@yahoo.com‬‬
‫‪http://doublesvsoop.sourceforge.net‬‬

‫ﺑﺴﻢ اﷲ اﻟﺮﺣﻤﻦ اﻟﺮﺣﻴﻢ‬
‫اﻟﺴﻼم ﻋﻠﻴﻜﻢ ورﺣﻤﺔ اﷲ وﺑﺮآﺎﺗﻪ‬
‫ﻡﻦ اﻟﻄﺮق اﻟﺸﺎﺋﻌﺔ ﺟﺪا ﺥﺎﺻﺔ ﺑﻴﻦ اﻟﻬﻮاة و اﻟﺬیﻦ یﺘﻌﻠﻤﻮن اﻟﺒﺮﻡﺠﺔ‬
‫ﻓﻰ اﻟﺒﺪایﺔ ان ﺗﺠﺪ ﻟﺪیﻬﻢ اﻟﻌﺪیﺪ ﻡﻦ اﻻآﻮاد اﻟﺠﺎهﺰة اﻟﺘﻰ یﺘﻢ‬
‫اﺱﺘﺨﺪاﻡﻬﺎ و ﺗﺒﺎدﻟﻬﺎ ﻓﻴﻤﺎ ﺑﻴﻨﻬﻢ ﻻﻥﺠﺎز اﻟﻤﻬﺎم ﺑﺴﺮﻋﺔ‪.‬‬
‫ان اﺱﺘﺨﺪام ﺑﻨﻚ اﻻآﻮاد هﻮ اﻟﻌﺼﺮ اﻟﺤﺠﺮى ﻡﻦ اﻟﺒﺮﻡﺠﺔ ﺑﺪون آﻮد‬
‫ﺣﻴﺚ اﻥﻪ ﺥﻄﻮة ﻗﺪیﻤﺔ ﺟﺪا ﻇﻬﺮت ﻗﺒﻞ اﻟﻤﻜﺘﺒﺎت واﻟﻤﻌﺎﻟﺠﺎت واﻟﻤﺼﻤﻤﺎت‬
‫وﻡﻊ ذﻟﻚ ﻡﺎزاﻟﺖ اﻟﻔﻜﺮة ﺗﺴﺘﺨﺪم ﺣﺘﻰ اﻻن واﺥﺘﻠﻔﺖ اﻟﻄﺮق ﻟﺘﻄﺒﻴﻖ‬
‫هﺬﻩ اﻟﻔﻜﺮة‬
‫هﺬا اﻟﻤﻘﺎل یﻘﺪم ﻃﺮیﻘﺔ ﺱﻬﻠﺔ ﻟﺘﻄﺒﻴﻖ واﺱﺘﺨﺪام ﻓﻜﺮة ﺑﻨﻚ اﻻآﻮاد‬
‫واﻟﻤﻘﺎل ﻻیﺸﺘﺮط ﻟﻐﺔ ﺑﺮﻡﺠﺔ ﻡﻌﻴﻨﺔ ﺣﻴﺚ ﺱﻴﺘﻢ ﻋﺮض اﻟﺸﺮح واﻻﻡﺜﻠﺔ‬
‫ﻡﻦ ﺥﻼل ﻓﺮض اآﻮاد وهﻤﻴﺔ یﻤﻜﻦ ان ﺗﻜﻮن ﺑﺎى ﻟﻐﺔ ﺑﺮﻡﺠﺔ‬
‫ﺑﺎذن اﷲ رب اﻟﻌﺎﻟﻤﻴﻦ یﺘﻢ اﻟﺘﻌﺮف ﻡﻦ ﺥﻼل هﺬا اﻟﻤﻘﺎل ﻋﻠﻰ آﻴﻔﻴﺔ‬
‫‪ - 1‬ﺑﻨﺎء ﺑﻨﻚ ﻡﻦ اﻻآﻮاد ﺥﺎص ﺑﻚ‬
‫‪ - 2‬ﺗﻮزیﻊ هﺬا اﻟﺒﻨﻚ ﻋﻠﻰ اﻻﺥﺮیﻦ‬
‫یﻌﺘﻤﺪ اﻟﻤﻘﺎل ﻋﻠﻰ اﺱﺘﺨﺪام اﻻداة ‪RPWI Environment‬‬
‫راﺑﻂ اﻟﺘﺤﻤﻴﻞ اﻟﻤﺒﺎﺵﺮ )اﻟﻤﺴﺎﺣﺔ ‪ 22‬ﻡﻴﺠﺎ ﺑﺎیﺖ(‬
‫‪http://downloads.sourceforge.net/doublesvsoop/Fayed_RPWI_1.1_Magic_2009.01.18.zip‬‬

‫ﺱﻨﻔﺘﺮض ﻓﻰ اﻟﺸﺮح ان ﻟﺪیﻨﺎ ﻡﺠﻤﻮﻋﺔ ﻡﻦ اﻻآﻮاد‬
‫ﺑﺎﻟﺘﺤﺪیﺪ ﺥﻤﺲ ﻡﺠﻤﻮﻋﺎت‬
‫ود‬
‫‪Code Block Number 1‬‬
‫‪Line 1‬‬
‫‪Line 2‬‬
‫‪Line 3‬‬
‫‪.....‬‬
‫‪.....‬‬
‫‪Line N‬‬

Code Block Number 2
Line 1
Line 2
Line 3
.....
.....
Line N

‫ود‬
Code Block Number 3
Line 1
Line 2
Line 3
.....
.....
Line N

‫ود‬
Code Block Number 4
Line 1
Line 2
Line 3
.....
.....
Line N

‫ود‬
Code Block Number 5
Line 1
Line 2
Line 3
.....
.....
Line N

‫اﻟﺬى ﺱﻨﻘﻮم ﺑﻪ هﻮ اﻟﺘﺎﻟﻰ‬
‫ﺗﻨﻈﻴﻢ هﺬﻩ اﻻآﻮاد ﻓﻰ ﺵﺠﺮة ‪ Tree‬ﻟﺴﻬﻮﻟﺔ اﻟﻮﺻﻮل اﻟﻴﻬﺎ وﻟﻴﻜﻦ ﻡﺜﻼ آﻤﺎ ﺑﺎﻟﺸﻜﻞ اﻟﺘﺎﻟﻰ‬
‫آﻮد‬
‫‪My Code Bank‬‬
‫‪The First Group‬‬
‫‪The Second Group‬‬

‫وﺱﻴﺘﻢ اﺿﺎﻓﺔ ال ‪ Code Block 1,2,3‬اﻟﻰ ‪The First Group‬‬
‫ﺑﻴﻨﻤﺎ یﺘﻢ اﺿﺎﻓﺔ ‪ Code Block 4,5‬اﻟﻰ ‪Second Group The‬‬
‫وﺑﻌﺪ ﺗﻌﻠﻢ آﻴﻔﻴﺔ اﺗﻤﺎم هﺬﻩ اﻟﻌﻤﻠﻴﺔ ﻡﻦ اﻟﺘﻨﻈﻴﻢ ان ﺵﺎء اﷲ ﻥﺘﻌﻠﻢ ﻃﺮیﻘﺔ اﺱﺘﺨﺪام هﺬﻩ اﻻآﻮاد‬
‫واﺥﻴﺮا ﻥﺘﻌﻠﻢ آﻴﻔﻴﺔ ﻥﻘﻞ ﺑﻨﻚ اﻻآﻮاد اﻟﺨﺎص ﺑﻨﺎ اﻟﻰ زﻡﻴﻞ اﺥﺮ ﻟﻴﺴﺘﻔﻴﺪ ﻡﻨﻪ‬
‫ﻋﻨﺪ اﺗﻤﺎم اﻟﺘﺤﻤﻴﻞ ﻟـ ‪ RPWI Environment‬وﻓﻚ ﺿﻐﻂ اﻟﻤﻠﻒ ﻥﺤﺼﻞ ﻋﻠﻰ اﻟﻤﻠﻔﺎت اﻟﺘﺎﻟﻴﺔ‬

‫وآﻞ ﻡﺎﻥﺤﺘﺎج اﻟﻴﻪ هﻮ اﻟﻘﻴﺎم ﺑﻌﻤﻠﻴﺔ اﻻﻋﺪاد ﻡﻦ ﺥﻼل ‪Setup.exe‬‬
‫ﺑﻌﺪ اﺗﻤﺎم ﻋﻤﻠﻴﺔ اﻻﻋﺪاد ﺑﻨﺠﺎح ﻥﺤﺼﻞ ﻋﻠﻰ اﻻﺥﺘﺼﺎر اﻟﺘﺎﻟﻰ ﻋﻠﻰ ﺱﻄﺢ اﻟﻤﻜﺘﺐ‬

‫ویﺘﻢ اﻥﺸﺎء اﻟﻤﺠﻠﺪات اﻟﺜﻼﺙﺔ اﻟﺘﺎﻟﻴﺔ ﻋﻠﻰ اﻟﻘﺮص ‪C‬‬

‫ﻡﺎیﻬﻤﻨﺎ هﻮ اﻟﻤﺠﻠﺪ ‪ SSRPWI‬ﺣﻴﺚ ﻥﻨﺸﻰء ﻡﺠﻠﺪ ﺑﺪاﺥﻠﻪ ﻟﻴﺸﺘﻤﻞ ﻋﻠﻰ ﻡﺎﺱﻨﻘﻮم ﺑﻪ ﻡﻦ اﻋﻤﺎل‬
‫وﻟﻴﻜﻦ اﺱﻢ هﺬا اﻟﻤﺠﻠﺪ ‪Bank_2009‬‬

‫واﻻن ﻥﻘﻮم ﺑﺘﺸﻐﻴﻞ ‪ RPWI Environment‬ﻡﻦ ﺥﻼل اﻻﺥﺘﺼﺎر اﻟﺨﺎص ﺑﻬﺎ ﻋﻠﻰ ﺱﻄﺢ‬
‫اﻟﻤﻜﺘﺐ وهﺬﻩ هﻰ اﻟﻨﺎﻓﺬة اﻟﺮﺋﻴﺴﻴﺔ‬

‫اﻻن ﺑﺘﺤﺪیﺪ اﻟﻤﺠﺎﻻت اﻻﺱﺎﺱﻴﺔ اﻟﺘﻰ ﺱﻮف یﺸﺘﻤﻞ ﻋﻠﻴﻬﺎ ﺑﻨﻚ اﻻآﻮاد اﻟﺨﺎص ﺑﻨﺎ‬
‫یﺘﻢ ذﻟﻚ ﻋﻦ ﻃﺮیﻖ ﺵﺠﺮة اﻟﻤﺠﺎل ‪ Domain Tree‬ﻡﻦ ﻗﺎﺋﻤﺔ ‪RPWI‬‬

‫ﻥﻜﻤﻞ اﻟﻤﺴﻴﺮة ‪ -‬وﻥﻨﺘﻘﻞ اﻟﻰ اﻋﺪاد اﻟﻤﻜﻮﻥﺎت اﻟﺘﻰ ﺗﺸﺘﻤﻞ ﻋﻠﻰ اﻟﻜﻮد‬
‫وﻡﻦ ﺙﻢ ﺗﻨﻈﻴﻢ هﺬﻩ اﻟﻤﻜﻮﻥﺎت ﻓﻰ ﺵﺠﺮة اﻟﻤﺠﺎل ‪ Domain Tree‬اﻟﺘﻰ ﺗﻢ ﺑﻨﺎﺋﻬﺎ‬
‫آﻞ آﻮد یﺘﻢ وﺿﻌﻪ ﻓﻰ ﻡﻜﻮن ‪ component‬وهﺬا اﻟﻤﻜﻮن ﻥﻄﻠﻖ ﻋﻠﻴﻪ ‪Transporter‬‬

‫ﺑﻌﺪ آﺘﺎﺑﺔ اﻟﻜﻮد اﻟﺨﺎص ﺑﻨﺎ ﻥﻀﻴﻒ ﺱﻄﺮ ﺟﺪیﺪ یﺸﺘﻤﻞ ﻋﻠﻰ اﻡﺮ ﻡﺴﺌﻮل ﻋﻦ ﺗﺤﺪیﺪ‬
‫ﺥﻄﻮة ﺑﺎﺱﻢ ﻡﻌﻴﻦ ﺗﺠﻤﻊ هﺬا اﻟﻜﻮد اﻟﺬى اﺿﻔﻨﺎﻩ‬

‫ﻥﻘﻮم ﺑﺘﺤﻤﻴﻞ اﻟﻤﻜﻮﻥﺎت ﻓﻰ اﻟﻤﻜﺎن اﻟﻤﺤﺪد اﻟﺬى ﻥﺮیﺪﻩ داﺥﻞ ﺵﺠﺮة اﻟﻤﺠﺎل ‪Tree Domain‬‬

‫ﻥﻜﻤﻞ ﻡﻌﺎ اﻟﻤﺴﻴﺮة ﺑﺎذن اﷲ وﻥﺘﻌﺮف ﻋﻠﻰ آﻴﻔﻴﺔ اﻟﺤﺼﻮل ﻋﻠﻰ اﻻآﻮاد اﻟﻤﻮﺟﻮدة ﻓﻰ ﺑﻨﻚ اﻻآﻮاد‬
‫اﻟﺨﺎص ﺑﻨﺎ‬
‫ﻥﻨﺸﻰ ﻡﻠﻒ ﺟﺪیﺪ ﺥﺎص ﺑﻨﺎ وهﺬا یﺘﻴﺢ ﻟﻨﺎ اﻟﺘﻌﺎﻡﻞ ﻡﻊ اﻟﻤﻜﻮﻥﺎت واﺱﺘﺨﺪاﻡﻬﺎ وﻡﻦ ﺙﻢ اﻟﺤﺼﻮل‬
‫ﻋﻠﻰ اﻟﻜﻮد‬

‫ﻥﻜﻤﻞ ﻡﻌﺎ اﻟﻤﺴﻴﺮة وﻥﺘﻌﻠﻢ آﻴﻔﻴﺔ ﻥﻘﻞ ﺑﻨﻚ اﻻآﻮاد اﻟﺨﺎص ﺑﻨﺎ اﻟﻰ زﻡﻴﻞ اﺥﺮ ﺣﺘﻰ یﺴﺘﺨﺪﻡﻪ‬
‫ﻥﻘﻮم ﺑﻌﻤﻞ ‪ Package‬وهﻰ ﺱﺘﺸﻤﻞ آﻞ ﻡﻦ ﺵﺠﺮة اﻟﻤﺠﺎل ‪Tree Domain‬‬
‫ﺑﺎﻻﺿﺎﻓﺔ اﻟﻰ اﺱﻤﺎء اﻟﻤﻜﻮﻥﺎت واﻟﻤﻠﻔﺎت اﻟﺨﺎﺻﺔ ﺑﻬﺎ‬

‫ﻥﻘﻮم ﺑﻌﻤﻞ ﺿﻐﻂ ﻟﻠﻤﺠﻠﺪ اﻟﺨﺎص ﺑﺎﻟﺒﻨﻚ وﻡﻦ ﺙﻢ ارﺱﺎﻟﻪ اﻟﻰ ﻡﻦ ﻥﺮیﺪ‬
‫‪Bank_2009.zip‬‬
‫یﻘﻮم اﻟﺸﺨﺺ اﻟﺬى یﺤﺼﻞ ﻋﻠﻰ هﺬا اﻟﺒﻨﻚ ﺑﻮﺿﻌﻪ ﻓﻰ اﻟﻤﺠﻠﺪ ‪ SSRPWI‬داﺥﻞ اﻟﻘﺮص ‪C‬‬
‫ﺙﻢ یﻘﻮم ﺑﻌﻤﻞ ﺗﺤﻤﻴﻞ ﻟﻠـ ‪ Package‬آﺎﻟﺘﺎﻟﻰ‬

‫وﺑﻬﺬا اﻟﺸﻜﻞ ﻥﻜﻮن ﻗﺪ اﻥﺘﻬﻴﻨﺎ ﻡﻦ هﺬا اﻟﻤﻘﺎل وان ﺵﺎء اﷲ رب اﻟﻌﺎﻟﻤﻴﻦ ﺗﺘﺤﻘﻖ اﻟﻔﺎﺋﺪة ﻟﻠﺠﻤﻴﻊ‬
‫واﷲ اﻟﻤﻮﻓﻖ‬