For a practice problem, I have to create an object called Window which have to hold the following operations:
1) Create a window
2) Bring a window to the top
3) Put a window to the bottom
4) Destroy a window
5) Output what percentage of a window is visible (i.e., isn’t covered by windows above it).
where the window is just a square with different x and y coordinates for its vertices. (note that this window is upright)
The problem I’m stuck with is that the ranges for the x and y coordinates are between 1 and 32767 inclusive so I can’t hold these windows in a 2-d array.
Is there any way/datatype I can use to hold these windows? Any help will be greatly appreciated. Thanks in advance!
NOTE: This is my first time being on this site, and I’m not sure what an appropriate question is, so could you guys tell me what this site is for, and if my question is not appropriate, which site I should migrate this to? Thanks.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!