Search:

Type: Posts; User: Zwen

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,588

    @ elad: I thought I pointed to whatever strtok()...

    @ elad:
    I thought I pointed to whatever strtok() returns, but I found no explicit explanation what strtok() really does...
  2. Replies
    7
    Views
    1,588

    (ok, it's my first script in c++ so it became a...

    (ok, it's my first script in c++ so it became a little dirty... and long... and over-nested...)

    I employ strtok() in one part of the programm and get char* var_Desk. Then I want to check, what...
  3. Replies
    7
    Views
    1,588

    Unfortunately the compiler tells me that now...

    Unfortunately the compiler tells me that now parameter 2 cannot be changed from 'char' to 'const char*'...
  4. Replies
    7
    Views
    1,588

    Convert char* to char?

    I would like to strcpy() the content of the memoryblock pointed on by my_pointer to my_variable.
    strcpy (my_variable, my_pointer);Of course it does not work. How can I solve it?
    Thank You.
  5. Replies
    6
    Views
    22,324

    @ Sebastiani: that's it - thank you :)

    @ Sebastiani: that's it - thank you :)
  6. Replies
    6
    Views
    22,324

    hehe ;) - sorry, but that's not the problem. ...

    hehe ;) - sorry, but that's not the problem.

    The string is returned by a function an only in certain cases it must be empty...
    so I need to return an EMPTY string:
    cout << string << endl;needs...
  7. Replies
    6
    Views
    22,324

    How to empty a string?

    How do I empty a string to obtain an empty line whe I "cout" it?
  8. Replies
    5
    Views
    6,149

    Works great. Thanks a lot :)

    Works great. Thanks a lot :)
  9. Replies
    5
    Views
    6,149

    @ ripper079: I wanted to convert "C1;;;4;;1;"...

    @ ripper079:
    I wanted to convert "C1;;;4;;1;" into something that looks like this string: "C1;0;0;4;0;1;".
    I tried strtok() but it just removes the ";" and returns: "C1 4 1".
    Is there a way to...
  10. Replies
    5
    Views
    6,149

    Insert char into string?

    How can I insert characters into a string?
    Example:
    {R5;;;;1;;1;} ---> {R5;0;0;0;1;0;1;}
  11. Replies
    4
    Views
    7,355

    This is what I already know : strtok() returns a...

    This is what I already know :
    strtok() returns a pointer to a string that includes the delimiter AND replaces the delimiter by NULL.
    That means: in case there are two delimiters in a row (like ;;)...
  12. Replies
    4
    Views
    7,355

    what does strtok return?

    What does strtok return when it finds "nothing" between two delimiters? (It seams that it is not NULL).

    I need to insert a character between two deliniters, but cannot find any if-condition for...
  13. Replies
    5
    Views
    1,318

    Sorry! Ignore my last post - found mistake....

    Sorry! Ignore my last post - found mistake.
    Thanks for all replies!
  14. Replies
    5
    Views
    1,318

    I already tried strtok. It had Problems returning...

    I already tried strtok. It had Problems returning tokens like ' - + / '. Any Idea, why?


    lkv_Pointer = strtok (lkv_String, ";");
    while (lkv_Pointer != NULL)
    {
    cout << lkv_Pointer << endl;...
  15. Replies
    5
    Views
    1,318

    substract character from string?

    Is there a function to substract certain charakters from a string?

    My string contains masses of ';' between various characters that I want to process.

    Thanx.
Results 1 to 15 of 15