- هذا سؤالي مع امحاولتي
#include #include int main() { char word[20],sol[20]; int i,j,v,error=0; char a; printf("inter the wordn"); scanf("%s",word); v=strlen(word); for(i=0;i { sol='*'; printf("%c",sol); } printf("n"); int count=0; while(error<6 && count { printf("ninter leter: "); …
- dynamic allocation for array elements
As Salah's Program in Vector i haven't compile it pacage phonebook; import java.lang.*; import java.util.*; public class PersonItem { String name; String nr; PersonItem(String name,String nr) { this.name=name; this.nr=nr; } public void printData() { System.out…
- dynamic allocation for array elements
this Methd is verey quickly for primary data; Vector and ArrayList is verygood to use in Java, becuse you can read the data with index and you don't need to init the size for it. I think that Mr Salah thinks in C++; ;)
- برنامج بحاجة إلا كمبايلر فقط أرجو المساعده
I have corrected it please try for menu 4 and 5 the Program cannt write in the File test it and try again (select the position for Record in the File) pro2.zip
- Demo for JFC
you have write its in JSDk 1.4.2
- مشكلة وتبغى حل ؟؟
please try with this import java.*; import java.io.*; public class Test{ static int count=0; static Test c1=null; public Test(){ count++; System.out.println("I am nr "+ count); if(c1!=null) c1=new Test(); } public static void main(String[]args){ Test c=new Tes…
- مشكلة وتبغى حل ؟؟
it stops becuse the stack is full
- dynamic allocation for array elements
if you have primary data as int , float,char, double or String then use []; for example int x[]; x=new int[40]; double y[]; y=new double[30]; but if you have objects you can use the class Vector or ArrayList
- أرجو المساعده..
#include int main() { int sav[20],num,i,count=0; for (i=0;i<20;i++) sav=0; int exist=0; printf("nenter a number btween 10 and 100: "); scanf("%d",&num); while(num<10||num>100) { printf("nninvaled input..nnn"); printf("enter a new num between 10 and 100 : nn");…
- مساعدة
include #include const double eps=0.000001; /*Problem 1*/ double fac( int n) { if(n==1||n==0) return 1; else return n*fac(n-1); } /* Problem 2*/ double ex() { int n=1; double sum=0.0; double elem=1; while(elem>eps) { elem=(double)n/fac(n); sum+=elem; n++; } re…
- مساعدة
a
- أرجو المساعده..
اكتب ماذا تريد من البرنامج ان يعمل لانه توجد اخطاء في الخوارزميات 1 يجب ان تعطي قيم اولية للسلسلة sav 2 من اللا منطق تغير قيمة num في حلقة التكرار
- مواقع جافا
http://us.geocities.com/mesolasiso/Java.html
- Demo for JFC
the jar file is greater than 500KB if you want Write your Email and I send you the jar File, or make a Project with all java-files, after that make a jar file with name SwingSet2 Please save the jar file in the same directory, where is the the File SwingSet2.h…
- Demo for JFC
Hier is a demo prgrams For Jtree,JtextField, JButtn, JCombbox, ... demo.zip
- سؤال
Your Error in Classname the Classname mus started with Capitel Correct Program import java.io.*; // include the DataInputStrem class Email3 { public static void main(String[] args) throws IOException{ /* the 3 following line to make the user able to enter from…
- ممكن المساااااااااااااعده
import java.util.*; import java.awt.geom.Point2D; class Quadrilateral { Point2D p1,p2,p3,p4; private double p1p2,p1p3,p2p4,p3p4; public static void main(String args[]) { Point2D pp1=new Point2D.Double(1,2); Point2D pp2 =new Point2D.Double(2,2); Point2D pp3=new…
- حالة طارئة
I think hier is your Error Rule 1: the name of the java-file muss be the same name of the Class for Ex. class Test { .... } this class muss save as Test.java
- ضروري .. خطوة وقفتني اثناء عملي (ربط قاعدة البيانات)
we need tow methods for viewing data in Tabel; the 1 st method is for init the table, in this Method well define the names of colums void initTable(CArray *Titles)//the Titels for this Table { int colsCount=Titles->GetSize(); m_Table->SetCols(colsCount);//for …
- كود PHONE BOOK مثال على JDBC
thank you I see the File Later