I want to create a "Config" class that acts somewhere between a hash and a tree. It's just for storing global values, which can have a context.
Here's how I use it:
Config.get("root.parent.child_b") #=> "value"
Here's what the class might look like:
class Construct
def get(path)
# split path by "."
# search tree for node...
/*-> struct sam set_of_data[4] -<*/
int main (void)
{
int k = 0;
for(i = 0; i < 4; ++i)
{
char nm;
double thelow, theupp; double numbers[200];
scanf("%c %lf %lf", &nm, &thelow, &theupp);
for (k = 0;
scanf("%lf", &numbers[k]) != 0;
++k) ;
set_of_data[i] = co...
Hi,
I have recently created a breadcrumbs class that fits in with our in-house CMS and it works as I intend but I have a nagging feeling it could have been done better. I was thinking of doing an array_pop close to the end of the construct but I decided to go with an IF statement instead, what do you guys think?
(Oh also $_REQUEST['sec...
I do all my programming assignments in eclipse first before putting them in putty and submitting them to our teacher. In eclipse, I have this strange error in one of my methods.
it says "Syntax error on token(s), misplaced construct(s)."
public static int factorial(int iVal, boolean DEBUG)
{
int result;
// Defensive programming
i...