المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : أول طلب لي يا ريت ما تردوني في البرمجة ولغة الفيجول بيسك سي ++



نص مبرمجة
23-05-2005, 12:35 PM
السلام عليكم
هاي أعضاء ممكن خدمة
هذا البرنامج أبغاه بلغة الفيجول بيسك سي ++
أبغاه بعد يومين أو 3
لا تبخلوعلي بليييز


Coding

Create a program using 2-Dimentional array to store information of the company’s product line items:
 Item ID
 Item Name
 Item Price
 Item Quantity

The program should display the following menu:
- Enter the item info (in the array)
- Display all items
- Display a specific item
- Edit an item information
- Calculate the amount of an item (amount = Quntity * Price)


Hint: The array should be of type String. To convert a String to float use the following built in function:
atof(string) function used to convert ASCII String to Real(Float)
to use the atof function you have to include the following file in your project file:
#include <stdlib>

ومشكوورين
يعطيكم الف عافية
تحياتي

بوجاسم الشبح
02-06-2005, 12:58 PM
#include <iostream>


using namespace std;
int main()
{
const int a=5;
const int b=4;
int s[a][b]={{2,1,4,5},{1,2,4,6},{4,9,1,6},{4,6,2,7},{4,6,4,6}};
int m,h,j=0,max=0,sum=0,k=0;
cout<<"\ts1\ts2\ts3\ts4\tmax"<<endl;
cout<<"--------------------------------------------"<<endl;
for(m=0;m<a;m++)
{
cout<<"std#"<<m+1;
for(h=0;h<b;h++)
{cout<<"\t"<<s[m][h];
if(s[m][h]>max)
max=s[m][h];
}
cout<<"\t"<<max;
cout<<endl;
max-=max;
}
cout<<"--------------------------------------------"<<endl;
cout<<"sum"<<"\t";
for(k=0;k<b;k++)
{
for(int e=0;e<a;e++)


{
sum+=s[e][k];
}
cout<<sum<<"\t";
sum-=sum;
}
cout<<endl;
return 0;
يمكن يساعدك هذا البرنامج

بوجاسم الشبح
02-06-2005, 01:09 PM
هذا برنامج يمكن يساعدك