Search:

Type: Posts; User: redche

Search: Search took 0.01 seconds.

  1. Yes, I looked in the manual pages for those...

    Yes, I looked in the manual pages for those functions, and I always do a research before posting a thread.
    http://www.space.unibe.ch/comp_doc/c_manual/C/MAN/fflush.htm
    the question I should be...
  2. How do I get my program to wait for a keypress?

    #include <stdio.h>

    void myflush ( FILE *in )
    {
    int ch;

    do
    ch = fgetc ( in );
    while ( ch != EOF && ch != '\n' );
  3. Replies
    72
    Views
    26,963

    Why we do not see the Marines in Africa where...

    Why we do not see the Marines in Africa where everyday is battle to survive, many people die for no reason and there are over 9.5 million refugees?
    And why USA have suddenly become concerned about...
  4. Replies
    4
    Views
    2,147

    This is the part that I didn't know about it.

    This is the part that I didn't know about it.
  5. Replies
    4
    Views
    2,147

    enum declaration

    #include<stdio.h>

    typedef enum {true,false} boolean;

    boolean test(void)
    {
    return false;
    }

    int main(void)
  6. Thread: For Pro Coders!

    by redche
    Replies
    8
    Views
    2,073

    z is not a constant , notice that each iteration...

    z is not a constant , notice that each iteration of the loop z is change
    z*=x;
    for x = 4 the result would be
    b=1 : z=1*4=4
    b=2 : z=z*4=4*4^2
    etc
  7. Replies
    72
    Views
    26,963

    I don't know why we are talking about Israel ?? ...

    I don't know why we are talking about Israel ??

    because Israel declined to sign Nuclear Non Proliferation Treaty.
  8. Replies
    72
    Views
    26,963

    Yes, that's right especially after the new Iraqi...

    Yes, that's right especially after the new Iraqi OIL law.
    Mission Accomplished: Iraqi Oil Effectively Stolen.

    PS: Don't get me wrong, it bothers me what happened to civilians, not only in...
  9. Replies
    72
    Views
    26,963

    Doing better then Saddam is not something be...

    Doing better then Saddam is not something be proud of and nor is it a good defense: "We are doing better then the worst people in the world."

    So 655000 means nothing to you, but 32 students who...
  10. Replies
    72
    Views
    26,963

    so what happened to : to disarm Iraq of weapons...

    so what happened to :
    to disarm Iraq of weapons of mass destruction.
    to end Saddam Hussein's support for terrorism.
    and to free the Iraqi people.


    but usa gives Iraq to shia so we start read...
  11. Replies
    72
    Views
    26,963

    @MacGyver I am confused ..can you tell me once...

    @MacGyver

    I am confused ..can you tell me once again why Americans troops are in iraq??
  12. Replies
    31
    Views
    4,184

    I got it. I've been learning C language since a...

    I got it. I've been learning C language since a month, so its not too bad for a beginner :p.
    what i have to do to avoid this problem?because I m here to learn from my mistakes.
  13. Replies
    31
    Views
    4,184

    what do you mean???

    what do you mean???
  14. Thread: String pointer

    by redche
    Replies
    23
    Views
    2,739

    rand will generate a random number between 0 and...

    rand will generate a random number between 0 and 'RAND_MAX' (at least 32767).

    Prototype: int rand(void);
    you have to include the stdlib.h Library at the beginning of the file. Rand will always...
  15. Replies
    31
    Views
    4,184

    here is another solution #include...

    here is another solution


    #include<stdio.h>
    #define MAX 20

    int main(void)
    {
    int tab[MAX],nb_item,i,j,tmp;
Results 1 to 15 of 15