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/ye/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/ye/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: |

How To Find Channels On Telegram?

There are multiple ways you can search for Telegram channels. One of the methods is really logical and you should all know it by now. We’re talking about using Telegram’s native search option. Make sure to download Telegram from the official website or update it to the latest version, using this link. Once you’ve installed Telegram, you can simply open the app and use the search bar. Tap on the magnifier icon and search for a channel that might interest you (e.g. Marvel comics). Even though this is the easiest method for searching Telegram channels, it isn’t the best one. This method is limited because it shows you only a couple of results per search.

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 from ye


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