dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TheLionKing

Page 1 of 7 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    3,408

    c permutation code

    Hello, I need to have a code to create permutations giving an array of size number of elements and a range...
    something like 4 permutation 2, o 5 permutation 3...
    unfortunately this code has to be...
  2. segmentation fault : __strcpy_sse2_unaligned (c code)

    Hello this is a c code to calculate subset sum.
    In this case I have a name and a value..so I created a struct to hold name and value and I have a function subsetsumstruct to calculate the subset sum...
  3. Re: getopt(int argc, char * const agv[ ], const char * opstring )

    that cleared it! thanks 2kaud
  4. [RESOLVED] getopt(int argc, char * const agv[ ], const char * opstring )

    so I'm trying to understand getopt() to be able to handle command line arguments and I'm having some problems understanding the parameter opstring...
    opstring is defined or described so ... :

    so...
  5. Thread: struct

    by TheLionKing
    Replies
    2
    Views
    476

    Re: struct

    ok thanks will try that...
  6. Thread: struct

    by TheLionKing
    Replies
    2
    Views
    476

    struct

    unfortunately I'm forced to write a short code in c using structs..doing this


    typedef struct
    {
    char nome [10] ;
    int prezzo ;
    } Articolo;

    Articolo uno;
  7. Re: How possible is this recursion not getting stucked?

    Oh my goodness, Master 2kaud to the rescue again! I completely forgot that in this case a new function space is created at every call to subset_sum()...so what ever I was seeing in the watcher was...
  8. Re: How possible is this recursion not getting stucked?

    the same situation I find myself in...
    looking at function subset_sum, the for loop should stop when i is => than 6, but for some reason the program continues and i reduces to 5...
    Sir 2kaud, can...
  9. Re: How possible is this recursion not getting stucked?

    I think is gcc..will play around with it and see what happens
  10. How possible is this recursion not getting stucked?

    so I'm trying to understand how to get a subset sum from a given set and a given target value ...there is this code I
    found online, which uses recursion and backtracking to find the solutions...but...
  11. Replies
    6
    Views
    1,094

    Re: how more effective is this code ?

    thanks Master 2kaud, that was the response to the question I was seeking for, so at least in this case _copy() is not necessary...thanks
  12. Replies
    6
    Views
    1,094

    Re: how more effective is this code ?

    infact Sir VictorN, the code is actually not mine, I'm just walking through it to be able to use part of it in my own project...I noticed this thing and thats why I'm asking, I wanted to know any...
  13. Replies
    6
    Views
    1,094

    how more effective is this code ?

    so going through a source, this function was used to copy a variable into another several time ..


    void _copy(void *dest, const void *source, SIZE_T size)
    {
    #if defined _WIN64
    for(register...
  14. Replies
    1
    Views
    517

    .bin extensions in visual studio

    hello forum, going through a visual studio solution which contains multiple projects, I noticed some of the projects were compiled as .exe files and one of them was compiled as a .bin file...
    so...
  15. Replies
    3
    Views
    3,349

    Re: getModuleFileName

    oh my, thanks soo much master 2kaud!!!
  16. Replies
    3
    Views
    3,349

    getModuleFileName

    Hello friends, bear with my nood questions...I wanted to test the kernel32 function getModuleFileName with the first paramenter NULL which on msdn says that it returns the filename of the process...
  17. Replies
    2
    Views
    773

    Re: Empty definitions

    very clear as always Master 2kaud, thanks
  18. Replies
    2
    Views
    773

    Empty definitions

    I've come across definitions like so


    #define HOOKER //first definition

    then this hooker will be used elsewhere like


    #ifdef HOOKER
    //do something
  19. Replies
    3
    Views
    782

    Re: particular if control structure

    thanks to all
  20. Replies
    3
    Views
    782

    particular if control structure

    so most of the time I come across this types of if control structures..


    if(0){.........}

    if (true){}



    I'm like ok, if what is zero or if what is true?
  21. Replies
    3
    Views
    1,091

    Re: complex macros

    thanks Master 2kaud, that was clear, thanks..
  22. Replies
    3
    Views
    1,091

    complex macros

    look at this code...


    #define NTAPI __stdcall;

    #define DECLARE_NTAPI(ret, name) typedef ret(NTAPI* ntdll##name); //macro 1

    DECLARE_NTAPI(NTSTATUS, NtCreateThread) //macro 2
    (
    ...
  23. Replies
    1
    Views
    965

    configuration in a php file

    hello forum,
    going through the source of an application I found online, I notice the programmer placed the configuration file of the application in a .php file obviously written in php...
    the...
  24. Replies
    2
    Views
    787

    __stdcall and _cdecl

    Hello forum,
    so I have this confusion about the calling conventions __stdcall and _cdecl and when to specify them...

    going through different kinds of win32 source codes, I noticed this macro...
  25. Replies
    11
    Views
    1,661

    Re: multiple projects

    that is very right too Arjay....
Results 1 to 25 of 161
Page 1 of 7 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)