((به تقل از كتاب sams :
سورس ، فايلي است كه براي انسان مطالبش قابل فهم باشد.))
براي تبديل سورس به برنامه به كامپايلر نياز است. نام فايل كامپايلر در نرم افزارهاي مختلف در شكل زير آورده شده. همان طور كه مي بينيد ، كامپايلر توربو سي ، TC است. در پوشه bin اين فايل موجود است.
Linking Your Program
After your source code is compiled, an object file is produced. This is still not an exe-cutable
program, however. To turn this into an executable program, you must run your
linker.
C++ programs are typically created by linking together one or more object files
with one or more libraries. A library is a collection of linkable files that were
supplied with your compiler, that you purchased separately, or that you created yourself.
All C++ compilers come with a library of useful functions (or procedures) and classes
that you can include in your program. A function is a block of code that performs a task,
such as adding two numbers or printing to the screen. A class is the definition of a new
type. A class is implemented as data and related functions. I’ll be talking about classes a
lot as they are explained in greater detail throughout the book.
The steps typically followed to create an executable file are:
1. Create a source code file, with a .cpp extension.
2. Compile the source code into an object file.
3. Link your object file with any needed libraries to produce an executable program.
ترجمه: بعد اينكه سورس ترجمه شد، يك فايل آبجكت ساخته مي شود. اين فايل قابل اجرا نيست. براي اين كار شما بايد linker خود را بكار بريد.
در سي++ فايلهاي آبجكت متعدد به هم وصل مي شوند ، بوسيله يك يا چند library .
يك library يك مجموعه اي از فايلهاي قابل لينك است كه توسط كامپايلر شما استفاده مي شود. كه ممكن است شما خريداري كرده باشيد يا خودتان ساخته باشيد.
تمامي كامپايلرها ، حاوي توابع و كلاسهاي كتابخانه اي مفيدي هستند كه شما مي توانيد در برنامه خود include كنيد.
يك تابع ، يك بلوك از كد است كه يك وظيفه اي را انجام مي دهد. مثل اضافه كردن دو عدد ، يا چاپ بر روي صفحه نمايش.
يك كلاس ، تعريف type جديدي است. كلاس شامل توابع و متغير(data ) هايي است. من ( sams ) در طول كتاب زياد و مفصل راجع به كلاس توضيح مي دهم.
من (saalek )

هم مثل شما چيزي نفهميدم. ولي بعدا خواهيم فهميد.
ادامه ترجمه: مراحل ساختن يك فايل اجرايي بدين شرح است:
اول ، ايجاد يك فايل سورس با پسوند cpp .
دوم ، كامپايل سورس به object فايل.
سوم ، link كردن object file با كتابخانه هاي مورد نياز ، براي ايجاد فايل قابل اجرا. اجرايي.
.