Search:

Type: Posts; User: Probose

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,366

    Optional argument

    Is possible to make a function with 3 arguments, but one of them being optional? like this:


    string stringsum(string s1, strings2, strings3){
    return (s1+s2+s3);
    }


    so if i use stringsum("I...
  2. Replies
    10
    Views
    1,422

    Yes, i tought about it when i went to sleep. I'll...

    Yes, i tought about it when i went to sleep. I'll try it right now :D
  3. Replies
    10
    Views
    1,422

    but those functions just add more chars, they...

    but those functions just add more chars, they cant remove the "*"
  4. Replies
    10
    Views
    1,422

    I know that is not a good idea mix both tipes,...

    I know that is not a good idea mix both tipes, its because im working with some win32api functions: FindFirstFile, FindNextFile, FindClose
  5. Replies
    10
    Views
    1,422

    The code is very big and confusing, because its...

    The code is very big and confusing, because its not done
    but here is the code snippet


    char * pch;
    pch=strrchr(DirSpec,'*');

    memmove (pch-DirSpec+1, arquivos[i].nome.c_str(),...
  6. Replies
    10
    Views
    1,422

    Help with char strings

    Ok... lets say that we have a char string that hold a directory, and its leght depends on user input (C:\aaa, C:\bbbb, etc)

    Now i must add a "\*" in the end of that string, then replace this *...
  7. K, i got it risby =] Thanks And sorry for...

    K, i got it risby =] Thanks
    And sorry for posting in the wrong section.
    Cya
  8. Msdn example code (FindFirstFile, FindNextFile

    Hi guys... im trying to understand some win32api functions and i saw this code in msdn page:


    #include <windows.h>
    #include <stdio.h>
    #include <strsafe.h>
    #include <malloc.h>

    #define...
  9. Replies
    2
    Views
    1,065

    Messing with folders

    Hello c++ people!
    Well... Have you guys ever seen when you right click on a folder and see it proprieties?
    I want to make a program that will check for the folders in a root (for example: folder 1,...
  10. Replies
    8
    Views
    1,032

    Well. I Dont understand how the code count how...

    Well. I Dont understand how the code count how much of each letter we have in the examined text file =]
  11. Replies
    8
    Views
    1,032

    What you mean by ident?

    What you mean by ident?
  12. Replies
    8
    Views
    1,032

    Help me with the code=]

    Hi! I Downloaded and modified this opensource.

    It basically, read a txt file and tell how much characters it has and it also tell how much of each letter (from A to Z) it has.

    But... I Cant...
  13. Thread: Function

    by Probose
    Replies
    1
    Views
    768

    Function

    Guys, see that code:

    int main ()
    {
    int x;
    int resultado = 0;
    cout << "Coloque um numero a ser fatorado e descubra se ele eh primo: " << endl <<"(Quanto maior o numero, mais demorado o...
  14. Replies
    1
    Views
    779

    Storing a function argument

    Ok im trying to hook that function

    void __stdcall ZCharacterManagerFindHook(MUID uid)
    {
    }

    I want to know how do i store the arguments value to use it latter.
    Thanks :)
  15. Replies
    1
    Views
    1,093

    Calling a defined function

    if i have that function defined:

    typedef void (__cdecl* RequestSuicide_func)(MUID*uid);
    RequestSuicide_func RequestSuicide = (RequestSuicide_func)ADDR_RequestSuicide;

    How do i call it?
  16. Replies
    5
    Views
    893

    Yeah thanks too, i discovered before you post but...

    Yeah thanks too, i discovered before you post but thanks ^^
  17. Replies
    5
    Views
    893

    Store some things in a float

    Ok, i want that when someone say /teleport 045 120 039, store the 3 values (x y and z) in a float[3]. How i do that? thanks ^^
Results 1 to 17 of 17