Search:

Type: Posts; User: CodeGeek20

Search: Search took 0.01 seconds.

  1. I am using C::B. But that's not really...

    I am using C::B. But that's not really important. I may not have all the stuff I need or something.

    mike_g, I don't understand that code. What is that % operator doing? I need to divide a...
  2. Compiler translation and division remainders

    I have two questions. One, the odds of me getting my hands on source code that I actually care about that was written in Code::Blocks are two small to calculate. Such the case, I cannot open a...
  3. Replies
    16
    Views
    2,856

    What's if(found) for? There's no conditional...

    What's if(found) for? There's no conditional check.

    -CG20
  4. Replies
    16
    Views
    2,856

    I guess this stuff is preprogammed then, forgive...

    I guess this stuff is preprogammed then, forgive me, I haven't worked with calendar programs.

    I would, however, write a function to go to the 0 element of tmp_mon, and set it to upper case. You...
  5. Replies
    16
    Views
    2,856

    This looks to me like it's just checking to make...

    This looks to me like it's just checking to make sure the month designations are right and then assigning some value to them. I haven't been programming for long, so please tell me, are those...
  6. Thread: pointers

    by CodeGeek20
    Replies
    10
    Views
    1,533

    Um, what's this doing? What is result, there's...

    Um, what's this doing? What is result, there's no type with it? How do you assign an int, 2, to a chartype var, name? Result looks like it need to be declared with type int. What are you trying...
  7. Thread: C tutorials

    by CodeGeek20
    Replies
    1
    Views
    1,306

    C tutorials

    I'm wanting to learn C here, but the tutorials are not all ported, though it says they will be soon. Is that true, or is the website really dead and this is how it always will be? And if they are...
  8. Replies
    2
    Views
    1,470

    Recursive example

    This was given as an example of recursivity. It prints 123456789987654321.



    #include <stdio.h>

    void printnum ( int begin )
    {
    printf( "%d", begin );
    if ( begin < 9 ) /*...
  9. Replies
    1
    Views
    1,721

    Char/Const char

    What's the difference, in functions like fopen()



    fopen(const char *filename, const char *mode)


    and functions without const, between a char and a const char or const int and the like? ...
  10. Replies
    5
    Views
    1,869

    Prototypes & Structures

    I have three questions here. First, function prototypes such as
    void strip_newline(char *str, int size) {} appeared out of nowhere, so this is my question about that: What does the * mean, and...
  11. Replies
    4
    Views
    1,770

    What I meant to do

    Oh, and yeah, what I meant to do.

    I wanted to have it return the appropriate word when the word type (verb, noun1) was entered.

    I had some homework, and I thought I'd write a quick program to...
  12. Replies
    4
    Views
    1,770

    Matsp's code

    I don't understand that code, I haven't finished the C tutorials yet. :D
    I tried to use a bunch of if()'s at one time, however it only printf()'d my prompt, and when I entered anything, rather than...
  13. Replies
    4
    Views
    1,770

    Arrays and Switches

    I don't need this program anymore, but it still makes me mad. I tried it with a low of if and else if statements, and now I've tried this switch case, and neither worked. Any help?



    #include...
Results 1 to 13 of 13