الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مساعدة عاجلة في لغة سي بلس بلس

بدأه السهم الثاقب في 3 أبريل 2009 · 2 رد · 531 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

بسم الله الرحمن الرحيم

اريد منكم مساعدة عاجلة جدا

اريد كتابة فقرة في لغة سي بلس بلس

بحيث تكون الفقرة اربع اسطر كل سطر لا يزيد عن 50 حرف وبين الكلمات يوجد فراغ

وهذا السوال

Write a program that reads a paragraph of 4 lines of text. The user can enter extra spaces between words. The length of each line does not exceed 50 characters. The program should output the following: ((Use pointers))

1. A table indicating the occurrence of each letter of the alphabet in the text.

ولكم جزيل الشكر :D

#2

السلام عليكــم ورحمـة الله وبركاتــه ،،

لأن حل الواجبات ممنوع

سأعطيك مفتاح الحل

يمكن عمل داله تقوم بعد حرف ما فى مصفوفه حرفيه واستخدامها فى برنامجك وعليك الباقى :D


#include <string.h>
using namespace std;
int how_many(char line[],int size,char a)
{
int n=0;
for (int i=0;i<size;i++)
{
if(line==a) n++;
}
return n;
}
int main()
{
char s[]="hello my dear";
cout<<how_many(s,strlen(s),'h')<<endl;
return 0;
}
#include <iostream>

اللهم صل على سيدنا محمد وعلى آله وصحبه وسلم

#3

السلام عليكم ورحم الله وبركاته

جزاك الله كل خير

مدة الواجب 30يوم

مضى 25 يوم ولم استطيع ان احله البرنامج صعب وانا مبتدا في البرمجة

السوال اكثر من فرع

Write a program that reads a paragraph of 4 lines of text. The user can enter extra spaces between words. The length of each line does not exceed 50 characters. The program should output the following: ((Use pointers))

1. A table indicating the occurrence of each letter of the alphabet in the text.

2. The input paragraph without extra spaces between words.

3. Average word length in the paragraph.

4. The list of words in the paragraph sorted in alphabetical order.

5. The 4 lines in the paragraph sorted in ascending order of length.

السوال عليه 10 علامات وضروري اني احله

وشكرا

مواضيع مشابهة