199,114 Archived Topics
Remove Filter ![]() | |
Hi all I am having a jsp page where I have entered radion button value ,like this:-- <td><input type="radio" name="billType" value="1"/> <font color =blue> Brief Bill</font></td> <td><input type="radio" name="billType" value="2" /> <font color =blue>Detailed Bill</font></td> <td><input type="radio" name="billType" value="3" /> <font color =blue>Itemized bill</font></td></tr> Now I want to get this … | |
Hi, I have really lame problem which is probably that easy, that I can't get it working. I have program like this below. And I need to make prototype to get it working. But I don't know how it need to look like. I don't want to have these functions … | |
Hi All I have a load of information on my label in a groupbox on the form there is too much information to be seen in one go so i want to use a vertical scrollbar to move the label up and down inside the groupbox so it can be … | |
I have tried searching internet a little bit and found some useful information about the command [CODE]SetLength[/CODE] I just wonder about a few things as I would like an array to "constantly" be redefined in size. When using it in one part of my program, it will be defined in … | |
Hello to all. I have a problem with replacing a part of a string with another string. The following code does not work. However, if you remove void in front of replace_str, in Code Blocks i am able to run it (WHY???) despite the fact that i still get a … | |
hi all, i am trying to display a xml file in a datagridview. i am using windows application with C#. say for example, i have a xml file like this, <xml version="1.0" encoding="UTF-8"> <maincategory> <cat1> <title>Category1</title> <link>http://www.w3schools.com</link> <description><img src="[URL]http://static.ibnlive.com/pix/sitepix/09_2007/flames_ramsetu90.jpg"[/URL] alt="some description</description> </cat1> <cat2> <title>Category2</title> <link>http://www.ibnlive.com</link> <description><img src="[URL]http://static.ibnlive.com/pix/sitepix/09_2007/rahul_gandhi_white90.jpg"[/URL] some description</description> </cat2> … | |
C++ Syntax (Toggle Plain Text) Hi, from the previous link : [url]http://www.daniweb.com/software-development/cpp/threads/365264[/url] How to do i sort by using X or Y for the coordinates of Line2D and Line3D since Line2D, Line3D contains 2 pairs of coordinates. example. Line3D, [7, 12, 3], [-9, 13, 68] Line2D, [5, 7], [3, 8] … | |
Ok, So i wrote this basic program that takes a map file as an input, and parses it and then draws the map. Its sort of like VERY BASIC tile mapping. The problem is, I cant think of a way to loop it so that no matter how many map … | |
[URL="http://graphingvariousfunctions.wordpress.com/2011/11/18/how-to-solve-linear-equations-in-10th-grade/"]Solving linear equations[/URL]? It says I have to solve -3k + 4 = 8k - 15 - 6k - 11 On the problem, do I combine like terms on one side first? Like the 8k and the 6k? If so do I add them or subtract them? Can someone please … | |
Hello! I wanna ask you guys for help with this program. Here is my problem explanation: I want that user gives an input in the beginning of the program how big should tictactoe board would be. For example: input: 4 so board would be 4x4. Code of the current problem … | |
Okay, So I have this program that spits out the sum and average of a list of numbers that the user inputs. When ever I run it, though, it gives me crazy numbers. For example, when I put the values 1, 2 and 3, it gives me 3.957e+10 as the … | |
Hi there, I have been asked to import a text file into java, the file contains a series of 1's and 0's which draw a picture. The 1's will be drawn as a dot where as the 0's will be a blank space. I was wondering if anyone could show … | |
[CODE]/** * @(#)TestClassOne.java * * * @aziza meshal * @version 1.00 2011/11/12 */ import java.util.Scanner; public class TestClassOne { public static void main(String [] args) { int size; Scanner input=new Scanner (System.in); System.out.println("plz enter size of array"); size =input.nextInt(); int [] a1 = new int [size]; ClassOne [] a2 = … | |
Hi, I have a problem with c files. I have broken my code to 2 files main.c and unp.h unp.h [CODE] typedef void (*Ptr_To_Function)(void); struct Menu_Record { unsigned int option_number; const char * text; Ptr_To_Function process_function; }; struct Menu_Record* select(struct Menu_Record*,int); struct Menu_Record startup[] = { {1, "Choice1", NULL}, {2, … | |
I need to output "Exceptional Innovation" <div id="basic-info"> <h1 class="fn org"> <span> Exceptional Innovation </span> Here's my Code [CODE] RichTextBox1.Text = htmlsource Dim myMatch As New System.Text.RegularExpressions.Regex("(?<=<div id=""basic-info""> <h1 class=""fn org""> <span>).+?(?<=</span>)", RegexOptions.IgnoreCase Or RegexOptions.Compiled) Dim matches As MatchCollection = myMatch.Matches(RichTextBox1.Text) For Each itemcode As Match In matches Dim output … | |
Hi everyone, I am am trying to change the "display" property of a div from "none/block" to normal in order to display it on mouseover event.But I do not know why it is not working! Can you please take a look at following spinets and let me know what I … ![]() | |
Dear all I am creating a web application for my company. My application has a button and a textbox. What I want to do is entering some value into the textbox and then when i click the button the application will process the value based on the input in the … | |
Hello all, I want to ask you what this code mean. [CODE] import java.io.*; class CopyFile { public static void main(String[] args) throws IOException{ int i; FileReader fin; FileWriter fout; try { fin = new FileReader(args[0]); fout = new FileWriter(args[1]); } catch (FileNotFoundException e) { System.out.println("Error opening output file."); return; … | |
Hi, thanks for looking! I am trying to replicate a mouseover image swap feature on multiple images like on this site - [url]http://www.togsandclogs.com/latest-arrivals-12-w.asp[/url] I have found some image swap scripts but finding it difficult to find something i can implement for multiple images as above. The below works ok for … | |
[CODE] // Node .h #ifndef NODE_H_INCLUDED #define NODE_H_INCLUDED # include <iostream> using namespace std ; class Node { private: int object ; Node *nextNode ; public: Node() ; void setObject(int x) ; void setNext(Node *next) ; int getObject() ; Node *getNext() ; } ; #endif // NODE_H_INCLUDED //----------------------------------------------------- // Node.cpp … | |
Hello! I'm new to this site and fairly new to Java, I've tried creating a program that takes a file as input and edits specific substrings in said file, compiles without problems but the file remains unchanged. [CODE] import java.io.*; public class Uppg10_OH { static class MinHistoria { private String … | |
I have a problem with the following code , i put try ... catch around if statement , and display this error message : 'Question1' is undefined ! [CODE]<html> <head> <title> Online Quiz </title> <script type="text/JavaScript"> function checkAnswer(){ var correctAnswers=0; var errorAnswers=0; document.writeln("The Result : "); try{ if(Question1.Q1[1].checked){ document.writeln("Q1 : … ![]() | |
Hi I recently installed XAMPP and tried my first test page by creating a sub-folder in htdocs namely password_test which containts 2 files: password.txt and an index.php. While trying to execute i get the following: file:///C:/xampp/htdocs/password_test/ -------------- Index of C:\xampp\htdocs\password_test\ Name Size Date Modified [parent directory] index.php.txt 129 B 11/18/11 … | |
Hi, I am a student doing my Final Term Project. I am suppose to create a GUI using C# that can control and interact with a Robot call Robonova-1. The robot will be connected to the PC via Bluetooth. I was thinking to have a connection button in my GUI … | |
Hello, I am looking for a way to stop variable scope leakage. I have a class with a function to include a page something like this: [CODE] class functions{ function getView($viewTheme, $viewType, $viewTask, $viewFunction, $pageID=null, $itemID=null){ $baseView = ROOTME.DIR_VIEWS.$viewType.'/'.$viewTheme.'/'.BASE_VIEW_DIR.$viewTask.'/'.$viewFunction.'.php'; if(file_exists($baseView)){ include($baseView); } } }[/CODE] My problem is, I am now … | |
I want to consolidate data from multiple worksheets however it only copies the value without copying the format. i need it to copy the format as well because there is one field need to have number in the format 0013. but when i run this code, the number will display … | |
Hi i am intrested in learning assembly for the reasons of getting to desgine all the workings of my program, decide precisely all the binary code of it. I am stupped to find a book or some place that i can learn how to do graphics with assembly. I need … | |
Hello everyone, I'm a student in my 4th year and i need a project idea that i can do for my Bsc.Computer Science, a project that is innovative and at the same time helpful to the society. I have a programming background in Java and Php. Kindly if any one … | |
can we find a particular image whether exiting or not within a video file.......... i.e imagine i've a picture of a particular person and a video file....and i've to find whether that person in the picture exits or not somewhere within that video file........... | |
hi all i tried one quiz in that i got question [CODE]Given: 1. public class Blip { 2. protected int blipvert(int x) { return 0; } 3. } 4. class Vert extends Blip { 5. // insert code here 6. } Which methods, inserted independently at line 5, will compile? … | |
hi am making project..i have entered the record in 8 columns of table using jdbc and 9th column is automatically icremented as primary..so after putting the record and executin query i want to check primary no which i get..i want to show it in text box..what can be the query...?? … | |
Hello There, I have a code for validation in a form in Html. The javascript works perfectly in IE, but doesnt work in firefox. The code is as follows: [CODE] <script type="text/javascript"> function Validate_contact() { var status; var err=''; if(document.getElementById('EFirstname').value == '') { err+='Please Enter Your First Name'; err+='\n'; status … | |
Ummm hi, Ive been having some problems with a program ive been working on. I want to insert a new value in a column in a table from a calculation i get and replace the original value. Heres the part of the code: private void button11_Click(object sender, EventArgs e) { … | |
Can enybody help me to do this? I used NetworkInterface and also Ipv4InterfaceStatistics. | |
I have some code that I use to display random images, which it draws from a list of possibilities. My problem is that I want to be able to echo the name of the randomized image as text below it. If someone could help me figure out how to do … | |
Is 2n+constant a good big o notation for a sorting algorithm? I have an assignment in a comp sci class to develop the fastest sort possible and found this to be the big o notation for my algorithm. The constant is based off the highest value in the sort. | |
What is Big O notation? Do you use it? I missed this university class I guess :D Does anyone use it and give some real life examples of where they used it? | |
I'm really confused as to how to set up this program. The program is to have a function "trap", so I'm guessing that means I have to include a function that solves the integral before my main function? [CODE] #include <stdio.h> #include <math.h> double f(double x) { return exp(-x*x); } … | |
hey! so i have to write a code that generates a number from 25-100 (x) and this will be the index of my array. i then need to x numbers from 1-1000 and store them as the element of my array. that is the first function. in the second function … | |
so i have this program written and i am getting a seg fault and the stack said in operator<<. I have no idea how to fix this...It is due in thirty minutes if someone can please help me asap. Here is where i think the problem lies: [CODE]#include <iostream> #include … | |
hello, i want an algorithm coding the algorithm is [ADD A NODE IN DOUBLE LINK LIST] the algorithm is follow. instwl( info,forw,back,start,avail,locA,locB,item) 1- if avail=NULL then write overflow and exit. 2- [remove node from avail list and copy new data into node] set new=avail avail=forw[avail] info[new]=item 3- [insert node into … | |
hey guys, i have quiet a number of .css and .js files on my website <head></head> pages. how do i compress them with gzip? | |
how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site. | |
[CODE]private double convertLiquid (double none2 ,char unit2, char amount2) { if (unit == 1) return (amount * 33.8140227); else if (unit == 2) return (amount * 0.001); if (unit == 3) return (amount * 1000); if (unit == 4) return (amount * 0.00852167911); if (unit == 5) return (amount * … | |
In the User defined function sum(), i am getting the Lvalue required error, can you please tell me why? [CODE]#include<iostream.h> #include<conio.h> #include<math.h> int num,digit,sum1,p; int sqlarge(int &a, int &b, int t=0) { if(a>b) { t=a; a=pow(t,2); return a; } if(a<b) { t=b; b=pow(t,2); return b; } else {cout<<"Both values can … | |
Hi. In my script there are two document.write lines. The problem is that when I call it from my ajax page it replaces the entire body and the page disappears. Is there a way to call this in an ajax page? <script type="text/javascript"> for (var i=0; i<DropTotal; i++){ document.write('<div id="Drop' … | |
Hey so for my lab we were given this code and told to fix it so that each candidate's information is printed on the appropriately colored background. The voting space for sarah is supposed to be on a green background, and the voting space for joe is supposed to be … | |
I need help so that this program decrypts. Can someone take a look and run it I have the following errors. 1>------ Build started: Project: Decryption, Configuration: Debug Win32 ------ 1>Compiling... 1>Decryption.cpp 1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(18) : error C2059: syntax error : '}' 1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(31) : error C2679: binary '=' : no operator found … | |
Can someone explain why my function is not working? Description: ToggleFrame(TagID, FrameID).. Given those two, get the two elements.. If the iframe is showing, hide the tagID element.. if the tagID element is showing, hide the iframe.. My attempt & failure: [CODE] function ToggleFrame(ID, FrameID){ //Given the tag, show/hide it.. … | |
Please Help Me Out : I want to compare some condition like (check the user id exist in database or not)Trough Jquery, If it lie it show error image else it show the confirmed image! Any One help me out! ![]() |
The End.