Search:

Type: Posts; User: Viorel

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    747

    I think instead of int i; . . . for(int...

    I think instead of


    int i;
    . . .
    for(int x=0; x < tmpFiles.size(); x++)
    {
    endList.push_back(tmpFiles[i].cFileName);
    }
    you should have
  2. Replies
    2
    Views
    6,469

    There is no such function DDV_MinMax, your...

    There is no such function DDV_MinMax, your probably mean DDV_MinMaxInt.

    It seems your m_strLastName variable is of type CString, therefore I think you will not be able to use any of DDV_MinMaxXXX...
  3. Replies
    10
    Views
    1,912

    It seems you are using an un-initialized n here:...

    It seems you are using an un-initialized n here:


    int n;
    while (n!=0)
    {
    . . .
    }
    Probably it should be
  4. Replies
    12
    Views
    2,276

    I think if you have an "extern double * b;"...

    I think if you have an "extern double * b;" declaration, you should also have somewhere a definition like "double * b;" (on file level, not inside a function), and also initialize it before calling...
  5. Replies
    9
    Views
    1,765

    The isalpha(c) function checks if c is an...

    The isalpha(c) function checks if c is an alphabetic character like 'a', 'b', etc. The previous program counts such letters only, excluding spaces or digits. If you need the number of all of bytes,...
  6. Replies
    9
    Views
    1,765

    Since you probably do not need the file length...

    Since you probably do not need the file length (which can be obtained with other methods), but the count of alphabetic characters, then I think your loop should look like this:


    int c;

    while(...
  7. What happens if you comment everything except ...

    What happens if you comment everything except


    int main (int argc, char* argv[])
    {
    return 0;
    }
    What is the value of Entry Point and No Entry Point fields in Project Properties --> Linker...
  8. Replies
    9
    Views
    8,942

    I think STL and namespaces are not supported by...

    I think STL and namespaces are not supported by Borland C++ 3.1.

    Maybe you should try other compiler? For instance you can try Visual Studio 2005 from...
  9. Replies
    9
    Views
    8,942

    The proposed solution seems to work in case of...

    The proposed solution seems to work in case of particular compilers, like Visual Studio. I think you should specify which kind of compiler you are using.
  10. Replies
    9
    Views
    8,942

    I think you should try this: #include...

    I think you should try this:


    #include <iostream>
    #include <string>

    int main()
    {
    std::string s;
    return 0;
  11. Replies
    10
    Views
    37,167

    I think the end-of-file marker in files opened in...

    I think the end-of-file marker in files opened in text mode is represented by 0x1A (26) character.
  12. Replies
    13
    Views
    2,534

    Maybe at first stage you simply should allocate...

    Maybe at first stage you simply should allocate enough space for destination strings?


    char fs[64] = "\\hello ";
    char fe[64] = "\\hello ";
    I hope it helps.
Results 1 to 12 of 12