Telegram Group & Telegram Channel
9. نصائح لاستخدام cin

🔰 استخدام endl أو n\ لإدخال سطر جديد:

endl 

يُفضل استخدامه لأنه يفرغ (Buffer) أيضًا.

\n 
أسرع ولكن لا يفرغ Buffer.

🔰 تجنب استخدام cin و getline معًا دون تنظيف buffer:

︎ بعد استخدام cin، قد يتبقى حرف السطر الجديد (n\) في buffer، مما يؤثر على getline.

🔸️ الحل:

︎ استخدام cin.ignore() لتنظيف Buffer


8. الخلاصة العامة لإستخدام الكائن cin


︎ الكائن cin يُستخدم لقراءة المدخلات من المستخدم.

︎ يمكن استخدامه مع أنواع البيانات المختلفة مثل int, double, char, string.

︎ الدالة getline تُستخدم لقراءة النصوص الكاملة التي تحتوي على مسافات.

︎ الجملة cin.ignore() يُستخدم لتنظيف Buffer بعد استخدام cin.

︎ كتابة كود واضح ومنظم مع استخدام التعليقات يجعل البرنامج أكثر قابلية للقراءة والصيانة

#برمجة_و_تطوير
#دورة_سي_بلس_بلس
#C_plus_plus

#الدرس_العاشر_سي_بلس_بلس
#المستوى_الأول

الرجاء متابعة قناتنا  👇
https://www.tg-me.com/ms/telegram/com.artificial_AI_intelligence

🥰 قال رسول الله ﷺ << إذا مات ابن آدم؛ انقطع عمله إلا من ثلاث: صدقة جارية، أو علم ينتفع به، أو ولد صالح يدعو له >>  رواه مسلم.

🤗 اذا إستفدت من الدرس لا تنسى الدعاء لنا 🤲



tg-me.com/artificial_AI_intelligence/980
Create:
Last Update:

9. نصائح لاستخدام cin

🔰 استخدام endl أو n\ لإدخال سطر جديد:

endl 

يُفضل استخدامه لأنه يفرغ (Buffer) أيضًا.

\n 
أسرع ولكن لا يفرغ Buffer.

🔰 تجنب استخدام cin و getline معًا دون تنظيف buffer:

︎ بعد استخدام cin، قد يتبقى حرف السطر الجديد (n\) في buffer، مما يؤثر على getline.

🔸️ الحل:

︎ استخدام cin.ignore() لتنظيف Buffer


8. الخلاصة العامة لإستخدام الكائن cin


︎ الكائن cin يُستخدم لقراءة المدخلات من المستخدم.

︎ يمكن استخدامه مع أنواع البيانات المختلفة مثل int, double, char, string.

︎ الدالة getline تُستخدم لقراءة النصوص الكاملة التي تحتوي على مسافات.

︎ الجملة cin.ignore() يُستخدم لتنظيف Buffer بعد استخدام cin.

︎ كتابة كود واضح ومنظم مع استخدام التعليقات يجعل البرنامج أكثر قابلية للقراءة والصيانة

#برمجة_و_تطوير
#دورة_سي_بلس_بلس
#C_plus_plus

#الدرس_العاشر_سي_بلس_بلس
#المستوى_الأول

الرجاء متابعة قناتنا  👇
https://www.tg-me.com/ms/telegram/com.artificial_AI_intelligence

🥰 قال رسول الله ﷺ << إذا مات ابن آدم؛ انقطع عمله إلا من ثلاث: صدقة جارية، أو علم ينتفع به، أو ولد صالح يدعو له >>  رواه مسلم.

🤗 اذا إستفدت من الدرس لا تنسى الدعاء لنا 🤲

BY البرمجة و الذكاء الإصطناعي


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/artificial_AI_intelligence/980

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Export WhatsApp stickers to Telegram on iPhone

You can’t. What you can do, though, is use WhatsApp’s and Telegram’s web platforms to transfer stickers. It’s easy, but might take a while.Open WhatsApp in your browser, find a sticker you like in a chat, and right-click on it to save it as an image. The file won’t be a picture, though—it’s a webpage and will have a .webp extension. Don’t be scared, this is the way. Repeat this step to save as many stickers as you want.Then, open Telegram in your browser and go into your Saved messages chat. Just as you’d share a file with a friend, click the Share file button on the bottom left of the chat window (it looks like a dog-eared paper), and select the .webp files you downloaded. Click Open and you’ll see your stickers in your Saved messages chat. This is now your sticker depository. To use them, forward them as you would a message from one chat to the other: by clicking or long-pressing on the sticker, and then choosing Forward.

Telegram hopes to raise $1bn with a convertible bond private placement

The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.

telegram from ms


Telegram البرمجة و الذكاء الإصطناعي
FROM USA