yup... but I'll add additional detections.
Type: Posts; User: megablue
yup... but I'll add additional detections.
I'm not doing something suspicious nor malicious...
Just trying to pack the files into an exe so that it could act like utorrent.
Where the exe act as a very light weight installer (eject the...
Is it possible to create an char array and add some markers around the char array so that "file writer" program knows where to start writing and the storage program knows where start outputting and...
Yes... I figured that out. That was the reason i said i tried but all attempts were failed.
I had studied a few open source wrapper/binding. I knew the header part since it is common for many C++...
I don't know is it the correct method to use.
But you can always use a special constructor function which live outside the scope of the class.
for example
TheObject & createTheObject()
{
...
I'm new to C++ and this is my very first attempt to write C++ to C binding.
Problem: with the code below, i can only create single instance of the set in C. How can I make the variable to create...
Is there any good and simple (but complete/advanced) framework for C. I'm creating windows controls on runtimes. Perhaps a framework that cover most aspects of Windows GUI programming in C is enough...
int n=12345,c=10,a=0;
while(n%c!=n*10)
{
a=n%c;
printf("%d",a / (c/10));
n-=a;
c*=10;
}
I know this is very common topic :D ...not only in this forum...also....the world... Most gamers dream about making his/her own game(s)... or programmers may make game for fun
Anyone can guide...
oooh.. i got it... blur :o
that mean when i want to pass in one arg
f1(2);/* ---> f(2, 0, 0,0) */
then it is no so convenient way...
one of my friend seen an example that using an...
:confused: why define f1 .....f4?
Is thats mean when i call the function
f(1); /* it pass in f( 1 , 0, 0, 0); */
right?
but why i need to define in this way
you do not need to return any pointer
if you do call by reference for both changed and unchanged pointees
or simply apply the changes to the same pointee
is there any possible to solve it using recursion and without string.h?
i tried to solve using recursion, but failed.
while(!kbhit());
input = getch();
And why should i change to this one?
actually what i was trying to understand how the _sleep() function works.... and i'm glad that someone shown me a great example but i not really understand what is the information the program gather...
I felt like the cloacking() function have a lot of bugs.
And sometimes when i ran some program like (Azurues, MyIE2) minute in my program gone crazy(changing very fast)...
Please give some...
can someone help me to figure out the problem?
Failed Sample 1
input: a+(b/c)
output: abc/
Expected : abc/+
Failed Sample 2
input: 1+(a+(b/c)-d)
output: 1abc/+d-
Expected: 1abc/+d-+
#include<stdio.h>
#include<string.h>
#define STACKSIZE 100
typedef int Item_t;
typedef struct {
Item_t Items[STACKSIZE];
int Top;
} stack_t;
....erm.. the pointer is the only passed in element right?
oic... when an array passed into a function... it will be treated as a pointer in the function... and the sizeof array only return the size of the pointer itself not the allocated memory of the...
thx...this is a nice function ^_^.. save me a lot of time
...erm.... got the idea... malloc(name[BUFSIZ]) doesn't allocate enough blocks of memory...
but i still donno how to solve the problem... can you give me some guide
void addname(char name[BUFSIZ],struct list1 **node)
{
struct list1 *x,*ptr;
char *s = malloc( sizeof( name ) );
x = malloc(sizeof(struct list1));
strcpy( s, name);
x->name=s;...