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

help me with this question please

مغلق
بدأه karim79 في 29 أغسطس 2004 · 3 رد · 584 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

could you please friends help me in this questions please

write a function to count the number of small letters in a string of charachters.this function should recieve an array o chars as input and should return as return value the number of samll letters it finds in the array of charachter

assumiong the following definitions for instock and delta, write function that prompts the user to input the elements in the first coulmn of instock.
the functon then should set the elements in the remaining columns to two times the corresponding elemnt in the orevious column minus corresponding elemnt in delta

thatnx very much in advance and hope to find answers here as my exam is scheduled tomorrow noon

karim

#2

من شروط المنتدى هى المساعدة ليس العمل الكامل

انا عندى المطلوب بالكامل على الجهاز بس حاول انت و ابعت اللى حاولت فية وانا سوف اساعدك بما فى مستطاعى

لا اله الا الله .......................................... محمد رسول الله

#3

للسؤال الاول قررت ان اتدرب بنفسي و احاول و هذا ما استطعت كتابته:

#include <iostream>
using namespace std;

int main()
{
	char Text[255] = {0};
	int j = 0;
	cout << "Please enter a string with any number of\ncharacters you like and i will calculate this number\n";
	cin.getline(Text,sizeof Text);
	while(Text[j] != '\0')
	{
  ++j;
	}
	cout << "Number of characters is: " << j << "\n";
	return 0;
}

اما عن السؤال الثاني فاين هي ال defenitions for stock data؟

راكان الحنيطي

Be Open Source

opensource-550x4752.gif

#4

الأخ راكان الحنيطي كودك فقط يحسب عدد الحروف صغيرة كانت أم كبيرة .

شوف ذا :

int countsmall(char s[512])
{
  int sx=0;
  int sl = strlen(s);
  for (int i=0;i<sl;i++)
  {
      sx = islower(s)+sx;
   
  }
  
  return sx/2;
}

لاستخدامه:

أولا أضيف ctype.h

char s[256];
scanf("%s",s);
cout << countsmall(s)<<endl;

هذا الموضوع مغلق.

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