Click here to Skip to main content
15,891,657 members

Comments by Mortadda jafar (Top 5 by date)

Mortadda jafar 1-Jan-15 12:55pm View    
Hello
I wrote code .. and I know that a long and bad
One problem in the code are explained below:
------The original code(input file)---
if(>2){
if(q>3){
var ;
};
var f;
};
------The correct code(output file)-----
if(f>2){ f(The user entered)
if(q>3){
var d; d (The user entered)
var f; The problem with this line and the next line where it should all of them instead of the other
};
};
Mortadda jafar 31-Dec-14 8:36am View    
Thank you .. I've written code but in some conditions Broken
Mortadda jafar 29-Dec-14 11:32am View    
Thank you, but I've tried a lot
I just want algorithm
Mortadda jafar 29-Dec-14 11:19am View    
how write this program?
Mortadda jafar 17-Nov-14 5:07am View    
hay
i want reserve without chang index for array
exmple with change index:
<pre lang="c++"></pre>
char array[20];
int i,j;
gets(array);
j=strlen(array);
for(i=j-1;i>=0;i--)
{printf("%c",array[i])
}


i want use (strncat & strncpy with for)...for Reverse string
but i don't know how i can do this
::
ex ::
<pre lang="c++"></pre>
char array[20];
int i,j;
j=strlen(array);
for(*******)
{
strncat(****) or strcat(***)
or strncpy(***) or strcpy;
}


and in the end i want Reverse string :^) :^)