KG3UNFORGN's Profile
Reputation: 2
Apprentice
- Group:
- Members
- Active Posts:
- 48 (0.05 per day)
- Joined:
- 19-October 10
- Profile Views:
- 525
- Last Active:
May 09 2013 12:25 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- Playstation
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Comparing Classes or structures
Posted 8 May 2013
jimblumberg, on 08 May 2013 - 05:43 PM, said:You need to show how data and ip are defined. You'll probably either need to overload the comparison operator== or compare the individual elements.
Jim
After Researching and reading and Adjusting Code I figured out how to do the overloading with Structs and classes effectly I did something like this and it seems to be working no errors, just hope it runs.
struct Triple { int address; int subnet; int port; operator int() const // Magic Happens { return address; } }; -
In Topic: Operand Diffculties
Posted 8 May 2013
huh....I never knew you can do that. without the "=" Thanks...
I have to research and practice more than withthe Negation Operator. -
In Topic: What is an Array of Triples
Posted 4 May 2013
Skydiver, on 03 May 2013 - 09:53 PM, said:I think that jimblumberg is on the right track about it being the address, subnet, and port. For IPv4, you could have:
struct triple { unsigned long address; unsigned long subnet; unsigned short port; }; assert(sizeof(unsigned long) == 4); assert(sizeof(unsigned short) == 2); struct triple arrayOfTriple[200];
I was coding yesterday and I was thinking about doing it with structs too, I know Triples means something with Three parts, so I knew it was a array with Three Parts. lol, But I'll go ahead and see what I can do with structs. Rather than a 3 deminsional Array. -
In Topic: What is an Array of Triples
Posted 3 May 2013
-
In Topic: What is an Array of Triples
Posted 3 May 2013
Zereo, on 03 May 2013 - 08:38 PM, said:I would assume they mean a three dimensional array though that is just a guess and I can't be sure without knowing the context it was used in.
Are you sure they aren't saying tuple? as in std::tuple?
If you could provide a snippet of the text it was used in we could let you know most likely. Also what book it is in.
Well it says this "Procedure has one parameter, an IP address. It also has access to a global table consisting of an array of triples. Each triple contains three integers: an IP address, a subnet mask, and outline line to use.
But I hope they mean Tuple
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- Kansas City
- Interests:
-
Programming
making imagination my life - Full Name:
- Kaleb G.Berry
- Years Programming:
- 3
- Programming Languages:
- C++, C#, Java,HTML
Contact Information
- E-mail:
- Click here to e-mail me
- MSN:
-
kg3unforgn@live.com
- Facebook:
- http://www.facebook.com/KG3UNFORGIVEN
Friends
KG3UNFORGN hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
KG3UNFORGN has no profile comments yet. Why not say hello?