199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dan.gerald

I am having problem on removing root, moving the lastnode to the new root and applying the downheap. Here is my code snippet #include <iostream> #include "heap.h" heap::heap() { data=new myvector<heapData> (10); size=0; heapData item; item.key=0; item.data=0; insertItem(item); } heap::~heap() { delete data; }; void heap::insertItem(heapData item) { data->insertAtRank(size,item); size++; …

Member Avatar for buterous
0
498
Member Avatar for Violet_82

Hi all, I was reading a few things on the net about how to calculate a leap year in java (and not only for that matter). So something like `...if( year % 400 == 0 || ( year % 4 == 0 && year % 100 != 0 ) )...` …

Member Avatar for Violet_82
0
284
Member Avatar for Violet_82

Hi I wonder if somebody can help me to understand a few things in the following example: // Fig. 8.17: PackageDataTest.java // Package-access members of a class are accessible by other classes // in the same package. public class PackageDataTest { public static void main( String[] args ) { PackageData …

Member Avatar for Violet_82
0
159
Member Avatar for EkoX

Hello friends, I'm tring to make excel file using vb but i don't know how to do it. There anyone know how to do this. Thank you. Eko

Member Avatar for EkoX
0
457
Member Avatar for poopoowei

TASK 1 Your first task is to create a Makefile for a project. A project has been provided to you in the compressed file CSCI124-Lab3.zip. In this file you will find numerous headers and source files. You can ignore the fact the program is implemented using classes. The program once …

Member Avatar for NathanOliver
0
227
Member Avatar for johngorman

I have deployed my apk file to the Android emulator but it is displaying the apk file from 3 weeks ago where as I want the current version to display with the updated features as it is showing in Eclipse.Any ideas?

Member Avatar for peter_budo
0
264
Member Avatar for mrexp21

` <script type="text/javascript"> function category(cid) { if(cid !="") { $('#process').show('slow'); $.post('<?php echo BASEDIR ?>/ajax.php',{action:'search_subcategory_by_category_for_advsearch','cid':cid}, function(data) { $('#process').hide('fast'); // $('#process'); $("#scid").html(data); } ); } } function subcategory(scid) { if(scid!='') { $('#process2').show('slow'); $.post('<?=BASEDIR?>/ajax.php',{action:'select_template_by_subcategory_for_refine','scid':scid},function (data) { $('#process2').hide('fast'); $("#specification").html(data); }); } } </script> <div class="lftpanel"> <div class="fl"><img src="<?=BASEDIR?>/images/browse_left.jpg" width="7" height="36" /></div> <div class="brow_bg">Refine Your …

Member Avatar for pzuurveen
0
413
Member Avatar for Arjun_Sarankulu

In our Company i have developed the application which starts the Outlook and emails to all clients. As it is manual process to send the same, sometime user might forget to run the application. To avoid the same we have planned to run the Application using Task Scheduler from Window …

Member Avatar for Ketsuekiame
0
477
Member Avatar for ROSS679

Hi, I am having a problem regarding the return statment, for some reason it is not working, can someone please tell me what i am doing wrong? The return is taking a selection of table collumns not all e.g. the simple return all "return $x" Thanks for $x in doc("Suppliers.xml")/dataroot/Suppliers[Country …

Member Avatar for FakeTales
0
355
Member Avatar for rajqpt

Let's say you've got a form with check boxes like below: <form method="post" action="path to script"> <input type="textbox" id="text[]" value="" /> *** <input type="textbox" id="text[]" value="" /> *** <input type="textbox" id="text[]" value="" /> **** <input type="textbox" id="text[]" value="" /> **** </form>

Member Avatar for diafol
0
849
Member Avatar for klemme

Hi all, I am new to C#, so please bear with me. What I need to do, is to create a method in one class, that can be used to update the scores of an object in another class. The entire thing is a small program, that creates a VERY …

Member Avatar for Ketsuekiame
0
194
Member Avatar for sbouxsein

Design a word and character counter and display a histogram of particular characters. The histogram may use any character to denote a single instance of a particular letter, such as an X, and should print the number of instances for that letter at the end of the line. Only print …

Member Avatar for sbouxsein
0
338
Member Avatar for hindu times

Hi there, I am using the code below, which is bulked in with the "Keyring Social Importer" plugin for Wordpress, to import my Tweets on a regular basis as individual blog posts in my Wordpress blog. I would like to add a line of text within each created blog post, …

Member Avatar for bradly.spicer
0
365
Member Avatar for Venter

<html> <body> <form method="post" action=""> <input type="text" name="customername" required/> <input type="text" name="productname" required/> <input type="text" name="units" required/> <input type="text" name="price" required/> <input type="submit" value="submit"/> </form> <?php if($_POST) { $_SESSION['array']=array(); array_push($_SESSION['array'],($_POST)); print_r($_SESSION['array']); } ?> </body> </html> Here My Need Was i Want To Save the all data which was submitted by …

Member Avatar for masterjiraya
0
299
Member Avatar for november_pooh

Hi all, As i mentioned in thread title, i want to create and delete folder. How i can create and delete folder/directory with vb6. Please help Regard

Member Avatar for rishif2
0
355
Member Avatar for FakeTales

i have an xml File, below is snippet from the file <?xml version="1.0" encoding="UTF-8"?> <dataroot> <Products> <ProductID>37</ProductID> <ProductName>Gravad lax</ProductName> <SupplierID>17</SupplierID> <CategoryID>8</CategoryID> <QuantityPerUnit>12 - 500 g pkgs.</QuantityPerUnit> <UnitPrice>26</UnitPrice> <UnitsInStock>11</UnitsInStock> <UnitsOnOrder>50</UnitsOnOrder> <ReorderLevel>25</ReorderLevel> <Discontinued>0</Discontinued> </Products> <Products> <ProductID>38</ProductID> <ProductName>Côte de Blaye</ProductName> <SupplierID>18</SupplierID> <CategoryID>1</CategoryID> <QuantityPerUnit>12 - 75 cl bottles</QuantityPerUnit> <UnitPrice>263.5</UnitPrice> <UnitsInStock>17</UnitsInStock> <UnitsOnOrder>0</UnitsOnOrder> <ReorderLevel>15</ReorderLevel> <Discontinued>0</Discontinued> </Products> …

0
104
Member Avatar for magicmarkuk

Hi I have a site built on Wordpress which has a over 4,000 posts all with the suffix -2 at the end of the post name (due to me forgetting to clear the trash) before running an import). I would like to remove the -2 from the post names with …

Member Avatar for magicmarkuk
0
281
Member Avatar for professor123

hie i have a php form which will require a user to enter an ID Number in this particular form e.g. 34 1297336 Z 42 how to i create an easy and neat validation for that field. thanks any help will be appreciated!

Member Avatar for professor123
0
161
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make a page look like a subdirectory. This is what it would look like now http://example.com/page.php this is what i want it to look like http://example.com/sub/page.php But i don't want to put the page.php in a subdirectory i just …

Member Avatar for joshl_1995
0
193
Member Avatar for jalpesh_007

I have created one GUI.java file inside it i have written a code of GUI,which includes filechooser and button. I also have created logic.java file, inside it i have write my logic for performing some operation. On the click event of button, i want to pass a path chosen by …

Member Avatar for stultuske
0
169
Member Avatar for SLMQC

I am new to VB and working on a homework assignment that I’ve seen posted in years past. The threads were aged a year or more so I’m starting a new discussion. I am writing a program that allows me to enter sales for 5 stores and display a bar …

Member Avatar for tinstaafl
0
339
Member Avatar for lydia21

i have a form which will display the details in a table,when edit button is clicked all the content in the table should come in a form(ie inside the textboxes)..so that the user can edit and save the content again in the database. [B][U]1st page[/U][/B] $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or …

Member Avatar for piyush16791
0
147
Member Avatar for Ole Raptor

Hello, I have a form that has hit its max for controls. I have created a UserControl to add more to the form. I can re-size the UserControl but the controls on the UserControl are not resizing. I have the Sheridan ActiveResizer tool on the form that works with all …

Member Avatar for WordTickler
0
2K
Member Avatar for toldav

Hello, I'm trying to create a driver for the money class. I need to create and array of 5 money objects. Also I need to use a loop to determine which money object has the most amount of money using "compareMoney()" class: public class Money { private int dollars; private …

Member Avatar for IIM
0
227
Member Avatar for newGains

i am trying to use recursion to find the occurence of a specific character in an array of characters public class CharacterCounter { public static void main(String [] args) { char test[] = {'a', 'b', 'a', 'c', 'd', 'a', 'e', 'a', 'f', 'g', 'h', 'a', 'i', 'a'}; char searchChar = …

Member Avatar for newGains
0
258
Member Avatar for sonicx2218

I'm currently using this code to display a video lightbox on my site. If possible, I'm looking into rendering a disqus comment system under the popup video. Is that possible? Here's the js code. var Videobox = { init: function (options) { // init default options this.options = Object.extend({ resizeDuration: …

Member Avatar for sonicx2218
0
273
Member Avatar for skkishor

We are using Joomla1.5.20 Joomla Multisite Verion 1.2.8 - Free Version Our URl Master Site URL is [url]http://usentrepreneurtoday.com/[/url] for which we have different slave sites like [url]http://newyork.usentrepreneurtoday.com/[/url] [url]http://pennsylvania.usentrepreneurtoday.com/[/url] We are facing a strange issue. The issue is that when we open our master site, the site is opening properly, but …

Member Avatar for LastMitch
0
286
Member Avatar for iqlas

hey guys.. i'm working on e learning project.. i need to integrate Voice Chat in that.. so plz if anyone knows, plz help... Thanx in Advance...

Member Avatar for masterjiraya
0
442
Member Avatar for tunavis

Public Class Carwashform Const EXTERIOR1_String As String = "Hand Wash" Const EXTERIOR2_String As String = "Hand Wax" Const EXTERIOR3_String As String = "Check Engine Fluids" Const EXTERIOR4_String As String = "Detail Engine Compartment" Const EXTERIOR5_String As String = "Detail Under Carriage" Const Interior1_String As String = "Fragrance" Const Interior2_String As …

Member Avatar for Reverend Jim
0
682
Member Avatar for Sean_d

I've got 5 images that I want to display one after the other with a time delay, e.g. image one displayed 0.5 seconds image two displayed 0.5 seconds image three displayed At the moment the HTML looks like this: [CODE]<div id="header"> <img id="headerImage0" src=""> <img id="headerImage1" src=""> <img id="headerImage2" src=""> …

Member Avatar for griff122
0
435
Member Avatar for buug

hello- total c++ n00b here and i'm having problems with an assignment where we're supposed to compare an array of exam answers to an array containg a predetermined answer key and then indicate whether the exam taker has passed or failed. my program compiles just fine, but i'm not getting …

Member Avatar for buug
0
133
Member Avatar for pbedford83

Hello everyone, I hope someone can explain something to me. Im a Junior Developer with very limited knowledge in VB.net, but I am self teaching. I will soon have projects to do whilst at work, and although my coding is pretty ok now, one thing eludes me, and I cant …

Member Avatar for TnTinMN
0
250
Member Avatar for 7429EEFC

Hi I am trying to link a selected item from one listbox to display all the results in another listbox by using a filter method (Or something similar). Both listboxes are filled with information from a text file. The first listbox has information such as the different Genres of a …

Member Avatar for tinstaafl
0
531
Member Avatar for somjit{}

hi everyone :) im hoping to learn a healthy amount of vb10/12 by the end of the month. mainly to improve my cv and get a better shot at jobs. originally wanted to learn vb6 for a college project , but after a post in daniweb , my ideas are …

Member Avatar for somjit{}
0
333
Member Avatar for ChaseRLewis

So I'm writing a memory pool allocator template where it assumes all the objects are of constant size. I need it for a couple objects in a game i'm writing because the dynamic allocation of a large number of small objects is more slow than i'd like. My issue is …

Member Avatar for tinstaafl
0
240
Member Avatar for ALJ

Hi, I'm having trouble trying to figure out a code that converts negative decimal numbers to binary, as well as specifying the number of bits. For example. convert -18 using 8 bits. This should come out as 10010010 doing it manually, I think. I'd appreciate the help, thanks.

Member Avatar for klickagent
0
9K
Member Avatar for tristanhall

I'm trying to make a blackjack program for my comp sci class and one thing I can do for extra credit is add a feature that allows a user to play a new game at the end of the first game (and replay games after each game). My thought is …

Member Avatar for tristanhall
0
209
Member Avatar for peymankop

Hi...! i'm working on dictionary project and i want to know how can i get the value of a dictionary<string,string> by it's key?! i want to show it on a text field! thanks...! this is the code that you add word and it's translate but i don't know how to …

Member Avatar for tinstaafl
0
345
Member Avatar for jspence29

I am writing a program, and the solution I have involves deleting certain elements from an array until there are none. My code is below, but the error it shows is no return statement. This is because I don't have an else statement for some ifs, does anyone know how …

Member Avatar for stultuske
0
323
Member Avatar for joeyliew7

i have two forms on 1 page. but the 2nd form keep going to 1st form action.. 2nd form suppose to go to approve.php..how do i solve this? when i click Approve it suppose to go to approve.php and execute the query there..but now when i click it give errors: …

Member Avatar for diafol
0
295
Member Avatar for hindu times

Hi there, Following on from an earlier post, the below code is part of Keyring Social Importer, and it imports my Tweets from Twitter and posts them as individual blog posts on my Wordpress.org website. I was wondering, if any of you know php and Wordpress, how I could make …

Member Avatar for LastMitch
0
286
Member Avatar for lancevo3

Hi - I have a project I am going to be working on which will be a python gui. After meeting with the user yesterday I have found out that the computer this application will run on will not have internet access always. Which brings me to my question, how …

Member Avatar for slate
0
161
Member Avatar for vishnation

hi all i am making a tabbed notepad and i have added RichTextBox At runtime.now i want to add it's sub procedural but i don't know how to add sub procedural at run time. i want to addd sub procedural with handle textchanged event. i had added follwig code for …

Member Avatar for tinstaafl
0
251
Member Avatar for pooh1234qwerty

I cant find the error here... its giving 0 0 as output for all input cases. plz help. #include<stdio.h> #define max(a,b) a>b?a:b void build(int ai,int l,int r); int query(int ai,int l,int r,int i,int j,int count); void update(int ai,int l,int r,int i,int j); int aa,b,m; int inp[6]; struct arr { int …

Member Avatar for Ancient Dragon
0
197
Member Avatar for nblackburn

I have an application i am currently working on which uses Aero glass in some areas but the areas that don't have aero are shown in black. I am trying to figure out why that is. **Code:** using System.Runtime.InteropServices; using System.Windows.Interop; using System.Windows.Media; using System.Windows; using System; namespace Test { …

Member Avatar for Ketsuekiame
0
274
Member Avatar for still_learning

Hi guys, I am working on a webpage which holds 2 different html forms. One of them is a radio button form and the other one is a drop down menu. I also have two links on the page. I want to make it so that when someone clicks on …

Member Avatar for xdpi
0
4K
Member Avatar for ryan311

@Html.LabelFor(model => model.ServiceTypeCode)</td> @Html.DropDownList("ServiceTypeId", new SelectList(ViewBag.ListServiceTypeClass, "ServiceTypeId", "ServiceTypeCode", Model.ServiceTypeId), "") can anyone know how to do this. If ServiceTypeCode = 'A1SG43' { @Html.EditorFor(model => model.StatutoryMaintenance) } else { @Html.EditorFor(model => model.CalloutDate) } How to achieve this please.

Member Avatar for ryan311
0
133
Member Avatar for pitic

Hi everyone, I have a tricky question, at least for me. We have a website deployed on IIS that once in a while throws a NullPointerException when trying to read the `HttpContext.Current.Application["JScriptRootPath"]` value. So this is the whole scenario: This is just a key added in the Web.config file that …

Member Avatar for TnTinMN
0
269
Member Avatar for joshl_1995

Hello Community, I was just wondering why my password matching section ( } else if (!$password === $cPassword) { ) in the else if isn't working. Whats happening is it is saying the passwords do match but they don't. I have tried many ways to fix it there is one …

Member Avatar for joshl_1995
0
157
Member Avatar for game06

i just say some using "this." in setter, getter and constructor method. i have never done this so is this good prative to use "this" in getter or setter. ex: public test(int ix) { this.x = ix; } or public int getX() { return this.x; }

Member Avatar for stultuske
0
128

The End.