do I have to use Singleton for example? sorry I'm kinda lost on this one
Type: Posts; User: Cmaniac
do I have to use Singleton for example? sorry I'm kinda lost on this one
Hey I'm trying to access a method which is on another class rather than the one the thread was created on.. Now about the problem that I have to use delegates I fixed that infact the code works when...
I got a 2D array of values that represent a b&w(1 or 0) bitmap(64x64).. Now i need to read the bitmap in a spiral way starting from (31,31) and store them in a 1 dimensional array.. I've been trying...
I have always wondered why automatically assigned ports in BSD sockets range from 1024 to 5000... can anyone tell me why is this?
not exactly before printf... i said before printf to make the question more understandable for what i'm trying to do...
But what happened was that from after a fork i was calling a function, where...
ah ok pretty straight forward :) thanks mate ;)
hi
is there a way to flush stdout before calling printf?
yep sorted it out.... actually i was calling another function before which was opening the file with O_TRUNC set hehe.....
sorry for this stupid post :$ been awake for 30 hours+ :$ need some rest
Hi...
I'm kinda new to files on C... and i need to write a line to the end of the file each time I enter a funtion where each line would look like something like...
John entered 16
I...
ok sorted it out :)
Thanks man u've been of great help to me :)
Hi there
I have a variable of type char[10] where i will always store a Character in char[0], however char [1] will always be a number between 0 and 9.
therefore Z9 is one possibility of how...
yeah ok thx
i understand the question is a bit confusing... the thing is that i'm forking a lot of children if you remember me posting from a previous post... the problem is that one and only one will change the...
Hi there
i've got this type of thing in a function
int function1(char *buf, int *size, int options)
{
forking
its because i got a structure for a task i'm doing and i must follow, as for the array part i already did it, however i'm now trying to collect them individually, put them in an array and pass the...
thx.. yeah i know about that way... however i have the "complicate" things as its the only way the end user will communicate through the function, I can't force him to pass the function an array...
Hi there
I've come to a point where i need to do something like this that is i won't know how many parameters the user would pass. Take a look at the function below:
int myfunction(char...
sorted this out... yeah salem u were right hehe had forgotten the ';'. And i wasn't compiling all my files at one go...
kinda new to header files, was a Pascal geek for over 8 years lol... anyway...
its part of an assignment so i guess no... i'll try and check out for the bugs u told me first, i'll post here later....
thanks for now
sorry but this is first time i'm messing like this with header files
so are you saying i should only do 'gcc test.c'?
cos if thats it i'm getting this:
In file included from test.c:4:...
ok i got a structure i need to follow...
i've got a file named say : file1.c which got the implementation of 4 functions in it... and also #includes myheader.h
then i've got a file named:...
>> However im not sure if an int covers all the range in process ids
>No, a pid_t covers the range of process IDs, that's what it's there for.
as for that i meant that an int will cover all...
thanks salem, i did something similar to what you answered me... at first i was trying it from 'main' when i then moved it into a function all i started getting was segmentation faults. I started...
Hi
I've been trying to fork 10 children by the same parent, however the parent copies itself each time (as it should do afterall).. My question is now is there a way to fork n children such that...
ok thx