199,114 Archived Topics
Remove Filter ![]() | |
Hi everyone, I'm having problems with the output of this coding and I would really appreciate the help. The assignment requires to show how someone's taxes are distributed by first ask the user for the amount of money (dollar[] and income) and at the same time prompt for the taxes … | |
Hello, I'm in a software design class and we are using java; I've taken other programming classes and I'm familiar with a few other languages but that's the problem. I feel like I'm missing the point of java. I don't even know the term for it...but the java style I … | |
[code]<%@ page import="java.sql.*"%> <html> <body bgcolor="pink"> <% String user=request.getParameter("us"); String pass=request.getParameter("pa"); String a=request.getParameter("na"); String a1=request.getParameter("no"); String a2=request.getParameter("el"); Connection con=null; Statement stmt=null; ResultSet rs=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("Jdbc:Odbc:Data405"); stmt=con.createStatement( ); stmt.executeUpdate("Insert Into stud(username,password,nam,nos,elg) Values('"+user+"','"+pass+"','"+a+"','"+a1+"','"+a2+"')"); out.println("File inserted"); } catch(Exception e) { out.println("error"); } con.close(); %> <a href="http://localhost:8080/maya/login1.jsp">go back</a> </body> </html>[/code] I can … | |
Salaam to all viewers Dear please help me on this topics iam having a form,DatagridView,textbox datagridview contains a data when we write in textbox so the datagriview row select who matching data with textbox for example i write in textbox Nims so the datagridview row select where the nims find … | |
Really sorry if i m postin under the wrong topic. V ve to simulate a WAP-based course registration system.It can be for Nokia, Ericsson,.. V can use the simulators available online also. If this software is available, v can make use of tat itself. V ve to understand how it … | |
I am having an issue with populating values from a form into a mySql database. When the code attempts to send the insert query to the database, it returns the error, ERROR: Incorrect decimal value for column 'purchase_price' at row 1 I think I can understand what is happening here. … | |
Hey guys, I'm working on this program. It should roll 2 separate die and repeats until the computer rolls doubles. I'm having some issues with it and could use some help. [CODE]// RollDoubles.java // import java.util.Scanner; public class RollDoubles { // Dice roll repeatedly until computer rolls doubles // print … | |
HI guys, I would like to create a Java file based on the information from an XML file. I would like to read the info from an xml and generate a class and it's method. e.g [CODE] <person> <name>croc</name> <surname>crocky</surname> <age>12</age> </person>[/CODE] then it should generate: [CODE] public class Person … | |
Hi everyone, I am thinking of doing something like this but I am not sure it can be done or not. Normally, if i write a program (Windows Form) I drag and drop what button and textboxes are necessary on the form then do necessary procedures and actions. What I … | |
Hi, I am having some major issues. My site provides sheet music available for downloading for free. When a user clicks on a sheet to download, a new window opens up. This user views our sponsor's website for 30 seconds. Once the time is up, they can download the free … | |
Hi. I am trying to create a stand alone app but stuck somewhere. When i click on a JCheckBox, it opens up another frame window. in this window if i click cancel then the JCheckBox in the previous frame is not checked. but if i click OK then this JCheckBox … | |
how to make a php link which will open in new tab what should be the php code to open a link in new tab. how i can make a link in php which will open in new tab? | |
Hello, just find this website and feel it is great to learn Python here. I have a question when I try to read data from file and compile a dictionary from the data. The data look like this, 1 1 A A 0 1 2 A B 1 1 3 … | |
This is the code I have so far. I can't even get the numbers range to print to the screen correctly. I am very new to all this stuff so go eacy on me. Can anyone help?? [code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int main() { unsigned … | |
hi, i have a page which shows user details(div1) by default there will be an admin who enters username and pwd and then a new div(div-layer) is displayed. also ,a user can edit his data by pressing edit button on which he will be displayed div2 and div1 will be … | |
pls help me where to write java script programs and how to run them | |
Can Somebody help me with my PHP project. what I want is to make a database query's result to be randomly distributed to an html table. and then save the whole table in a database just like this. Query Result Query Result Query Result to Data Data Query Result Data … | |
Hi. How can I get subprocess.Popen.stdout size? Before reading from Popen.stdout I want to check its size, then get bytes from it. [CODE] def execute_bash(self): wait_sec = 5 import time import subprocess wForceKill = True res = subprocess.Popen(self.command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for i in range(wait_sec): res.poll() if res.returncode != None: … | |
I am trying to complete this program. It is excuting the second part of it, Which every 5th word needs to be replaced with an underline. But I need to print out the text with out the underlines first. then have it replaced with underlines. Also, the user has to … | |
I am currently writing a simple program that will either allow me to add music or show all of my albums, artists, and songs. The program starts in main(); then after selecting "View Music" it goes to the viewMusic() function but runs through the function and skips the getchar() for … | |
I', am a newbie and trying to get a better understanding of securing mysql queries vs. injections. I found this code here below, which seems to work nicely and makes it possible to automatically "clean" all inputs coming thru `$_GET`, `$_POST` and `$_COOKIE`. But in some forums I was told … | |
![]() | Hi guy's, I am missing something, what on earth is wrong with this script, I can not get it to insert all my values into a table. [CODE] $host="localhost"; // Host name $username="root"; // Mysql username $password="1234"; // Mysql password $db_name="database"; // Database name $tbl_name="input table"; // Table name $que … |
How do I create a constant No direct script access allowed. As is the Joomla CMS.? [CODE] // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );[/CODE] [CODE]if ( ! defined('BASEPATH')) exit('No direct script access allowed');[/CODE] | |
Hi, please help me to get the URL from the address bar. Example when i write [url]www.google.com[/url] in my address bar my application in c# return the value of URL that is [url]www.google.com[/url] please help me to write this code. Thanks in Advance | |
Hi, I found a very useful app on the web. Downloaded the .class file and was just wondering if it would be possible to somehow put that app on my phone. It's a Nokia E5 and I'm certain it has java. Please advise. Thank you. | |
okay , i see .... i have situation where i have a list called bunnyList containing mutantType objects, i want to create a new object using a constructor and add this object to my list. Like below. bunnyList.push_front( new mutantType ); with the aid of the newly discovered rbegin pointer … | |
Hello I would like a good reference for a totaly noob in chip building (ok I know they are some circuit+transistor prints on silicon wafers but nothing more) I would like to know how I define the usage of a little "black cockroach " (I mean a chip) so that … | |
Hi I am learning SQL at school. I need to work with Oracle 8.0 or any other version before 9i. I have tried to do it, but just came to know that its antique. Hence I need your help to download it. Kindly give me the link. | |
Hi, I have to make a program that takes an input text file and reverses the contents of that file, and outputs that into another text file. I am new to stacks, but what I have so far nothing happens, it just outputs a blank text file. I just wanted … | |
I need help with a homework, i been working in this for the past 2 weeks and can't get it to work. I need to make a function that will allow me to create a dynamic array and them expand the old array of 3 subcript into the new array … | |
Ok guys I'm getting trouble with my php echo command. All the codes after the first echo command, displaying in browser. I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0. I've given the example of my error. Please solve it ASAP. … | |
Hello, I have to write a program that prompts the user to enter a phone number expressed in letters and outputs the corresponding phone numbers in digits. The user can use lowercase and uppercase letters, as well as spaces between words. And I am supposed to use the charAt method … | |
#include<stdio.h> #include<conio.h> main() { int num, dep, with, bal; clrscr(); num=1; printf("MENU"); printf("\n\n1. Deposit\n2. Withdraw\n3. Check Balance"); printf("\n\nEnter a number of choice: "); scanf("%d", &num); switch(num) { case 1: printf("\n\n\nEnter an amount to be deposited: "); scanf("%d", &dep); { printf("You have successfully deposited an amount of %d.", dep); } getch(); … | |
Hello, I'm new here and not quite sure what it means by wrapping code in code tags so for my future posts can someone let me know how this should have been formatted so it would be a correct post? My question is I have a program I am writing … | |
hypothetical say i have [code] for i in range(20): for j in range(20): for k in range(20): [/code] How could I != all fo them without writing 20 statements i !=j !=k doesnt work obviously (I have to compare 5 words so writing a seperate for each combination would take … | |
Guys I have 2 files. index.php and connect.php I'm getting database connection error. This is the error i got [QUOTE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\wamp\www\index.php on line 3[/QUOTE] Then i added the error detection code in the third line. I got the following … | |
Hey all, I've been trying to build a simple c shell for assignment, and im a bit stuck. It doing something different on my laptop to that it does on my pc :S laptop is on mint 7 pc is virtual machine on mint 8. Im using the getcwd to … | |
im developing a language converter so i want to do like this source | target (this is only example) aa | q bb | w cc | e im using netbeans ide i have a one textfield for input strings and textarea(i used textarea becoz i dont know how to … | |
I have the following function to delete nodes in a doubly linked list at a specified position [CODE]void Delete(struct dnode **ptr,int pos) /*pos refers to position at which element is to be deleted and ptr is the pointer to the first node in the list */ { struct dnode *temp; … | |
Hey everyone :) I'm writing a program for my class that has the user input 5 test scores and then from the inputted numbers, return the letter grade. I've begun writing the LetterGrade function, but it's not working. I'm getting a strange array of numbers/letters instead of the actual letter … | |
Hello Everyone! First of all thanks again for viewing my thread. I was hoping someone could give me some good advice or point me to some code examples of java code calling an Ant JUnit Target if that makes sense. Basically I have a very basic java gui that upon … | |
I have been trying to replicate Matlab's patch() function (reference url: [url]http://www.mathworks.com/help/techdoc/ref/patch.html[/url]) with numpy and wxpython. The ultimate goal is to replicate the functionality of following line in python: [CODE] patch(vertices(i,[1,5,9]),vertices(i,[2,6,10]),(ctotal/3))[/CODE] It is a 2D patch function which draws triangular polygons. I am familiar with using wxPython for simple GUI … | |
I can't figure out what the error means that I keep getting on my loop. I have it set to only take 5 arguments, which is my limit, but I can't tell what it's saying: [code] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at Duplicates.EnterNumbers(Duplicates.java:20) at Duplicates.main(Duplicates.java:28) [/code] Here's my code: … | |
Hi guys, I'm currently working on an online shop project. I'm kinda stuck on the payment part. I need to make it possible for people to pay with visa and credit card. Only problem is, i have no clue on how to start with programming this. Or maybe there are … | |
I am attempting to learn Assembly (x86 Assembly on Windows using NASM) but am having trouble understanding what this is doing. Can someone please explain line by line what this code is doing? I have commented the lines that I think I know what they do, but I'm not sure. … | |
Those some parts of my program. I write the problem at the buttom [CODE]void main() { string option; warehouse car[2]; car[0].inputCar("lamborgini",true); car[0].showCar(); car[1].inputCar("ferrari",false); car[1].showCar(); //display the choices of the user cout<<"a) Show number of modified"<<endl; cout<<"b) Show list of modified"<<endl; cin>> option; switch (option[0]) { case 'a': countModified(); break; case … | |
trouble putting together program for designing catface that will resize in the frame import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import javax.swing.JPanel; import javax.swing.JComponent; import javax.swing.JFrame; import java.util.Random; import java.awt.geom.Arc2D; import java.awt.BasicStroke; /** * A component that draws a Cat Face. *@Kevin Bennett */ public … | |
Hi, I set out to make a body fat calculator tonight. There are a number of things that need to be improved in the below code (any suggestions welcome) but there's one thing I am really baffled by. I get a syntax error on the last few print lines. Please … | |
[CODE] #include <stdio.h> #include <string.h> typedef struct { char firstName[50]; char lastName[50]; int age; }Person; void ModifyPerson(Person*); int main() { Person person; strcpy(person.firstName, "firstName"); strcpy(person.lastName, "lastName"); ModifyPerson(&person); printf("First Name=%s\nLast Name=%s\n",person.firstName, person.lastName); system("PAUSE"); } void ModifyPerson(Person *p1) { //This doesn't modify the original variable declared in main function Person person = … | |
Hello I am a new java student. I have a lab in which we have to compare strings to see if they are anagrams. When I compile it I'm not getting any errors but its not running as it should or as it was running the other night. I have … |
The End.