Search:

Type: Posts; User: bchaib

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    1,512

    You mean if I use fgets in stead of scanf ?

    You mean if I use fgets in stead of scanf ?
  2. Replies
    14
    Views
    1,512

    I think you don't understand my question at all :p

    I think you don't understand my question at all :p
  3. Replies
    14
    Views
    1,512

    Yes I know and yes I did search for how 2 use...

    Yes I know and yes I did search for how 2 use fgets, but I didn't gbet anything.

    My wone code?


    int x = 0;

    scanf("%d",&x);
    printf("Root of %d is %d",x,sqrt(x));
  4. Replies
    14
    Views
    1,512

    Yes, but how to use it, pleas? and with wich...

    Yes, but how to use it, pleas? and with wich library ?

    Thank you
  5. Replies
    14
    Views
    1,512

    How to control the input ?

    Hi,


    scanf("%d",&x);

    How can I control the input ?


    if (x is a number) {
    //do this
  6. Replies
    60
    Views
    7,006

    Thank you all for your replies .. I am learling...

    Thank you all for your replies .. I am learling both languages: C and Java :D .. but the pointers in C are making me crazy :cool: :D

    I'm doing 2 courses: first course = 120 hours of Java and if I...
  7. @dwks If I have this : scanf("%d",&x);...

    @dwks

    If I have this :

    scanf("%d",&x);
    scanf("%d",&x);
    scanf("%d",&x);

    printf("%d",x);
    You said so this means I have to use getChar() three times to see the output !!!?
  8. BUT, suppose I have this program: #include...

    BUT, suppose I have this program:

    #include <stdio.h>
    int main(void) {
    int x;
    scanf("&#37;d",&x);
    printf("You entred %d",x);
    return 0;
    } I muy enter \n 'enter keys' as much as I...
  9. Yesss .. it works .. thank youuu (f) this is much...

    Yesss .. it works .. thank youuu (f) this is much better caus I can't know when or where the program leavs charachters .. !!
  10. Thanks, I get it .. while(getchar() != '\n')...

    Thanks, I get it ..

    while(getchar() != '\n') {}
    getchar(); Do I really need this for eating the characters left by printf and scanf functions?
  11. :eek: :mad: :rolleyes: :devil: :confused: I...

    :eek: :mad: :rolleyes: :devil: :confused:
    I don't understandddd ...

    You are talking about the function scanf () which leaves according to you a newline dangling in the input buffer !!!


    BUT
  12. Mmm so Getchar() waits for keypress, O.K .. I...

    Mmm so Getchar() waits for keypress, O.K .. I get it but why do I have to add it ?? why do my program stop if I don't add Getchar() ???


    Normally it has to process untill if arrives at }
  13. Yes Dev-C++ :) .. I'm gonne read it but now I...

    Yes Dev-C++ :) .. I'm gonne read it but now I have another Q:


    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    int a[10];
    int i, j, temp;
    printf("Give me 10 integers:\n");
  14. I don't understand the differences, I installed...

    I don't understand the differences, I installed Div C++ and I got another code for hello world app:


    int main(int argc, char *argv[])
    {
    printf("Hello World!\n");

    printf("Press ENTER to...
  15. I don't want to write a code I don't understand ..!!

    Hi,
    I'm new in the world of programming, I just begun to program in C langauage.. I started to write my first program using Borland C++ and I can use different styles :

    1.

    #include <stdio.h>
    ...
  16. Replies
    60
    Views
    7,006

    mmm .. combination ... ice + fire gives you...

    mmm .. combination ... ice + fire gives you water .. :D
  17. Replies
    60
    Views
    7,006

    @laserlight Thanks 4 ur advice, I begun today...

    @laserlight
    Thanks 4 ur advice, I begun today learling programming in C :) printf, scanf and making some variables ..
  18. Replies
    60
    Views
    7,006

    @matsp Virus according to me is a program...

    @matsp

    Virus according to me is a program which destroys your files and data or make your computer working slowly ..
    Yes now I understand memory management and garbage collection .. in Java we...
  19. Replies
    60
    Views
    7,006

    @Elysia Yes, I was reading today in a book...

    @Elysia

    Yes, I was reading today in a book about differences between C and Java and I read about pointers in C using stars but there is no pointer in Java.

    The Question is: no pointers in Java...
  20. Replies
    60
    Views
    7,006

    @Perspective Thank you, .. do you do that ?...

    @Perspective


    Thank you, .. do you do that ? you are programming on a very low layer if you operate the memory .. you can program virus with C :D

    I think it's a lot work to do this memory...
  21. Replies
    60
    Views
    7,006

    Can you pleas give me an example? but in C we...

    Can you pleas give me an example? but in C we don't have objects !! or not ?

    Elysia,
    No, I don't want emulators => that's too technical ... I just want in the future to make programs processing...
  22. Replies
    60
    Views
    7,006

    I don't know that, that is why I ask in this...

    I don't know that, that is why I ask in this topic.
    C/C++ which one efficient, fast and with more possibilities...
  23. Replies
    60
    Views
    7,006

    Yes, in Java there is applet like this:...

    Yes, in Java there is applet like this: http://www.physics.uoguelph.ca/applets/Intro_physics/kisalev/java/resist2/index.html
    and they are indeed web-oriented but in java you can programm...
  24. Replies
    60
    Views
    7,006

    Thank you all for your responses, I really...

    Thank you all for your responses, I really appreciate that.



    What do you program in C ? database? networking? games, .. ? does it take a lot of time?



    Thank you very mucht, I can...
  25. Replies
    60
    Views
    7,006

    C or Java ? Pleas help meee ...

    Hello everybody,
    I would like to learn how to program a computer and the aim is:
    I want in the future to develop a software which can process data and store it into database and also making...
Results 1 to 25 of 25