199,114 Archived Topics
Remove Filter ![]() | |
class ThreeException extends Exception { /** * */ private static final long serialVersionUID = 1L; static int count = 0; public static void main(String[] args) { while(true){ try{ if(count++ == 0) throw new ThreeException(); System.out.println("No Exception"); } catch(ThreeException e){ System.err.println("Three Exception"); } finally { System.err.println("In finally clause"); if(count == 2) … | |
#include<iostream> using namespace std; #include<iostream> using namespace std; void main() { int a ,b,c; cout<< "Enter three integers"<<endl; cin>>a,b,c; if (a<b && a<c) cout<<"a is less"<<endl; if (b<c && b<a) cout<<("b is less"); if (c<a && c<b) cout<<"c is less"<<endl; else cout<<"all numbers are the same"<<endl; }; I GET A … | |
Am trying to get my script to read in a directory and search for a a file, if the file doesnt exist it should print"that it doesn't exist" then add Notinfolder in an array. Please assist <?php $connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { … | |
Have a question , if we can compare two arrays for equality like this #include <iostream> using namespace std; int main() { int a[5],b[5]; for (int i=0;i<5;i++) { cin>>a[i]; cin>>b[i]; } if (a==b) cout<<"they are equal"; } as you see isnt there a way like this or a function to … | |
So, i wanna try graphics, and i was wondering if sfml or sdl is better? I cant find any good tutorials on sfml and its kinda confusing. i havent used sdl so im asking your opinion. and also, **What did you start off with, and why?** | |
I've recently started college at Digipen, and have developed carpal tunnel already from all the writing/coding/etc... but fortunately for me, I'm learning to be a programmer, and have already made a few programs to assist with things like opening command prompt/bat files faster/without clicking, etc. Since clicking the mouse is … | |
Hey guys I'm having a minor issue here, I'm having an issue with my sterling.cpp in the add functions sterling add(sterling s1, sterling s2) my question is how do I get it to realize when my shillings is > 20 to goto pounds and when my pence is > 12 … | |
**Because it is a compile-time operator that, in order to calculate the size of an object, requires type information that is only available at compile-time. This doesn't hold for C++.** i have read this statement roght now when implementing one library function. why it doesn't hold for C++? secondly, i … | |
I have read online that the CalendarExtender doesn't trigger a postback when inside an UpdatePanel. My page is similar to this: <UpdatePanel> <ContentTemplate> <UserControl /> </ContentTemplate> </UpdatePanel> Inside the UserControl is a textbox that has a CalendarExtender hooked to it. It causes a postback even to be triggered, so my … | |
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Try Dim usr, pswd As String Dim i, n As Integer obcon.con.Open() obcon.cmndcon() obcon.cmnd.CommandText = "select count(*) from users " n = obcon.cmnd.ExecuteScalar MsgBox("n=" & n) For i = 1 To n Step 1 obcon.cmnd.CommandText = "select usr_name … | |
i want to display data from text file in list view and in tree view root will be file name, but i dont know how to do it, the problem is with displaying text file data in list view, i don't know anything about that. text file data is very … | |
Hey, I'm using Addins to loop through access forms and create an equivalent to access controls and add them to the active window if it was a form , the only problem I'm facing is my access form language differ's from the default language for windows form application , is … | |
Write a function, swapSubtrees, that swaps all of the left and right subtrees of a binary tree. Add this function to the class binaryTreeType and create a program to test this function. This was my assignment this week and I am just at a loss I don't even know where … | |
Hi All, I have configured a spring JPA project but when I deploy and start the tomcat I get the exception nin stacktrace as shown below. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/database-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: … | |
Help please -I am still learning Visual Web Developer in VB.Net code Sorry to ask, there is probably an easy fix or I have this completely wrong. I have a DropDownList2 (CustName) and a TextBox16 (for CustID) I want the command to look at the SQL Table and fill the … | |
I want to do a project on hotel management. But I can not know how to take the print of the bill of a customer. After I entered data in textfield how to take printout those data in a money receipt format. | |
Hello, I am new to this web and new to programming. I am not sure what does mean the following algorithm: set counta = 0 set countb = 0 read number while read was succesful do if number mod 2 equals 0 then set counta = counta + 1 otherwise … | |
I have created an application using swing. On clicking a particular menu item, a form is loaded,and after saving it a pdf generates. For reporting, i am using iReport. Here is the code snippet MyiReportViewer.java package sms.ui.ireport; import java.awt.BorderLayout; import java.awt.Container; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import … | |
hi, im having an issue when using the .load() function of jquery. im using my index .php file to dynamically load contents in a div using the load function. but when i refresh the browser i taken to index.php. can u please suggest me? thank you | |
hi i've recently been learning about python on cssciencecircles.com. After a while i decided to download it so i can save some of my programmes. When i make a programme in the IDLE shell and save it, even the most simple instructions, eg. print('hello world') , when i try to … | |
i added this code to my index.php (joomla ja-purity file 1.5) <?php if($this->countModules('user6')) : ?> <table class="nopad user6user7"> <tr valign="top"> <?php if($this->countModules('user6')) : ?> <td> <jdoc:include type="modules" name="user6" style="xhtml" /> </td> <?php endif; ?> <?php if ($this->countModules('user6') and $this->countModules('user7')) : ?> <td class="greyline"> </td> <?php endif; ?> <?php if ($this->countModules('user7')) : … | |
I am converting an app I wrote when learning VB (I primarily use C++). In VB it was trivial to minimize a window to the Taskbar: Private Sub GoButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoButton.Click Me.WindowState = FormWindowState.Minimized Setting the window state in the "Go" button's _Click … | |
I have created a cube in visual studio, when i want to deploy it i get the following error: Error : The project could not be deployed to the 'USER-PC\SQLEXPRESSR2' server because of the following connectivity problems : A connection cannot be made to redirector. Ensure that 'SQL Browser' service … | |
Hello Daniwebbers I have a 2 dimentional control array which gets added to it programatically. There's a lot to add to it but i have already stumbled at the first hurdle. I keep getting the standard "Object reference not set to an instance of an object." error when the first … | |
Im training for olaympiad and need a little of your help to know useful functions that You use . one of an important things I need , Is that to take a number base 10 to base 2 for example : 66 (base 10) , 1000010 (base 2) if available … | |
Hi can anyone see what the problem is below I am new to c# so not sure why this code does not excute? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace Eight_Stage { public partial class Form1 : Form … | |
Hi All, I am new comer in this site. Through Google serach I have found this community. Hope this site is really helpful for the beginers who wants to learn everything However I have written a query and got the result. Now I want to insert the data (what I … | |
Hi, I am an I.T student and currently working with my system. Please teach me how can i save the image link im my database using vb.net, i am done with the browsing, uploading and removing of image except saving.. please help i would be really ideas only on how … | |
Gulp, I hate to even ask because I think I know the answer... Has anyone ever, or does anyone know if ASP can be used to query a MUMPS database? Any information appreciated. | |
Supposed i will input a string like "java"but the display will change instead of "java" the display will change every character and become **** please help.. :) | |
Basically the program is a database of student enrollments. I cannot get the the search delete/undelete and update functions to work and need help asap. Need to implement a bool field to the delete / undelete Please help #include <cstdlib> #include <iostream> #include <iomanip> #include <conio.h> #include <fstream> using namespace … | |
#Code for INSERT INTO into database and if fields are null, it will prompt for null fields.# | |
Hi, I am writing code for connecting to an access database in my windows 7 machine. Am using visual studio 2010 with access 2007. While debugging the code am getting the exception **"The 'Microsoft.Jet.OLEDB.4,0' provider is not registered on the local machine"**. Below is my code, Try connection = New … | |
Hi, I am trying to validate an XML file against a schema, which i can achieve without issue normally, however, in this particular schema, there is an imported namespace, that appears to be preventing the validation from happening, as the error being returned is pointing to node of the elements … | |
Hi I have this code that performs error checking on initial values. Everythinbg works good but how would I go about allowing for user input? I am thinkging JOptionPane but where would I add that? public class Date { private final int month; private final int day; private final int … | |
Hi Team, This is my first thread from Daniweb.. I observed Daniweb is great support for PHP Developers... I am planning to integrate this Tiny Editor in my website for mathematical calculations. As per my observation Our math expression images saved in Codecogs server. In future is there any trail … | |
hi to all I have list of names in list view with corresponding unique employee id. The user could select more rows. In each employee id I will find it in database in retrieve all the details information and print it using crystal report. What I want is in each … | |
Hi there, quick question about onchange method usage. I have a couple of checkboxes and when I check/uncheck them I want a function to be called, therefore I have decided to use the onchange method. But I am not sure I get how this works. Take the following example: HTML … | |
Hey How do I run my web service as root? Yes, I know the security implecations of this. Thanks | |
Hiya, Andre kindly showed me how to put my points into a listbox and sort in numerical order decending. I need a way, (Perhaps another list box) of adding a string, (Players Name) next to the points after they are sorted so we can clearly see who's first etc. Here's … | |
Hello everybody! I'm currently creating my first employee monitoring system here in Visual Basic 6. I have a problem with regards to my program, it has an error of no value given for one or more parameters. The code that I will show here is just a part of my … | |
Hello i have a datatable |row|col2|col3|col4|col5| | 1 | val| val| val| val| | 2 | val| val| val| val| | 3 | val| val| val| val| | 4 | val| val| val| val| | 5 | val| val| val| val| | 6 | val| val| val| val| | 7 … | |
Hi, I don't know what happen all a suden but all my textfiels variable are now underline in red. I have : st.setString(1, t1.getText()); st.setString(2, t2.getText()); st.setString(3, t3.getText()); Where t1,t2 and t3 are my textfields variable name but is says cannot find symbol. Everything was working fine, I don't understand … | |
I need a help with this Java project. And please note that Iam not try to cheating to complete this project,my teacher is give the permission to use any source to help do this project and I'm not plagiarism I will give the credit to the source code in this … | |
Determinate,if it's possible,p numbers of n binary digits,so any 2 of this numbers to match in exactly m positions.There must no be positions same digit to appear in all the p numbers. Restrictions 1 <= p <= 25 1 <= n <= 25 1 <= m <= n a number … | |
**Hello Programmers,** Your newbie programmer wants to ask a help regarding his program (That’s Me :D). My program is in Visual Basic 2010, I want to ask how I can search a words or strings. I use TextBox, ListBox and Button for my program. For detailed explanation about what my … | |
A retail company must file a monthly sales tax report listing the sales for the month and the amount of sales tax collected. Write a program that asks for the month, the year, and the total amount collected at the cash register (that is, product sales plus sales tax). The … | |
Is there a way to set Max date in Java for the calendar control or restrict the user from selecting the future dates? | |
Hi all. This regards chapter 6 of "Accelerated C++". The program is intended to scan a document and find all the urls in it. I am testing it with just one string input "text http://www.page.com more text". The program is compiling but doesn't run beyond me entering the input. I … | |
Hello All, I am writing an image processing application in C# that needs to be speed optimized for faster performance. I have been told that using Unsafe Code together with Pointers can speed my algorithm up significantly. Unfortunately, I have no experience with Pointers at all. How can I make … |
The End.