User Profile

Collapse

Profile Sidebar

Collapse
przemek
przemek
Last Activity: Apr 1 '08, 04:57 PM
Joined: Oct 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Active/passive roles of a board and pawns in checkers implementation

    Writing a simple checkers game I can't decide:

    - to implement a pawn as a windows control communicating with the future game engine and paint a passive "wallpaper" board,
    - to make a board of 64 intelligent squares talking to the engine and then just for viewer's pleasure paint nice movable pawns.

    Which way is beter and what are the consequences?
    Could you please recomnend a book or tutorial...
    See more | Go to post

  • przemek
    replied to headers and linking confusion
    in C
    It's all clear now, thank you!
    Przemek
    See more | Go to post

    Leave a comment:


  • przemek
    replied to headers and linking confusion
    in C
    If you mean -- using gcc source.c means compiling and linking so you need to add the other .c file which has the definitions (of everything declared in .h)
    -- then I'm ok.

    Yes, and HOW is this header file used during compilation if it goes the same with it or witout it?
    Please go a little deeper this path as I need undestanding more than confirmation of what I see....
    See more | Go to post

    Leave a comment:


  • przemek
    replied to headers and linking confusion
    in C
    Thank You,
    to be more specific:

    Using gcc -c source.c :
    I can compile any code with undeclared functions and no header leading to declaration at all. I can link that output later to binaries with all needed definitions but again without any headers. So what is the point of writing header files (besides kind of documentation) ?

    Using just gcc source.c :
    I cannot compile code even with...
    See more | Go to post

    Leave a comment:


  • przemek
    started a topic headers and linking confusion
    in C

    headers and linking confusion

    I used to think that including header files gives me some extra function to use.
    Like putting <stdlib.h> allows use of system("PAUSE") without doing anything special.

    I disovered lately that it doesn't work that way with my own header files.
    With main function in file A, extra functions in file B (both including header file C with declarations of functions in B) to use these functions in A I still need...
    See more | Go to post

  • (how to) replace old content by dropping new into text input

    In HTML forms, how to make standard drag and drop from input A to B replace content of B completely (not just insert selection from A into old string of B) ?
    Thanx
    See more | Go to post
No activity results to display
Show More
Working...