- Free Editor for Java , html, C++
http://www.editplus.com/download.html
- linked list
your error was in the Function /* void add_node(list*l,node*pnew) print_list(list* l) add_data */ the Correct code #include #include #include #include typedef struct node{ char bookn[20]; char bookw[20]; int snumber; struct node *link; }node; typedef struct li…
- frindداله
1 we have 3 classes A,B and C 2 in the Class A we have defined some variable as Private 3 The Class B is friend from class A, but Class C is not friend from A 4 in the Class B we can used the Private variable of Class A for Examble void B::setY(A *a) { y=a->x;…
- اذا كان بين الكلمات اكثر من space كيف اجعله one space ؟
iostream is File in C++ for Input und output the Streams if you used C und not C++ pleas write printf in C++ cout << endl<< str << endl << temp_s << "n"; in C printf(" %sn",str); printf(" %sn",temp_s); or another format the Object is defined in iostream.h
- frindداله
I make it in the next days
- السلام عليكم .. الرجاء المساعدة
/* the Correct Answer for Problem 2 */ public String readFile() { String quell =""; String in; try { _idocfile = new FileReader(_inFileName); _buffin = new BufferedReader(_idocfile); StringBuffer strBuf=new StringBuffer(); while ((in = _buffin.readLine())!= nu…
- السلام عليكم .. الرجاء المساعدة
;) //Here is the Correct Answer for Problem 1 public String replaceString(String str, String key,String rep) { StringBuffer strbuf=new StringBuffer(); int pos=0; int index=-1; int length1=0; int lehngth2=0; String rest1=str; String temp=null; count=0; try { /*…
- السلام عليكم .. الرجاء المساعدة
"sorry I mean in the begin of the Text try with a file "test.txt" and write a word "the" in the begin of this text. if you have a proplem, you can write me or send me E-mail and i'll help you!!! Did you understand the programm ? and did you excute it ? you can…
- تكفون يا عيال العيون للي يفهم في operator
#include class RationalNummer { private: int x,y; public : RationalNummer(int x1,int y1); RationalNummer(int x1); int getX(); int getY(); float toFloat(); friend ostream& operator<< (ostream &os,RationalNummer &a); friend RationalNummer& operator - (const Rati…
- اذا كان بين الكلمات اكثر من space كيف اجعله one space ؟
#include #include //#include #include int main () { char str[80],temp_s[80]; int i,j,k,ch; i=0; k=-1; j=0; for(i=0;i<80;i++) { str ='
- frindداله
the Code is corrected #include class A; class B; class C; class A { friend class B; private: int x; public: A(int z); void setX(int z); int getX(); void describeMe(); }; class B { private: int y; public: void setY(A* a); void describeMe(); }; class C { private…
- المقارنه حسب ما يتوفر من الاسماء
Please write in Arabic Languege !!!!
- السلام عليكم .. الرجاء المساعدة
u must correct tow proplems 1. if the Key is in the start 2. the newline in the Out text isn't exsist try to correct it, when u have aproplem plese write me /*this Program for replace String in Textfile */ import java.io.*; public class FileReplace { FileReade…
- مشكلة متتابعة فابونيشي
the Code from mhammad is uncorrect; this Code for n! and not for FiB #include double Fib(int m) { if(m == 1||m==0) { return 1; } else { return( Fib(m - 1)+Fib(m-2)); } } int main() { int n; cout<<"Enter a number: "; cin>>n; cout<<"Fibonachi("< return 0; }
- الرجاء تصحيح الجواب ؟؟؟؟؟؟
i think the Code is correct
- frindداله
try with this Code, Sorry if I have many Errors Ihaven't C++ Compiler public class A { frind: class B; private: int x; public: A(int z); void setX(int z); int getX(); }; public class B { private: int y; public: void setY(A a); }; public class C { private: int …
- سؤال عن مكتبة السي
search in Filemanager with string.h or math.h and you see the file
- اذا كان بين الكلمات اكثر من space كيف اجعله one space ؟
int j=0; string temp_s=""; for (i=0; i < strlen(s); i++) { if (s ==' ' ) { j ++; if(j==1) temp_s += s; } else { temp_s += s; j=0; } }
- اذا كان بين الكلمات اكثر من space كيف اجعله one space ؟
The Code from Mr is wrong would u like to write a program to this Proplem
- سؤال في الfunction
I think your Error in 1/2 in c++ =0 try with 0.5 cann u write the code and I think, I'll help you