Search:

Type: Posts; User: angeljicu

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    934

    a strange problem :(

    I study the data structure,
    met a strange problem.
    I used preorder method to create a binary tree;
    code :


    #include<stdio.h>
    typedef struct node {
    int data;
    struct node...
  2. ok thanx very much

    ok thanx very much
  3. Replies
    4
    Views
    1,031

    maybe you can do like this....

    void printOneWord(char *pstart)
    {
    int i;
    for(i=0;i<strlen(pstart);i++)
    {
    switch(pstart[i])
    {
    case ONE:
    printf("One ");
    break;
  4. Replies
    6
    Views
    1,626

    the program in my machine works well

    have you add "#include<dos.h>"?
  5. Replies
    3
    Views
    979

    I would do it

    often I couldnot express my idea well.
    I would do my best.
  6. I think there couldbe more discuss on the random number

    I would write something about random number and its application.
    I think that's necessary.;)
  7. Replies
    7
    Views
    1,051

    as you say......

    as you say,i just knew,thank you all.
  8. Replies
    7
    Views
    1,051

    I don't know why?

    i tried,found some wrong

    #include<stdio.h>
    main()
    {
    char *string;
    FILE *fp;
    clrscr();
    fp=fopen("c:\\file.txt","r");
    while(fread(string,sizeof(char),20,fp));
  9. Replies
    3
    Views
    979

    help, oh,my god.........

    i modified it and found more problem
    first,i can't find a way to solve the array which could make
    the char and num exist at one time.
    second, the randnum sometimes overstep the max i defined...
  10. sorry,i forgot to tell you

    i use turboc2 to compile and run:)
  11. another game,Hmm.....(I can't get some more stimulation )

    :cool:
    It's a game for you to bet,I think there are some more stimulateion which could be added into it.

    That is I often have some ideas,I add to my program,
    I need you all,give me some...
  12. Replies
    3
    Views
    979

    something wrong,Hmm...........

    :confused:
    I often write some programs,those are some smallest games.
    always something wrong in my programs.

    I put out some to you,all the intentness friends.
    maybe you could give me some...
  13. Replies
    6
    Views
    1,269

    Maybe I could help you....

    Hum.........
    you have forgot to add something
    {
    .....
    char buffer[BUFSIZ] = {127};
    FILE *pFile;
    char *p;
    clrscr();
    window(10,10,70,20);
  14. Replies
    0
    Views
    2,345

    Random function's application:Dice Roller

    I like ARPG games,e.g. Baldur' Gate.
    In the game,at first you must roll to decide your character's 6 attribute.It use 3 dices which each has 6 sides.
    We can write a program to realize it.

    ...
  15. Replies
    12
    Views
    1,507

    sorry......maybe i can't understand

    In our books,I even cannot find a line like you have corrected for me :)

    "char buf[BUFSIZ] = { 127 };
    /* Sure the buffer is bigger than 127, but what do I care? */"

    why can we used a...
  16. Replies
    12
    Views
    1,507

    i think........

    In my opinion,you need to add a line
    #include <stdio.h>
    #include <conio.h>

    main()
    {
    char string[512];
    char *p;
    clrscr();
    window(10,10,70,20);
Results 1 to 16 of 16