تعلم البرمجة بلغة ++C
Open in Telegram
💻 الى كل المبرمجين 🔴سوف تجد شرح لغة السي بلاس بلاس للمبتدئين حتى الاحتراف 📺فيدوهات شرح عديدة 🎥 برامج مجانية 🎁 مشاريع مجانيه 📚 كتب تصميم وبرمجة 📚 مراجع واسئلة محلولة 💻برامج واكواد كثيرة كل ذلك في قناتي 👇 https://t.me/LearnCPlus_Plus
Show more2 254
Subscribers
+124 hours
-37 days
-2030 days
Posts Archive
عندي فيديو 300 دقيقة شرح سي بلس بلس بشكل كامل هل ارسلة هنا :-
اي سؤال او كود او استفسار
او ملاحظة في
لغة سي بلس بلس ++c
يرجى إرسالها هنا :-
@arssfh69BOT
#تحدي
😁😁😁😁
اكتب برنامج يقوم بطباعه الشكل الموضح في الصورة ؟👇🏻
لماذا التحدي هذا بالأخص 🤔لمن يستطيع عمل هذا الكود وهو فاهم لجميع الخطوات التي قام بها تهاني لك وثق بأن لك مستقبل مشرق في عالم البرمجة.
😕😕😕والذي لم يستطع لا تقلق فهنالك فيديو يشرح لهذى الشكل شرح يمكنك من بعده أن تستطيع رسم أي شكل وستفهم :-
1_if _else .
2_nested for .
اي سؤال او كود او استفسار
او ملاحظة في
لغة سي بلس بلس ++c
يرجى إرسالها هنا :-
@arssfh69BOT
- نكتفي ب خمسة حلول لأن الحلول اللي وصلتني كثيرة شكراً لكل من شارك
وفقكم الله وسدد خطاكم ❤️🌸
#include <iostream>
using namespace std;
int main()
{
char Name[13] = "c++ program";
cout<<"Before :- "<<Name<<endl;
for(int i = 0 ; i<strlen(Name) ; i++)
{
if(Name[i] >= 'a' && Name[i] <= 'z')
Name[i] -= 32;
}
cout<<"After :- "<<Name<<endl;
}
حل 5
حل اخر
#include <iostream>
using namespace std;
int main()
{
string Name = "c++ program";
int i=0;
cout<<"Before :- "<<Name<<endl;
while(Name[i]!=NULL)
{
if(Name[i] >= 'a' && Name[i] <= 'z')
Name[i] -= 32;
i++;
}
cout<<"After :- "<<Name<<endl;
}
حل 4
حل اخر
#include <iostream>
using namespace std;
int main()
{
string Name = "c++ program";
int i=0;
cout<<"Before :- "<<Name<<endl;
while(Name[i]!=NULL)
{
if(Name[i] >= 'a' && Name[i] <= 'z')
Name[i] -= 32;
i++;
}
cout<<"After :- "<<Name<<endl;
}
#include <iostream>
using namespace std;
int main()
{
char Name[13] = "c++ program";
cout<<"Before :- "<<Name<<endl;
for(int i = 0 ; i<strlen(Name) ; i++)
{
if(Name[i] >= 'a' && Name[i] <= 'z')
Name[i] -= 32;
}
cout<<"After :- "<<Name<<endl;
}
#include <iostream>
#include <conio.h>
#include <stdio.h>
using namespace std;
//هذا يحو الصفير إلى الكبير والكبير إلى صغير ويطبع الرقام والحروف على ما هن عليه
int main()
{
char ch;
cout << "enter a string :";
while ((ch = getchar()) != '\n')
{
if (ch >= 'A' && ch <= 'Z')
cout<<char(ch+32) ;
//putchar(ch + 32);
else if (ch >= 'a' && ch <= 'z')
cout<<char(ch-32);
// putchar(ch - 32);
else
cout<<ch; // putchar(ch);
}
return 0;}
حل 3
#include<iostream>
using namespace std;
int main()
{
string x;
cin>>x;
int p=1, i=-1;
while(p<2){
i++;
x[i]=x[i]-32;
if(x[i]>=65 && x[i]<=97 || x[i]>=97 && x[i]<=122)
p=1;
else
p=2;
}
cout<<endl<<x<<endl;
}
حل 2
س1)
اكتب برنامج يستقبل كلمات بالاحرف الصغيرة ثم يطبعها بالاحرف الكبيرة.
#include<constream.h>
#include<string.h>
#include<ctype.h>
void main()
{
int a,i;
char s[20];
cout<<"please enter string \n";
cin>>s;
a=strlen(s);
for(i=0;i<a;i++)
{
if(islower(s[i])!=0)
strupr(s);
}
for(i=0;i<a;i++)
cout<<s[i];
}
الحل 1
