Search:

Type: Posts; User: LordPc

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    14,020

    you should check if your editor has a "highlight...

    you should check if your editor has a "highlight matching bracket" option, its useful in these types of situations. some editors will also add a matching bracket automatically for you, so if you type...
  2. Replies
    4
    Views
    1,714

    fyi, printf is available in java aswell

    fyi, printf is available in java aswell
  3. wouldnt a scripting language be better?

    wouldnt a scripting language be better?
  4. Replies
    10
    Views
    3,345

    just write the program using loops, then remove...

    just write the program using loops, then remove the loop, and copy the inside of the loop into your code over and over

    edit: if your just learning how to program, im sorry, but you have a terrible...
  5. Replies
    2
    Views
    1,879

    A / \ B C becomes B ...

    A
    / \
    B C

    becomes

    B
    \
    A
    \
  6. Replies
    24
    Views
    11,210

    oops, didnt read you want to get into game...

    oops, didnt read you want to get into game programming.

    yea, perl wont help much there. c++ is the way to go after you come to terms with C
  7. Replies
    24
    Views
    11,210

    perl would be a good utility language to pick up

    perl would be a good utility language to pick up
  8. Thread: Masking

    by LordPc
    Replies
    11
    Views
    2,110

    a general tutorial/guide on bitwise operations...

    a general tutorial/guide on bitwise operations would explain how masking works. you dont absolutely need to know binary, but i think it'd help

    The GNU C Programming Tutorial
  9. or typedef then declare typedef struct...

    or typedef then declare




    typedef struct child Child;
    // OR
    typedef struct child *Child;

    struct child {
  10. cant you just change how this code generation...

    cant you just change how this code generation tool works so to get around this problem? ie, have it look elsewhere for the 'ignore' keyword?

    id also like to know what this means



    what does...
  11. well since #include's arent really C, the...

    well since #include's arent really C, the #include line may be terminated by a newline, that is, everything after the #include is considered the statement. therefore no comments

    i dont know though...
  12. Replies
    4
    Views
    1,135

    macro? memcpy? stay away just make a new array...

    macro? memcpy? stay away

    just make a new array and copy over the contents



    if (z == 18) {
    int temp[] = {-6, -3, 0, 4, 8, 6, 2, -4 };
    for(...) {
    ...
  13. Replies
    10
    Views
    9,591

    if you just give him the code to read in the...

    if you just give him the code to read in the number from the user, you will have given him the entire answer
  14. Replies
    6
    Views
    5,477

    your call tree is confusing? your sorted it by...

    your call tree is confusing? your sorted it by depth level for some reason...? are the trailing zeroes required?

    this is clearer in my mind, shows the recursion



    print_combinations(3, 0);
    ...
  15. the first thing you need to do is work out some...

    the first thing you need to do is work out some sort of precedence

    when you sort numbers, lower numbers come before bigger numbers
    when you sort words, we use the alphabet, ie, 'a' comes before...
  16. Replies
    9
    Views
    16,531

    you can use getchar to get all of your input, you...

    you can use getchar to get all of your input, you will just get the input one character at a time.

    your question about scanf should be covered in any basic scanf tutorial
  17. Replies
    5
    Views
    1,084

    you cant directly compare two strings using the...

    you cant directly compare two strings using the equals sign, you need to compare each character within the string.

    if it makes it easier, it would be the same as comparing these two arrays


    ...
  18. Replies
    21
    Views
    3,372

    put this line at the top of your code #define...

    put this line at the top of your code

    #define flush_stdin while( getchar() != '\n' );

    and whenever you need to use fflush(stdin), just replace it with flush_stdin. it will do the exact same...
  19. Replies
    4
    Views
    16,276

    how about using the absolute value of...

    how about using the absolute value of (ge_event_id[0]-ge_event_id[1]) != 2
  20. Replies
    3
    Views
    13,967

    my gut feeling is that you need 3 pieces of...

    my gut feeling is that you need 3 pieces of information. the number you want to square root, a lower bound and an upper bound. so for example

    1^2 < 8 < 8^2

    so you could pass these into a...
  21. Replies
    6
    Views
    1,546

    i understand the problem, but your code is not...

    i understand the problem, but your code is not solving it. its just printing out letters

    you need to incorporate the letter the user gives you into the for loop so that you only print out part of...
  22. Replies
    3
    Views
    4,833

    id have a closer look at that harmonic num...

    id have a closer look at that harmonic num function

    it doesnt do much
  23. Thread: -> Operator

    by LordPc
    Replies
    13
    Views
    1,274

    im talking about oo programming. im not sure you...

    im talking about oo programming. im not sure you are...
  24. Thread: -> Operator

    by LordPc
    Replies
    13
    Views
    1,274

    well ofcourse you do, in the getter and setter....

    well ofcourse you do, in the getter and setter. nowhere else though, thats what the getter/setter is for
  25. Replies
    4
    Views
    985

    im beginning to wonder if this is a joke. you've...

    im beginning to wonder if this is a joke. you've made 2 topics about this already and imo people have been quite generous with the help.

    just go here Cprogramming.com - Tutorials - C File I/O
    ...
Results 1 to 25 of 45
Page 1 of 2 1 2