Questions tagged [construction]

Use for questions related to building a data structure, such as a heap.

Construction is a concept of Object-Oriented languages.

Objects need to be setup for use:

  • Their member variables need to be allocated
  • Any Object member variables also need to be constructed
  • The Object methods need to be setup for calling

This process is accomplished by construction.

112 questions
1
vote
3 answers

Best way to represent Bit Arrays in C#?

I am currently building a DHCPMessage class in c#. RFC is available here : http://www.faqs.org/rfcs/rfc2131.html Pseudo public object DHCPMessage { bool[8] op; bool[8] htype; bool[8] hlen; bool[8] hops; bool[32] xid; bool[16]…
divinci
  • 22,329
  • 11
  • 45
  • 56
1
vote
2 answers

Recursive function building a vector, what will be returned?

so I'm trying to build a vector recursively, as I look at this I begin to think I'm doing it quite wrong. Will the following code return a vector with each iterations results, or am I just creating new vectors on each iteration that actually wont…
M_J
  • 316
  • 5
  • 20
1
vote
2 answers

How does a view work (MVC)?

I'm working on a web-app without a framework right now, and I'm trying to structure it as a MVC app. The problem is, there are some technical aspects of MVC apps that escape me. Primarily, how should a view be build? I'd like to use a markup…
Isaac
  • 15,783
  • 9
  • 53
  • 76
1
vote
2 answers

Under Construction page For Website Without Redirect

I wanted to know if there is some way to change something simple, such as a htaccess file, a js file, or a php file, and then all of the webpages on my site will show an under construction page. I do not really care all that much if the user has to…
Sean
  • 81
  • 1
  • 2
  • 7
1
vote
1 answer

accessing third-party ruby library module in code? is this the right way on windows?

I needed a little script to read data out of windows-style .ini files. Searching my windows machine I found inifile.rb in this path: C:\ruby\lib\ruby\site_ruby\1.8\vr\contrib\ it seems unnatural to add this path directly to my rubylib path as this…
MikeJ
  • 14,430
  • 21
  • 71
  • 87
1
vote
2 answers

C++ referring to an object being constructed

In C++ I have a reference to an object that wants to point back to its owner, but I can't set the pointer during the containing class' construction because its not done constructing. So I'm trying to do something like this: class A { public: …
1
vote
2 answers

WindsorContainer Construction Error and Logging Issue

I'm using Castle windsor, and initiating it using a configuration file (and really want to keep everything there), which also holds a logging facility. When I get an error from the windsor on initialization (due to wrong configuration, missing…
nirpi
  • 715
  • 1
  • 9
  • 24
0
votes
1 answer

url construction htaccess

Lets say I have a link to one of my page that looks like: mysite.com/48YSWD96, I need it to look like: mysite.com/?d=48YSWD96. How do I achieve this? Can I achieve this by modifying my htaccess file? which currently looks like this... RewriteEngine…
0
votes
3 answers

Mark constructor as __explicitly__ requiring an object type

I have a constructor that accepts an object of type Material: SomeClass::SomeClass( const Material& mat ) ; However, Material allows construction by a Vector: Material::Material( const Vector& v ) ; Therefore, SomeClass can allow construction by a…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
0
votes
2 answers

Javascript string construction by concatenation?

Exploring Javascript (and coming from the Java world). I have the following line of code in a script: if (jQuery) { document.getElementById("BOTTOM_MID").innerHTML = "JQuery Loaded - " + getTime(); } but it does not work. BOTTOM_MID…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
0
votes
0 answers

Efficient gabriel graph generation wthout DT

I need to construct Gabriel Graph. I know an algoritm that uses Delaunay Trinagulation but it's problematic to use because i work with high dimensions. Is there another rather efficient algorithm? It's also acceptable for me to construct an…
0
votes
0 answers

Woocommerce plugin causing redirect

i'm using woocommerce to create a store for my shop in WordPress but whenever I activate the woocommerce plugin the page redirect with this message "ERR_TOO_MANY_REDIRECTS", then when I deactivate the page works. please help me understand what I'm…
0
votes
0 answers

How to make a rigid alternative constraint based on earn value

i want to make a rescheduling model. I have 2 modes in tuple, I declare it using ID, I want to make a constraint if the costprod * duration in present's mode in day 1-7 <= earn value than choose mode 2. But I think something missing in model. but I…
0
votes
1 answer

How to define cost objective function

I want to make objective function to minimize impact due to the difference progress with schedule plan because the real progress was late. and I want make it some with the plan minimize the external resources external resourcesdurationcost tuple…
0
votes
2 answers

If else on the date in CPLEX OPL

I want to make, if total production task "i" * duration at day 15 <= not equal to our target then choose alternative 2,else choose alternative 1. I made the data on tuple. but I still confuse to determine for at day x the calculation must be more or…
Beta
  • 1
  • 1