Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dakuneko

    constructors and singletons

    varocho: Why would you want to make (all) the constructor(s) private? What's the logic behind this? Could you tell me? I am confused by your question. ~~~ "In C++, only friends can touch your private parts." - Emmanuel Ackouoy
  2. dakuneko

    Quick explanation of SNMP

    Could anyone give me an actual sample of an SNMP communication? How does MIB-2 come into play in SNMP? ~~~ "In C++, only friends can touch your private parts." - Emmanuel Ackouoy
  3. dakuneko

    Use of COPY CONSTRUCTORS

    Can anyone tell me where I can use the copy constructor? ~~~ "In C++, only friends can touch your private parts." - Emmanuel Ackouoy
  4. dakuneko

    Practical use of pointers to functions!!!!!!

    That's great Lim! Could send me a sample code of this? I would really appreciate it! I guess MayankMangla would appreciate it too! You could post it here or you could e-mail me. My address is jayit@yahoo.com. Thanks! ~~~ "In C++, only friends can touch your private parts." -...
  5. dakuneko

    CONFUSED over OPERATOR PRECEDENCE

    I've got another one. Consider the code below /* function foo */ int foo(int *ey) { *ey = 1; return 1; } /* main */ int main(void) { int a = 0; /* 1 */ printf("Return value of ptrf is %d. The value of a \ in this statement is %d\n&quot...
  6. dakuneko

    CONFUSED over OPERATOR PRECEDENCE

    Yeah, it is C++. Your post helped me understand better. Thank you! I understand what you mean about the postfix and prefix operators. But I partly, I am still confused. In the statement a = b++ + 4; if I follow the rule of precedence below HIGH PRECEDENCE Symbol...
  7. dakuneko

    CONFUSED over OPERATOR PRECEDENCE

    Assuming that a, b and c are of integer type whose initial value is 0: (1) a = ++b + ++c; (2) a = b++ + c++; (3) a = ++b + c++; (4) a = b-- + --c; The result are as follows: (1) 2 (2) 2 (3) 5 (4) 5 Now I am confused. It seems that in (2) a = b++ + c++;, the +...
  8. dakuneko

    Practical use of pointers to functions!!!!!!

    I have been studying C for quite a while now. I have reached the point where I do not know when will I use pointers to functions. What is pointers to functions practical use? Can someone give me a practical example? Or maybe point me to a site where there are detailed discussion of the...
  9. dakuneko

    MUD programming in C

    Yes please, kindly explain it further and I would really appreciate an example. Thanks!
  10. dakuneko

    MUD programming in C

    Yes you are correct. It was my mistake back there but just the same an overflow would occur. I am using VC++. I don't think it has long long. Does gcc or cc of Unix have long long type?
  11. dakuneko

    MUD programming in C

    An addition to what was posted above. If I am to change the data type, what will be it?
  12. dakuneko

    MUD programming in C

    I used the time function and i have the code below (I got it from CircleMUD but i revised a little): #define SEC_PER_MUD_MIN 3 #define SEC_PER_MUD_HOUR (60*SEC_PER_MUD_MIN) /* 180 */ #define SEC_PER_MUD_DAY (24*SEC_PER_MUD_HOUR) /* 4320 */ #define SEC_PER_MUD_MONTH (32*SEC_PER_MUD_DAY)...
  13. dakuneko

    MUD programming in C

    I used the time function and i have the code below (I got it from CircleMUD but i revised a little): #define SEC_PER_MUD_MIN 3 #define SEC_PER_MUD_HOUR (60*SEC_PER_MUD_MIN) /* 180 */ #define SEC_PER_MUD_DAY (24*SEC_PER_MUD_HOUR) /* 4320 */ #define SEC_PER_MUD_MONTH (32*SEC_PER_MUD_DAY)...
  14. dakuneko

    How do I clear the screen?

    Is there no other way to clear the screen other then the system() call?
  15. dakuneko

    MUD programming in C

    Somebody told me to start with a single player first. So now, that's what I am doing. I encountered a problem. The problem is the time information. You see, I plan to have my own time frame. Can anybody help me on how to set up the time. Should it be in a different thread then let another thread...
  16. dakuneko

    MUD programming in C

    Thanks Mike! I think your suggestion is a better approach. I must start out by creating a single-user game then add the multi-player stuff later. But would it slow down the server if I rely more on the game data files? What I am thinking is to load the game data (the database) into the memory...
  17. dakuneko

    MUD programming in C

    Thanks for the info mbaranski. Is this similar to Ultima Online and EverQuest? I am also interested in those but programming those kind of games are too advanced which is why I chose to start from MUD programming and maybe go into graphical later.
  18. dakuneko

    MUD programming in C

    I am interested in creating MUD but I do not know where to start. My problems include: (I would use Unix C++) 1. How does the communication between the MUD server and the TELNET client work? 2. What C/C++ functions should I use to be able to establish client-server communications in MUD...
  19. dakuneko

    MUD programming in C

    I am interested in creating MUD but I do not know where to start. My problems include: (I would use Unix C) 1. How does the communication between the MUD server and the TELNET client work? 2. What C functions should I use to be able to establish client-server communications in MUD? I...

Part and Inventory Search

Back
Top