Search:

Type: Posts; User: carle

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    29,283

    haha, yes, you r right. I made a...

    haha,

    yes, you r right. I made a mistake~~~~~~~~~




    carle
    ________________
    Free chat software for you
  2. Replies
    16
    Views
    29,283

    Hey, The ''sizeof" is a keyword of operator,...

    Hey,

    The ''sizeof" is a keyword of operator, while the strlen() is a function. The sizeof returns the length of a varible or data type, in other words, how many bytes this data block of type...
  3. Hi, I compiled and runned your code with...

    Hi,


    I compiled and runned your code with VC++6.0 and it went through just right! However, your code in the function void pa( int a[], int lb, int ub) is duplicated.

    void pa(int a[],int lb,int...
  4. Replies
    10
    Views
    1,375

    Hi, Read in the data from the original text...

    Hi,

    Read in the data from the original text file and the replace all the character ' ' with '\n'.
    Then put it in another file. That's it!

    Carle
    _______________
    Free chat software for you
  5. Replies
    7
    Views
    1,247

    Hi, You can use the c++ method strncmp()! ...

    Hi,
    You can use the c++ method strncmp()!

    char exit[5] = "exit";

    if(!strncmp(buff, exit, 4))
    {
    cout << "the first four characters are "exit"!";
    }
  6. Replies
    7
    Views
    3,520

    Hi, You can use the method atof() to implement...

    Hi,

    You can use the method atof() to implement it!

    #include <stdlib.h>

    ……
    char* f1 = 3.2;
    char* f2 = 4.53;
Results 1 to 6 of 6