Search:

Type: Posts; User: Cmaniac

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,666

    do I have to use Singleton for example? sorry I'm...

    do I have to use Singleton for example? sorry I'm kinda lost on this one
  2. Replies
    3
    Views
    1,666

    Threads and VS2005

    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...
  3. Replies
    2
    Views
    998

    More of an alogirthm problem

    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...
  4. Replies
    1
    Views
    942

    more of a port curiousity question

    I have always wondered why automatically assigned ports in BSD sockets range from 1024 to 5000... can anyone tell me why is this?
  5. Thread: flush stdout?

    by Cmaniac
    Replies
    4
    Views
    61,561

    not exactly before printf... i said before printf...

    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...
  6. Thread: flush stdout?

    by Cmaniac
    Replies
    4
    Views
    61,561

    ah ok pretty straight forward :) thanks mate ;)

    ah ok pretty straight forward :) thanks mate ;)
  7. Thread: flush stdout?

    by Cmaniac
    Replies
    4
    Views
    61,561

    flush stdout?

    hi

    is there a way to flush stdout before calling printf?
  8. Replies
    3
    Views
    3,927

    yep sorted it out.... actually i was calling...

    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
  9. Replies
    3
    Views
    3,927

    writing to end of file and reading in lines

    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...
  10. Thread: int to char?

    by Cmaniac
    Replies
    5
    Views
    1,539

    ok sorted it out :) Thanks man u've been of...

    ok sorted it out :)

    Thanks man u've been of great help to me :)
  11. Thread: int to char?

    by Cmaniac
    Replies
    5
    Views
    1,539

    int to char?

    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...
  12. yeah ok thx

    yeah ok thx
  13. i understand the question is a bit confusing......

    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...
  14. another problem with functions & parameters

    Hi there

    i've got this type of thing in a function



    int function1(char *buf, int *size, int options)
    {

    forking
  15. Replies
    10
    Views
    1,167

    its because i got a structure for a task i'm...

    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...
  16. Replies
    10
    Views
    1,167

    thx.. yeah i know about that way... however i...

    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...
  17. Replies
    10
    Views
    1,167

    problem with a function

    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...
  18. Replies
    6
    Views
    1,028

    sorted this out... yeah salem u were right hehe...

    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...
  19. Replies
    6
    Views
    1,028

    its part of an assignment so i guess no... i'll...

    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
  20. Replies
    6
    Views
    1,028

    sorry but this is first time i'm messing like...

    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:...
  21. Replies
    6
    Views
    1,028

    some problems with #include

    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:...
  22. Thread: forking

    by Cmaniac
    Replies
    6
    Views
    1,260

    >> However im not sure if an int covers all the...

    >> 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...
  23. Thread: forking

    by Cmaniac
    Replies
    6
    Views
    1,260

    thanks salem, i did something similar to what you...

    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...
  24. Thread: forking

    by Cmaniac
    Replies
    6
    Views
    1,260

    forking

    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...
  25. ok thx

    ok thx
Results 1 to 25 of 32
Page 1 of 2 1 2