so have part of code here this loop 5 times (max = 5) insert word link list. for ( int = 0 ; < max ; i++ ) { string alphabet = g->returnalphabets(); l[i]->addwords(alphabet[i]); } and have insert word part here string line; fstream myfile ("words.txt"); while (!myfile.eof()) { getline(myfile,line); if ( alphabet == line[0] ) { listnode *newnode = new listnode; if ( head == null ) { newnode->item = alphabet; newnode->next = null; head = newnode; } else { newnode->item = line; prev = cur; prev->next = newnode; } cur = newnode; } } myfile.close(); my problem gives me error on last loop. meaning on max = 4, insert node. rest of loop fine. when decrease max 4 meaning loop 4 times, program error-free when program loops 5 times gives error. anyone can poin...
i use sonar plugin executes if activated in maven profile. sonar runs on every compile. the problem build fail other team members not have sonar application installed locally. pom.xml checked in team members same copy including sonar configuration, don't want them modify purpose of disabling sonar (they might inadvertently check modified copy in). please advise how configure maven (.m2/settings.xml) and/or pom.xml sonar feature can enabled/disabled local profile. here sonar configuration in each project's pom.xml: <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>sonar-maven-plugin</artifactid> <version>1.0</version> <executions> <execution> <id>make-sonar</id> <phase>compile</phase> <goals> <goal>sonar</goal> </goals> </execution> </executions> ...
i trying create loop increments variable, use variable inside of xsl code. here code using increment counter: <?xdoxslt:set_variable($_xdoctx, ‘counter’, 0)?> <?for-each-group:$g2;./status?> <?sort:current-group()/status;'ascending';data-type='text'?> <?xdoxslt:set_variable($_xdoctx, ‘counter’, xdoxslt:get_variable($_xdoctx, ‘counter’) + count(xdoxslt:distinct_values(current-group()/action)))?> <?end for-each-group?> the following code output number need: <xsl:value-of select="xdoxslt:get_variable($_xdoctx, ‘counter’)"/> so know loop working , variable has correct number. however, need use variable in following code: <xsl:attribute name="number-rows-spanned" xdofo:ctx="block"> <xsl:value-of select="xdoxslt:get_variable($_xdoctx, ‘counter’)"/> </xsl:attribute> when use code following error: java.lang.numberformatexception: input string: "" i...
Comments
Post a Comment