Posts

inheritance - Java compiler error: "cannot find symbol constructor .."? -

i'm writing code employee, manager, hourly worker class assignment i've hit problem can't figure out, following code employee followed hourly worker. problem hourly worker won't compile, it's giving "cannot find symbol constructor employee" error when try compile (employee class compiiles without issue. suggestions please? think i've been staring @ long can no longer see problem! thanks. pieter. employee class - public class employee { public string firstname; public string lastname; public double hourlyrate; final static double normal_workweek = 37.5; public employee(string firstname, string lastname, double hourlyrate) { setfirstname(firstname); setlastname(lastname); sethourlyrate(hourlyrate); } //accessor , mutator methods employee's first name. public string getfirstname() { return firstname; } public void setfirstname(string firstname) { firstna...

database - access: how to add a workorder to a customer -

i have noob question he, i'm learning :-) i'm making form following tables 1 tblcustomers , 1 tblworkorders . my question is: when add customer new record, person stored in table: tblcustomers going fine. the problem have table: tblworkorders , in table store technical information, sollutions , customers belongings. (adapter, notebook bag etc etc) my problem excists when example customer named john doe comes problem 2 weeks later. in table tblworkorders should 2 records problems of john doe think has relationships between tables, can tell me find example or when it's short story, how this? very difficult explain concept , start off scratch. prepared further research on different item. here place start: http://office.microsoft.com/en-us/access-help/guide-to-table-relationships-ha010120534.aspx the following how use tables: you need have common field in both tables (it can more 1 field, let's keep simple). easy way have customerid field dat...

git - merge conflict when local is deleted but file exists in remote -

i new git , wondered how should go merge in local repo have deleted several files on master branch these files exist within remote master branch. after doing git-merge shows conflicts have occured. using git gui shows local file deleted, while remote branch file has contents. how stop these files being conflicted? there simple way using git gui? many thanks you should resolve conflicts see fit. if file supposed removed, , publishing change origin, remove again: git rm path/to/file if file should in fact tracked still, add (the version in work tree version origin): git add path/to/file after doing either of resolve conflict, commit merge.

c - How do I remove the first number from an integer? -

i need intake number like: 200939915 after doing this, know how, need remove first number becomes: 00939915 what best way this? char *c = "200939915"; char *d = c + 1;

Allocation and release of object within a method in Objective-C? -

i made move objective-c. doing exercises kochan's programming in objective-c 2.0 . on particular exercise, asked modify print method , optional argument: -(void)print{ nslog(@" %i/%i ", numerator, denominator); } for created print method take bool argument , modified existing print method follows: -(void)print{ [self printreduced:false]; } -(void)printreduced:(bool)r{ if(r){ [self reduce]; } nslog(@" %i/%i ", numerator, denominator); } but last part of exercise, supposed use bool determine if fraction should reduced or not (no problem testing flag), when reduced not supposed modify original object. allocated new fraction object inside printreduced method , released before end of method too: -(void)printreduced:(bool)r{ fraction *printingfraction = [[fraction alloc] init]; [printingfraction setto:numerator over:denominator]; if(r){ [printingfraction reduce]; } nslog(@" %i/%i ",[printingfraction numerator], [...

What is latest version of itext that is not AGPL? -

what latest version of itext not agpl? can download it? maintaining it? this important programmers can pick correct version of itext project. [edit] question has been 6 years without being marked off topic. not single 1 of questions asked matter of opinion. not asking recommendation. question important developers evidenced number of people voting , helps them choose version of itext library want use. please reopen it. what's latest version: 2.1.7 last itext release under mpl & gpl. itext_4_2_0 wasn't released wild. 4.1.6 last itextsharp release under mpl & gpl. itext's version incremented match itextsharp, @ 5.0... along package name change , license change. those 2 put in same release deliberately, folks have consciously change software work new version... causing them notice new license. where can it? https://github.com/itext/itextpdf/tags and https://github.com/itext/itextsharp/tags who maintaining it? no one. we're...

Unable to retrieve Sharepoint List Item With Workflow attached (In Progress, completed etc.) on it -

i using share point 2010, , using linq generated spmetal.exe. facing weird issue mentioned below sequence: 1: inserted new item (xx) in list (listname) 2: on insertion workflow starts , item (xx) status becomes "in progress" in items window. 3: if access row linq, threw exception "specified cast not valid" [nullreferenceexception: object reference not set instance of object.] microsoft.office.server.webcontrols.metadatanavtree.onunload(eventargs e) +40 system.web.ui.control.unloadrecursive(boolean dispose) +153 system.web.ui.control.unloadrecursive(boolean dispose) +306 system.web.ui.control.unloadrecursive(boolean dispose) +306 system.web.ui.control.unloadrecursive(boolean dispose) +306 system.web.ui.control.unloadrecursive(boolean dispose) +306 system.web.ui.control.unloadrecursive(boolean dispose) +306 system.web.ui.control.unloadrecursive(boolean dispose) +306 system.web.ui.control.unloadrecursive(boolean dispose) +306 system....