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
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
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." -...
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"...
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...
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 +...
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...
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?
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)...
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)...
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...
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...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.