اخر المشاركات

[تمارين] Exercises in C plus plus for b beginners
كود


Naming
1- Can a variable name start with a number?
2- Can a variable name start with a typographical symbol (e.g. #, *, _)?
3- Give an example of a C++ variable name that would not work. Why doesn't it work?

Data Types
1- List at least three data types in C++
- On your computer, how much memory does each require?
-
Which ones can be used in place of another? Why?
- Are there any limitations on these uses?
- If so, what are they?
- Is it necessary to do anything special to use the alternative?
2-Can the name we use for a data type (e.g. 'int', 'float') be used as a variable?

Assignment
1- How would you assign the value 3.14 to a variable called pi?
2- Is it possible to assign an int
to a double?
-Is the reverse possible?




التمارين مقدمة من قبل الاستاذ : ثائر النويهي .. لإنشغالة طرحتهم عوضا عنه

الموضوع الاصلى : [تمارين] Exercises in C plus plus for b beginners | المصدر : منتديات شوق القمر | كاتب الموضوع : نجم الويب


تم تحرير الموضوع بواسطة : نجم الويب
بتاريخ: 30-11-2010 05:50 صباحا
| |
This entry was posted on 6:52 م and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 التعليقات: