August 27th, 2003, 09:25 PM
i have a problem in c++ programming,help!!!!!
please help me to solve this problem!!
please reply before 31.08.2003!!
Numeric address for computers on the Internet consists of four parts separated by periods (IPv4) in the form of zzz.yyy.xxx.www, where zzz, yyy, xxx and www are positive integers ranging from 0 to 255. Alternatively, computers are locally identified by a string of characters (host-name). Lets assume we will be dealing with only a Class C* network. Create a program to process a list of internet addresses with their respective host-names it must be able to search for a given host-name or an internet address. The program must also be able to identify the network class and list all computers residing in a given network.
Create a data structure for a single computer (pair of internet address and hostname).
Ability to detect the network address from an IP address, thus enabling it to list computers residing on that network.
Consider all IP not within the class C network as invalid.
*Note: There are 5 network classes (A to E), categorized by the number of bits allocated for network address and host address. Obviously, you have a total of 32 bits to represent the IP address in IPv4. For a class C network, the first 3 bits are reserved for network class identifier. The next 21 bits are used for network address and the final byte is for the host address. Therefore, the range of IP address for a class C network is 192.x.x.x to 223.x.x.x (x means it can be any integer from 0 to 255). You also need to know that a network mask to filter out the host address for this network class is 255.255.255.0 (using a logical-AND operation).
Network addess = 0 Local network
Host address = 0 Broadcast
Host address = 1 Usually for routers (interface address)
August 27th, 2003, 11:12 PM
Ok, first off this smells like homework. If it is, then you just might be barking up the wrong forum. If not, then don't worry about it.
Second, I would recommend that you read the "How to Post a Question" sticky thread at the top of this forum for more info on subject titles. Yours is lacking.
Third, you have described a requirement but not the problem you are having, errors, code, etc...
Last, but not least, welcome to the Dev Shed community.
August 28th, 2003, 01:44 AM
August 28th, 2003, 02:22 PM
Gotta love it when we get near the end of the semester. Lots of people panicing to get their final projects done.
Articles and commentary on web development
August 28th, 2003, 02:34 PM
Yeah, the limbic system kicks into high gear and the neocortex shuts down just when you need it the most.