Deprecated: Assigning the return value of new by reference is deprecated in /www/wwwroot/shabab.ps/public_html/vb/showthread.php on line 639

Deprecated: Assigning the return value of new by reference is deprecated in /www/wwwroot/shabab.ps/public_html/vb/showthread.php on line 1041

Deprecated: Assigning the return value of new by reference is deprecated in /www/wwwroot/shabab.ps/public_html/vb/showthread.php on line 1046

Deprecated: Assigning the return value of new by reference is deprecated in /www/wwwroot/shabab.ps/public_html/vb/showthread.php on line 1518

Deprecated: Assigning the return value of new by reference is deprecated in /www/wwwroot/shabab.ps/public_html/vb/showthread.php on line 1523
مسااااعدة بالجافا ازا بتريدووووااا - منتديات شباب فلسطين
نحن مع غزة


الإهداءات

العودة   منتديات شباب فلسطين > محطات تقنية > مُتعلقات التقنية

 
 
أدوات الموضوع انواع عرض الموضوع
Prev المشاركة السابقة   المشاركة التالية Next
قديم 04-21-2008, 07:36 PM   #1
hanady
I ♥ AQSA
 
الصورة الرمزية hanady

قوة السمعة: 9 hanady will become famous soon enough

افتراضي مسااااعدة بالجافا ازا بتريدووووااا

السلام عليكم
كيييفكم و شو اخبارك
المهم انا بدي مساعدة ادا بتريدو في عندي برنامج جافا

كود بلغة HTML:
import java.io .*;
public class Tra1	{
static int A[][];
static int i,j,k,s,n,m,l,r,h;
static int u=0;
/*la fonction qui calcule la somme des ligne*/
static int soml(int A[][]){
int t1[];
int max;
t1=new int[n];
for(i=0;i<n;i++) 
{
s=0;
for (k=0;k<m;k++)
{
s=s+A[i][k];
}
t1[i]=s;
}
max=t1[0];
for (i=0;i<n-1;k++){
max=t1[0];
if (max<t1[i+1]){
max=t1[i+1];u=i;
}}
return u;
}
/*le programme principale*/

 public static void  main(String[] args)throws IOException{
 
/*la taille du matrice A[n][m]*/
BufferedReader in= new BufferedReader(new InputStreamReader(System.in));
System.out.println("entrer le nbr de ligne du A=n");
n=Integer.valueOf(in.readLine()).intValue();
System.out.println("entrer le nbr de colon du A=m");
m=Integer.valueOf(in.readLine()).intValue();
System.out.println("la taille du matrice A est A["+n+"]["+m+"]");

/*les valeurs du matrice A*/
A=new int [n][m];
System.out .println("entrer les valeurs du matrice A");
for(i=0;i<n;i++){
for (k=0;k<m;k++)
{
System.out .println("la valeur de A["+i+"]["+k+"] == "+A[i][k]);
A[i][k]=Integer.valueOf(in.readLine()).intValue();
}}
System.out.print("la ligne a somme superieur est"+  som1(A[][])  );
}
}

و في غلطتين ما عرفة ازبطهمالسلام عليكم كيييفكم و شو اخبارك المهم انا بدي مساعدة

كود بلغة HTML:
Tra1.java:49: '.class' expected
System.out.print("la ligne a somme superieur est"+  som1(A[][])  );
                                                              ^
Tra1.java:49: ')' expected
System.out.print("la ligne a somme superieur est"+  som1(A[][])  );
                                                                  ^
2 errors


فطبعا بدي مسااعتكم ادا بتتكرمو علي ادا بتريدو في عندي برنامج جافا كود بلغة HTML: import





  اقتباس المشاركة
 


الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع


الساعة الآن 09:54 PM.