Search:

Type: Posts; User: ActionMan

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,197

    thanks

    hey,

    thanks.. that the way I origionally had it. I was hoping new was a little more advanced.

    thanks for the help!!

    cheers,
    ActionMan
  2. Replies
    4
    Views
    1,197

    sorry forgot to say that twoDArray is declared as...

    sorry forgot to say that twoDArray is declared as follows..

    char ** twoDarray;
  3. Replies
    4
    Views
    1,197

    Just a quickie

    hey,

    Just having trouble with creating a 2d array in the heap memory.

    my code goes something like this:

    twoDarray = new char[iSize][iSize];

    where iSize is passed into the method.
  4. Replies
    3
    Views
    4,179

    CPU times and clock ticks

    hey all,

    im trying to time a system call.

    I want to use/ understand the times() function. but it doesnt seem to work.

    both calls to the times() function return the same value. It must have...
  5. Replies
    6
    Views
    1,886

    thanks

    hey thanks,

    I didnt know about the srand function. :)

    now that i know about that it works fine.

    If I do it the way your suggest however it will use low ordered bits. I need to use high...
  6. Replies
    6
    Views
    1,886

    Random numbers

    Hey all,

    Im trying to produce random numbers in the range of 1 to 50,000 using the rand() function.

    just a little curiouse as to how this function works.

    Ive been fiddling with it and i...
  7. Replies
    6
    Views
    1,861

    hmm

    hey
    from what i can see..
    firstly your not allocating space for the array of strings..

    i.e.

    char **thingies

    this is a pointer to a pointer to a char (which could be an array)
  8. Thread: C and Java

    by ActionMan
    Replies
    5
    Views
    1,288

    thanks

    thanks for all your help :-)
  9. Thread: C and Java

    by ActionMan
    Replies
    5
    Views
    1,288

    C and Java

    Hey all,
    Im working on a project at the moment which will use a java gui but do the problem solving in c.

    The way Im planning to do this is by calling the c functions from the java code..
    but...
  10. Replies
    3
    Views
    4,371

    Searches

    Hey,
    well sequential searcher are slow.. but they are a simple concept.. heres some pseudo code:

    while (not at end of list AND not found)
    {

    if (this node is what searching for)
    found!!!...
  11. Replies
    3
    Views
    30,779

    Sticky: Searches

    Hey,
    well sequential searcher are slow.. but they are a simple concept.. heres some pseudo code:

    while (not at end of list AND not found)
    {

    if (this node is what searching for)
    found!!!...
  12. Replies
    25
    Views
    3,493

    why would you ever go past gcc?

    hey all,
    i dont understand why you would even consider buying a compiler unless you were going to sell your programs...

    its sorta self supporting.. more money you make.. better you'll be at...
  13. Replies
    2
    Views
    1,533

    thanks

    hey,
    thanks for your advice/help..
    I worked out that I hadn't initialised the childOne and childTwo
    pointers to NULL.. when I did that everything came together.

    thanks again,
  14. Replies
    2
    Views
    1,533

    Seg fault error.. no idea why???

    hey all,
    having trouble with a part of my program that puts a node into a binary tree. i havent put the whole code here b/c that would be to big.

    im using gcc on unix.. After using gdb it tells...
  15. Replies
    3
    Views
    1,454

    Thanks

    hey,
    I figured it'd be something like that..
    you wouldnt be able to tell me more about compiling to assembly would ya.. it looks interesing.

    thanks again,
  16. Thread: coding style

    by ActionMan
    Replies
    1
    Views
    2,359

    coding style

    Hey all

    been thinking about this a bit reciently.
    which of the following would run faster??
    ------------------------------------------------
    printf("Hello World");...
  17. Replies
    3
    Views
    1,454

    Efficient Coding Styles

    Hey all

    been thinking about this a bit reciently.
    which of the following would run faster??
    ------------------------------------------------
    printf("Hello World");...
  18. Thread: Starting

    by ActionMan
    Replies
    5
    Views
    1,590

    thanks

    thanks..

    after a quick glimpse that OpenAL looks good!
    I'll give it a bit more of a read later.

    I've made that mistake of planning a large game 2 times b4.. both attempts failed.

    this time...
  19. Thread: Starting

    by ActionMan
    Replies
    5
    Views
    1,590

    Starting

    hey all,
    Ive been thinking about game programming for a year now.. and ive finally decided to get off my butt and do something.

    I know c and opengl.

    I was thinking about creating a model of a...
  20. Replies
    11
    Views
    2,965

    This is my guess

    Hey,
    Just thinking about it.. dumb creatures.. they would move to a randomly generated position.

    as the creatures get smarter.. they would move to a randomly generated position within a certain...
  21. Thread: malloc

    by ActionMan
    Replies
    4
    Views
    1,570

    Hey, I don't know if its actually possible to...

    Hey,
    I don't know if its actually possible to take in an array of any size.
    (unless you take it in as a command line argument).

    There needs to be a maximun value for the size of the input...
  22. Replies
    4
    Views
    3,178

    eeewwww, global variables... firstly, it...

    eeewwww,
    global variables...

    firstly, it doesnt look like you open the file. You need to use something like:

    ------------------------------------------
    reportPtr = fopen("filename", "w");...
  23. Thread: Help I'm new

    by ActionMan
    Replies
    3
    Views
    1,508

    Hey, different compilers can have different...

    Hey,
    different compilers can have different sizes for ints types.. well actually.. ints are eaither the same size as a short (16-bits) or a long (32-bits),
    anyway thats not the point. if you have...
Results 1 to 23 of 23