Search:

Type: Posts; User: Davey_R

Search: Search took 0.00 seconds.

  1. Thread: Hi!

    by Davey_R
    Replies
    12
    Views
    1,743

    I found his Borland C++ complete reference for 3...

    I found his Borland C++ complete reference for 3 quid. Thought it was very cheap for a programming book, now I know why. Haha
  2. Replies
    5
    Views
    1,120

    I suppose you could neaten up the calling of the...

    I suppose you could neaten up the calling of the function slioghtly by using a variable argument list.

    This uses <stdarg.h>, is that what you meant by external header file??

    The down side is...
  3. Replies
    9
    Views
    2,174

    I don't think that this is suitable for what you...

    I don't think that this is suitable for what you want to do. The reason being, that this gives you permutations. For example, putting in abc, you would get (in some order):
    abc
    acb
    bac
    bca
    cab...
  4. Replies
    4
    Views
    1,445

    Not sure if this is the only error because I...

    Not sure if this is the only error because I don't use scanf() and printf() much because I mainly do embedded stuff, but the line before the while should be

    &source[i-1].

    str is a pointer so...
  5. Replies
    27
    Views
    11,559

    Thanx for your thoughts Emmanuel! That was...

    Thanx for your thoughts Emmanuel!
    That was pretty messy code I agree. I started thinking about the second bit of my answer before finishing the first, and didn't pay much attention to its...
  6. Replies
    27
    Views
    11,559

    Off the top of my head, have an integer for each...

    Off the top of my head, have an integer for each type of bracket, ({[, and increment it when you find an open one, or decrement it if you find a closed one.


    #include string.h

    int square=0,...
Results 1 to 6 of 6