Search:
Type: Posts; User: TheLionKing
Search:
Search took 0.03 seconds.
-
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...
-
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...
-
that cleared it! thanks 2kaud
-
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...
-
December 29th, 2016, 05:16 PM
ok thanks will try that...
-
December 29th, 2016, 04:36 PM
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;
-
December 24th, 2016, 09:06 AM
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...
-
December 23rd, 2016, 02:09 PM
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...
-
December 23rd, 2016, 12:24 PM
I think is gcc..will play around with it and see what happens
-
December 22nd, 2016, 03:50 PM
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...
-
September 19th, 2016, 03:21 PM
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
-
September 19th, 2016, 02:36 PM
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...
-
September 17th, 2016, 03:41 PM
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...
-
September 16th, 2016, 03:10 PM
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...
-
September 16th, 2016, 07:08 AM
oh my, thanks soo much master 2kaud!!!
-
September 16th, 2016, 06:26 AM
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...
-
September 7th, 2016, 12:37 PM
very clear as always Master 2kaud, thanks
-
September 7th, 2016, 03:20 AM
I've come across definitions like so
#define HOOKER //first definition
then this hooker will be used elsewhere like
#ifdef HOOKER
//do something
-
September 2nd, 2016, 05:14 AM
-
September 1st, 2016, 04:39 PM
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?
-
September 1st, 2016, 03:23 PM
thanks Master 2kaud, that was clear, thanks..
-
September 1st, 2016, 12:23 PM
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
(
...
-
August 9th, 2016, 10:45 AM
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...
-
August 8th, 2016, 06:26 AM
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...
-
July 12th, 2016, 11:53 AM
that is very right too Arjay....
|
Click Here to Expand Forum to Full Width
|