199,114 Archived Topics
Remove Filter ![]() | |
Public Class Projectile_Motion 02 Dim initialHeight As Double ' Holds beginning height 03 Dim initialVelocity As Double ' holds velocity 04 Dim time As Double ' holds time 05 Dim heightVal As Double ' holds height at different intrvals in time 06 07 Private Sub btnmaxheight_click(ByVal sender As System.Object, ByVal … | |
Hi... Am stuck with a problem.....my question is how do i iterate a control for eg(a textbox) in runtime....let me make it clear if user enter value as "2" and clicks a button it has to iterate two texboxes as output. I have done in my way but then it … | |
header1.h [CODE] #include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <Windows.h> #include <conio.h> using namespace std; int gotoxy_object(int x, int y) // your object { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); COORD point; point.X = x-1; point.Y = y-1; SetConsoleCursorPosition(hConsole, point); return SetConsoleCursorPosition(hConsole, point); } int gotoxy1(int x, int … | |
I'm trying to get a user to input a char and an int to create a box visual using that int. I tried to use Character.parseChar, and realized that wasn't possible. How can I get user input of a char value? Below is my code. [CODE] import java.io.*; public class … | |
Parse error: syntax error, unexpected T_STRING in /home/help4kid/public_html/language/lang_english/lang_main.php on line 148 | |
This is my first post here as I am a student that is just learning (getting dangerous with) HTML but I have a problem that I understand could be helped with php coding. The reason I want to use this is to cut down on the amount of coding on … ![]() | |
Hi, [code] check_time() { fileName=$myFileName newTime=$line newtimeaccess="date --date \"$newTime 6 hour\" '+%Y-%m-%d %H:%M:%S'" newtimeaccess=`echo $newtimeaccess | sh` strnewtime=$(date -d "$newtimeaccess" +%s) systime=$(date +%s) if [ $systime -le $strnewtime ] then return "$fileName__0"; else return "$fileName__1"; fi } value=`check_time "$myFileName $line"` ##$myFileName -- file name and $line -- time of file … | |
import java.awt.*; import javax.swing.*; public class RandomCircles extends Canvas{ private static int delay; private static int numCircles; private static int frameSize; public static Graphics g; public void paint(Graphics g){ } public static void main(String args[]){ frameSize = 800; numCircles = 1; delay = 5; RandomCircles circles = new RandomCircles(); JFrame … | |
I need a script to generate a popup when page loads with background disabled. Please help | |
i am working on a program to find the factorial of a number of any length. i have used an integer array to store the digits of the result. the problem is that i am unable to store more than 32000 digits in the array. if i give a larger … | |
i have a list box and a button. i would like when the button is clicked the selected item in the list box is deleted. any ideas? | |
I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box. any help? | |
I have two combobox. I want to transfer all elements from combo1 to combo2 but with a filter only those item from combo1 will go to combo2 which are not in combo2. For example Combo1 ________ This Is Help But Not Combo2 _______ Is But And Quick So after clicking … | |
[CODE]<?php require_once('auth.php'); define('DB_HOST', 'xxx'); define('DB_USER', 'xxx'); define('DB_PASSWORD', 'xxx'); define('DB_DATABASE', 'xxx'); $connection = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if(!$connection) { die('Connection error: ' . mysql_error()); } $selectdb= mysql_select_db(DB_DATABASE); if(!$selectdb) { die('Unable to select database: ' . mysql_error()); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>xxx</title> <link rel="stylesheet" href="xxx.css"> <head> </head> <body> <div … | |
Hi Im having this issue with my code. Cannot implicitly convert type 'string' to 'Event' (Class) - Thats the error message. Im trying to save an object of my class to an array but its coming up with this message and I dont see why it cant do it because … | |
I am trying to write a program that will tell me how many calories are in a certain number of eggs, cups of flour, cups of sugar, etc. I have a set number of calories for each of the items (i.e. each egg has 72 calories), but I ask the … | |
I'm trying to create a SimpleBirthDay calculator.The requirement is "program must use a Scanner class and JOptionPane class to capture input from user".But i'm having a problem on getting the messagedialogbox to show the result.I found out that using the Scanner class we gonna need to insert the data into … | |
printBoard: A call to this function with printBoard(5,4,[1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]) would print the following output to standard output: |-----------| | 1 0 0 1 0 | | 0 0 0 0 0 | | 0 0 0 0 0 | | 0 0 0 0 0 | |-----------| def board(l,h,list): %a length, … | |
Hi, I wrote this code as is from the JNDI tutorial from sun website. But I am getting this exception while running it: [CODE]import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import java.util.*; /** * Write a description of class FirstJndi here. * * @author (your name) * @version (a version number … | |
Hello. I have started writing a program that adds students and courses into a university. The problem I have is I keep getting "Student.java:62: cannot find symbol" errors, I looked at an example and I have it setup the same way so I don't know where I am going wrong. … | |
So I have a number of CSV files with 6 columns of numbers in each file. I would like to perform a few operations (multiplication, division etc.) on each column in each of the CSV files using Python and instead of opening each file manually, I want to add the … | |
I have 1 listbox, 1 textbox, and 2 buttons (for start, and stop) if I press the the buton for start the textbox will display (one by one) the items in listbox.. and if i press stop the textbox will stop displaying items.. is it possible? do i have to … | |
I need to modify this movies program so that way the DVDs will be sorted by title at all times (A first thru Z). I need to use Binary Search so I put a method in DVDCollection but I'm probably missing something or calling it incorrectly. The program needs to … | |
Hello Guys, I am trying to get the data from two columns of two different tables using Join as combining them as a whole to insert into dropdownlist... The situation is like this: There are two tables named tblPropertyCategory and tblPropertySubCategory.. I have PCName in tblPropertyCategory and PSCName in tblPropertySubCategory.. … | |
Hi guys, i have been having some problems parsing a list of strings. lets say i have a list that has the following strings [code] List<String> list = new ArrayList<String>(); list.add("Process A Started"); list.add("Process B Started"); list.add("Process B Finished"); list.add("Process A Started"); list.add("Process C Started"); list.add("Process D Started"); list.add("Process C … | |
Howdy all . Im doing a code for study but cant get it to compile any help would be greatly appreciated.. public class Flight { //instance variables private String flightNumber; private String day; private String destination; private int seatsBooked; private int numberOfSeats; // constructors public Flight() { this.flightNumber = " … | |
Hello, The following applet displays two .jpg files (ImageIcon objects - x and y) on a JPanel. I would like to display the second ImageIcon object (y) as transparent. Is that possible? Thank you! [CODE] import javax.swing.*; import java.awt.*; public class PicPanel extends JApplet { ImageIcon x, y; JPanel panel; … | |
Hi guys I have part of the code that looks something like this: [CODE] if(c1=='a') myStack.push(c1); else if(c1=='b') myStack.push(c1); else if(c1=='c') myStack.push(c1);[/CODE] I just want to ask is there any way to rewrite this code, to make it more compact something like [CODE]if(c1==('(a'||'b'||'c') // I know this doesn't work [/CODE] … | |
hello iam started taking oracle 10g i have few doubts please clear me for example create table employee (ename varchar2(10),salary number(7,2)); what is the use of varchar compared to character??? what is number(7,2) i mean 7,2 i dont understand please explain me | |
1 using System; // help me to write this code in object oriented 3 namespace ConsAppl_OOP_Keo_c39 4 { 5 class Procedure_Orieted_Programming 6 { 7 static void Registration(string studentID, string courseNumber) 8 { 9 Console.WriteLine("Данныерегист-циистуд-та: №студента - " + studentID + ", №курса - " + courseNumber); 10 } 11 static … | |
does any one know why my for loop work fine but printf("%c",num[0]); get me 0? [CODE] void test(char[]); void test2(char[]); int main(void) { char num[10]; test(num); test2(num); } void test() { num[0] = '1'; num[1] = '2' } void test2(int num[]) { for(a = 0; a < 10; a++) { … | |
I have a what should be a simple form program that has a comboBox, textBox, two buttons, and a label. once the user picks an item it shows the cost for that item. they can then enter a number into the textBox, once order is clicked the total amount for … | |
Hello all, I have a challenge. Here's the scenario: There are two sites. One has an activity and post-tests for some of those activities, and one has post-tests for the rest of them. They are two businesses, and for security purposes, neither allows direct queries of the other's backend from … | |
Hi All, I'm going crazy with this. I have a file called unique.txt with allot of values in. When I run my script it will add 1 value (1319613308.476855) to my value file but when I grep the value it displays nothing and I know the value is present in … | |
Well I have a small problem. I'm currently working on a project and I want to check if the user has pressed the space. Let's say I have [CODE]string Txt = "Hello, daniweb"; [/CODE] and I have a textbox which the user is writing on it. I have made a … | |
If we write some text in edit box which already contained in tree control in mfc when we click the button its remove from tree control .Plz tell me in visual c++ mfc plz fast replt . THANKS IN ADVANCE | |
I am trying to archive a database entry using .post, but I am getting this error: "Uncaught SyntaxError: Unexpected token (" I am defintely still in the learning phase of jQuery, so any help is appreciated! [CODE] //Archive Table Row function archiveEntry(id){ function(){ if (confirm("Archive Fill #"+id+"?")) { $.post('/elevator/scripts/php-inc/archive.php', {id: … | |
I have a simple script (below) that on click (to the element with an id of #addClass) adds a class (.switcher) to the body tag. The script uses jquery. I would like to know if it's possible to modify this script so that when the user moves on to the … | |
Hey guys, I've been having a bit of a problem using the while function. Here is my code (Simplified): [CODE]Dim RandomNumber3 As Random Dim RandomOutput3 As Integer RandomNumber3 = New Random() RandomOutput3 = RandomNumber3.Next(1, 9) Dim RandomClass As Random RandomClass = New Random() While (RandomOutput3 = RandomOutput Or RandomOutput2) RandomOutput3 … | |
Good Afternoon, I'm new to C# programming and I'm taking Networking this semester. The professor asks to write a program in C# Write a program to discover the IP address of your machine. Also an interesting modification to this program is to give the host name and let the program … | |
in form it have 2 listbox and in listbox1 and listbox2 items have "s1" , "s2" "s3" [CODE] Select Case ListBox1.Text And listBox2.Text Case "s1" p1.visible=tre Case "s2" p2.visible=tre Case "s3" p3.visible=tre End Select[/CODE] i want that the code check it item in listbox1 or 2 then do the same … | |
hey, im getting the exception [CODE]Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com.sun.media.jai.codec.SeekableStream at javax.media.jai.operator.BMPDescriptor.class$(BMPDescriptor.java:65) at javax.media.jai.operator.BMPDescriptor.<clinit>(BMPDescriptor.java:87) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:186) at javax.media.jai.RegistryFileParser.getInstance(RegistryFileParser.java:224) at javax.media.jai.RegistryFileParser.registerDescriptor(RegistryFileParser.java:360) at javax.media.jai.RegistryFileParser.parseFile(RegistryFileParser.java:295) at javax.media.jai.RegistryFileParser.loadOperationRegistry(RegistryFileParser.java:55) at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:369) at javax.media.jai.JAI.<clinit>(JAI.java:382) at cbir.window1.ColorHistogram.<init>(ColorHistogram.java:61) at cbir.window1.SearchWindow.jButton1ActionPerformed(SearchWindow.java:92) at cbir.window1.SearchWindow.access$000(SearchWindow.java:22) at cbir.window1.SearchWindow$1.actionPerformed(SearchWindow.java:47) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) … | |
I have an integer called: int pID = 0; Inside my while loop I'm using pID++; to increment it. Sometimes the pID doesn't get incremented and sometimes it will. My sample output would be. 0 1 2 2 2 3 4 5 5 6 7 Does anyone have an idea … | |
Hello masters, I want to know how to check an empty textbox in the form. I can check it by assign Text1.Text = "". But i have many textbox in form. Thank you in advance | |
![]() | Im working on a Search index that searches through files that you manually add to the index, I'm having trouble with my GUI right now. Never used any java IDE before and its giving some unfamiliar suggestions. Netbeans wanted to make my main class abstract (but for no reason stopped) … ![]() |
Hi all, How i can split a sentences into words and add splitted words into listbox. Thank you. Best regards Eko | |
I want to change chars in string like this: if i input DaniWeb it will change it to EbojZfc I've come so far: But this changes to z at the end :S Please any help... [CODE]#include <iostream> #include <string> #include <algorithm> using namespace std; int numChars(string besedilo); int numWords(string besedilo); … | |
![]() | Hey, I'm kinda crappy with arrays. [CODE] int [] myArray = new int[5]; myArray[0] = num1; // initialize # of cols myArray[1] = num2; // in each row myArray[2] = num3; myArray[3] = num4; myArray[4] = num5;[/CODE] I want to use a for statement, to add these 5 things together, … ![]() |
Hi, I would do result loop where the only exists title attribute and how to make the result of the title attribute? This code does not work: [CODE]<html> <head> <script type="text/javascript"> function ppp() { var i=0; for(i=0;i<9;i++) { var idm='a' + i; var AttributeA=document.getElementById(idm).getAttributeNode("title"); if (AttributeA) { document.write("number: " + … | |
hi every 1. i am trying to make a search form with 1 label(surname) and textbox. i have 1 gridview on the form aswell. can you plz provide me any code so that when i type in textbox i should c the result in the gridview. wat i have done … |
The End.