199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ushananthini

create a project that generates 5 random integers from 100-999. store them into an array. Re-display the numbers in a list box. calculate the sum and product of the 5 numbers and display them in label. use procedures and functions.

Member Avatar for nmaillet
0
126
Member Avatar for TrustyTony

Now that MITx first test is over, I got feeling that this one task requested for generate and test solution is begging also for less efficient recursive solution as it is so simple. Here it is! Single liner aproved by the released grader! If you wander if you are able …

0
314
Member Avatar for daniel36

I need to display a large text into starting line of the text and ...............then.please help me.

Member Avatar for Bachu
0
110
Member Avatar for branding4you

Hi I have code I use to look up data from mysql, then dispaly in text boxes. For some reason ALL my data drops the words and spaces Example: if a supplier name is "DyFin (Pty) Ltd" the text box only displayes "DyFin" Example: If My phone numbers are "0860 …

Member Avatar for branding4you
0
221
Member Avatar for yamna1

I need help in my home work urgent. Write a program in C++ which asks user to enter two binary numbers. Store these two numbers in two different stack variables (objects) bit by bit and calculate its sum and store it in another stack variable and display its sum. Solution …

Member Avatar for yamna1
0
229
Member Avatar for jemz

Hi, is it possible to code column header in listview during run time? can you please give me some idea on this.Thank you in advance.

Member Avatar for jemz
0
1K
Member Avatar for remz1001

hi... When trying to start up tomcat service in xampp 1.7.7 or earlier, it may not be able to startup properly. Following are the message I noticed when trying to execute it: i am getting an error [XAMPP]: Searching JDK HOME with reg query … Error: The system was unable …

Member Avatar for subramanya.vl
0
193
Member Avatar for jspence29

So you guys were so helpful yesterday that I thought I would ask another question. There is unnecissary white space on the right side of the page, you can't see it until you scroll over to the right, But I have no Idea why it is there. My website is …

Member Avatar for adam.adamski.96155
0
176
Member Avatar for amith_ami

hi all, pls help me... im just a beginner in php... there is a problem with my code. when i give one term for searching it works, but when its two shows an error message like this Invalid SQL: SELECT * FROM tbl_candidate WHERE key_skills LIKE '%php%' OR key_skills LIKE …

Member Avatar for amith_ami
0
210
Member Avatar for asif49

The above pattern is supposed to be used as a workaround to avoid form resubmission, I.E If some data is entered into a form on page A, posted to page B and validated + saved on page B. Then if the page is refreshed, the browser will show an error …

Member Avatar for diafol
0
361
Member Avatar for AmieCutie

Below you will find my code, it's not it all in it's entirety, but shows what's important. I have some custom functions that are being used just to note out. What I have my code doing is searching a MySQL table and displaying all of the results based on the …

Member Avatar for diafol
0
174
Member Avatar for sarah.mathieson.7

I'm not sure if this is a duplicate question, so if it is, please feel free to direct me in the proper place, but I couldn't find an answer to my question. I am currently trying to switch from using an array to a linked list. (This is for an …

Member Avatar for Ancient Dragon
0
203
Member Avatar for Tinnin

Hi all. I'm starting to learn a bit about template functions and I have a question regarding declaration in a header file. My code is as follows (from "Accelerated C++, chapter 8"): #include "Split_Template_func.h" #include <iostream> #include <iterator> using std::cout; using std::cin; using std::string; using std::getline; using std::ostream_iterator; int main() …

Member Avatar for Tinnin
0
11K
Member Avatar for caloy007

Hi everyone! I am pretty much new to Oracle it has only been 3 months or so I guess and I have a bit of a problem now. I'm running a query which will display the downtime of a machine. It will display the Start/End Time and its difference. The …

Member Avatar for caloy007
0
206
Member Avatar for Behseini

Hi Everyone, I am trying to generate a function to enable users to insert table into a richTextBox winForm control.What I have is a Insert button which is fiering InsertForm winForm.the form contains two textboxes as txtRow and txtCol and a btnInsert. Now ,I would like to know is there …

Member Avatar for rajeev_cv_2012
0
197
Member Avatar for rooparaj

Hi everybody, I am facing problem in javascript. I got javascript code for menu creation. That code is saved as menu.jc file. My Doubts are: 1) How do i use in my mainpage.aspx? 2) How do i create dll file for this javascipt file so that i can use it …

Member Avatar for aaaa222
0
246
Member Avatar for bunik34

Hello again. Generating item codes for my inventory system became complex when the panel said that this must be the format of the generated ID number: "CATEGORY-ITEMNAME-ITEMINDEX" For example: School Supplies - Coupon Bond short- Second Item in the database would result to an item ID : SCS-CBS-002. Advanced thank …

Member Avatar for jlockem
0
271
Member Avatar for graizik

Hello, I found following code on the Internet: <?php class A { protected function __construct() { echo __CLASS__; } public static function getInstance() { $s= new static(); } } class B extends A { protected function __construct() { echo __CLASS__; } } class C extends B { protected function __construct() …

Member Avatar for veedeoo
0
190
Member Avatar for az-mi51

I have to make a multiplication table. The program works correctly but I need to put the numbers multiplied in the array also. EX. x 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 answers 2 3 4 5 6 7 8 9 10 …

Member Avatar for faroukmuhammad
0
122
Member Avatar for UNDER-18 FG

I'm trying to write a coding that will be able to determine if a number keyed-in is a Prime Number or not. Here's what I did: public class PrimeNumber { public static void main(String args[]) { int n; Scanner Prime = new Scanner(System.in); System.out.println(" Please enter a number: "); n …

Member Avatar for jalpesh_007
0
703
Member Avatar for jalpesh_007

I have stuck with one problem. I have created my own program that will work. In program there are two for loop. Now my problem is for(int i=0;i<q;i++) { for(int r=0;r<q;r++) { /*perform some kind of operations returns one integer value.*/ /*here q=4 so first time r loop execute 4 …

Member Avatar for jalpesh_007
0
186
Member Avatar for samii1017

So for my program, I have to allow the user to enter a character then ask them how many of that character they want. I'm saving the character and the quantity into two different arrays. I've attached my code but when I go to display the array, it doesn't print …

Member Avatar for faroukmuhammad
0
918
Member Avatar for cussel

>hey guys, i want to find duo array 2 D with same value at least 2 > value between $data1 and $data2, and when duo array 2 D founded save in array 3D > then duo array 2 D with same value founded **delete** > from **$data1 and $data2** purpose …

Member Avatar for cussel
0
273
Member Avatar for slappy5star

I am having problems comparing the arrays in the following code. I commented where I "think" the problem is. Any help would be appreciated. #include <iostream> #include <conio.h> #include <cctype> using namespace std; const int NUM_QUESTIONS = 20; class TestGrader { private: char correctAnswers[NUM_QUESTIONS]; char studentAnswers[NUM_QUESTIONS]; public: void setKey (); …

Member Avatar for Daniel BE
0
268
Member Avatar for cguan_77

hi guys, got this code from this previous thread: http://www.daniweb.com/web-deveelopment/javascript-dhtml-ajax/threads/416185/adding-rows-to-table-per-click-manipulating-name-field-thereby the code works fine but how do i modify the code so I will be able to get all the drop down data selected by the user? let's say there were 5 drop downs that were created and selected how …

Member Avatar for cguan_77
0
260
Member Avatar for ikra61893

ok so for this program i have to make a main program that calls four different functions. the introduction function doesn't return anything and it only prints what the program will do. the second function aretheyvalid receives three integers that represent three test scores. the third function is the one …

Member Avatar for ikra61893
0
156
Member Avatar for khair.ullah

Thank all you for last replies here i hve a problem in my project . I have 2 form . In frm1 i have a datagridview which contain all information of student i.e ID, NAME , CLASS No. , ADDRESS , Department and course . In this form i hve …

Member Avatar for khair.ullah
0
1K
Member Avatar for apayn

Hey guys Andrew here, with another problem. My while loop is made so that it is on, or off, simple eh? That's what I thought, but it doesn't seem to be acting as I would expect it to! The problem is, when I want it to loop, in testing it …

Member Avatar for M.S.
0
300
Member Avatar for Transcendent

I'm trying to install GCC 4.7.2 for windows and linux but I can't seem to do. Anybody know how I can do that. I have eclipse Juno

Member Avatar for mike_2000_17
0
1K
Member Avatar for lulu79

Hi, I have a bar chart to display information. I also have a vertical line indicate the limit of Y-value. For example, I set the limit to 25. So now I want the color of column bar to change to red color if the column exceed the limit. I tried …

Member Avatar for lulu79
0
2K
Member Avatar for ganges

Hi, how to pass values in mysql table from html form. give me simple examples. thanking you.

Member Avatar for ganges
0
95
Member Avatar for GlenRogers

Hi all, this is really geting to me now, I jsut keep going round in circles and getting nowhere. I have a form with multiple radio buttons, each button represents a category of reptile. When you choose one of the radio buttons you are taken to a page for that …

Member Avatar for GlenRogers
0
171
Member Avatar for 404notfound

When reading from an access database, my code is like this: Private Sub PaidNavigateRecords() If ds.Tables("Paid").Rows(inc).Item(1) <> "" Then txtRanch.Text = ds.Tables("Paid").Rows(inc).Item(1) Else txtRanch.Text = "" End If If IsDate(ds.Tables("Paid").Rows(inc).Item(2)) = True Then txtDate.Text = ds.Tables("Paid").Rows(inc).Item(2) Else txtDate.Text = "" End If If ds.Tables("Paid").Rows(inc).Item(3) <> 0 Then txtInvoice.Text = ds.Tables("Paid").Rows(inc).Item(3) …

Member Avatar for 404notfound
0
145
Member Avatar for TexasJr

I'm writing a program for my C++ class, this is a short clip of it: for(customer = 1; customer <= 5; customer++) { customer_Num[customer][2] = rand() % 999 + 1; // Receipt number cout << "Customer Name:" << endl; getline(cin,customer_Non[customer][1]); cout << "Customer's address:" << endl; getline(cin,customer_Non[customer][2]); cout << "Customer's …

Member Avatar for TexasJr
0
126
Member Avatar for xikhari.some1behindu

I need help with this http://codepad.org/FNUci22s I am posting the ling of code pad because it has a way to execute it, so long story short. I use two different functions seno, sen (both for sin). When using the printf and adressing both to compare results I get from the …

Member Avatar for xikhari.some1behindu
0
271
Member Avatar for TeaAnyOne

This is some code I have made to count the most occuring vowels within the inputted message. Everytime I run it, it prints out it out 5 times, how can I fix this? I also want it to display a message when there is no vowel entered. Maybe someone can …

Member Avatar for vegaseat
0
173
Member Avatar for Tomi1988

Hi! Which way is the more effective? Is there any difference? If I give value to a variable in the class public class A{ int a = 3; } or if I give value to a variable in the constructor of the class public class A{ int a; public A(){a=3;} …

Member Avatar for ObSys
0
94
Member Avatar for jspence29

I had just began building a website. I don't know what is wrong with it, it was working about two seconds ago then I made a minor change and refreshed the website and the css completely stopped working. Here's my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for JorgeM
0
171
Member Avatar for willygstyle

Ok so I have my .dll working correctly however I can't get my hook to load properly. When I use GetLastError() to figure out what went wrong I get error code 1428. ERROR_HOOK_NEEDS_HMOD 1428 (0x594) Cannot set nonlocal hook without a module handle. I've seen a ton of examples that …

0
290
Member Avatar for pjh-10

not sure its the right place to write this here or not,but i'll try my luck. been given an example of plotting a graph,writing this into the command prompt : L = 31; nn = 0:(L-1); imp = zeros(L,1); imp(1) = 1; stem(nn,imp) this gives a graphic display. then i …

Member Avatar for Taywin
0
139
Member Avatar for gamebits

I'm using a "simple" script that I downloaded for an image galery, since it was a free script there is no support and although the script works great I need a simple modification so people can edit the information they provided with the picture they uploaded. I manage to add …

Member Avatar for gamebits
0
778
Member Avatar for deadsolo

Hi, I need help creating or manipulationg my current regex that will grab two numbers from a line, while excluding a specific number. Here is an example of what the line will look like: "In our tests, downloads on port 6881 achieved up to 12059 Kbps while downloads on port …

Member Avatar for deadsolo
0
183
Member Avatar for angelali2013

Hi, I am new here. Well, I made a rich text editor using IFrame and document.execcomand. All is ok, except I want to add something like displaying the HTML code of the text written in the IFrame to a div or a textarea. For example, if someone has typed "Hello", …

Member Avatar for angelali2013
0
249
Member Avatar for dinhunzvi

i have two MySQL tables with the following structures CREATE TABLE tbldepartments ( departmentID TINYINT( 2 ) UNSIGNED NOT NULL AUTO_INCREMENT, department VARCHAR( 20 ) UNIQUE NOT NULL, PRIMARY KEY ( departmentID ) ) and CREATE TABLE tblemployees ( employeeID SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT, departmentID TINYINT( 2 …

Member Avatar for dinhunzvi
0
270
Member Avatar for jamesperkins0

Hi guys, i am writing a GUI program that will take a tutor minutes and earings and create an average earnings. My problem is instead of it using what we type in the fields E.g 200 mins and 50 dollars earnt and displaying the average. It shows the default fields. …

Member Avatar for jamesperkins0
0
233
Member Avatar for <M/>

How do I display whatever that gets submitted in a CSV File on an HTML Web Page by pulling it with php... I am kind of lost....?

Member Avatar for LastMitch
0
2K
Member Avatar for king03

hi guys can anyone explain to me what the codes in line 5 and 6 do? How does the WHERE works in those lines? Any explanation would be truly appreciated. Thanks in advance. SELECT LAST_NAME ||', '|| FIRST_NAME AS "NAME" FROM EMPLOYEES E, (SELECT JOB_ID, MAX(SALARY) SALARY FROM EMPLOYEES GROUP …

Member Avatar for BitBlt
0
125
Member Avatar for Dane2259

I'm trying to do a quickSort with a Doubly LinkedList. I can partition the original list into a lower and upper sublist, but have been unsuccessful going any further. Below is the code for the class DoublyLinkedList. The methods that perform the quick sort are at the bottom (partition, recQuickSort, …

Member Avatar for Taywin
0
730
Member Avatar for dylan.lange.16

Hey so i've decided to try out writing some stuff in python after a while. My approach to this probably isn't the most efficient, but i'm sure you guys will see what i'm trying to do. I'm having troubles with the last part of the program with my askForRestart function. …

Member Avatar for woooee
0
118
Member Avatar for bradrick42

I am working on some pre-processing. i have a group of text files whose names are dates (i.e. 20120201). data in each file is organized like this: 20120201_line number field1: 123124235 field2:ergjenrgjnergoiefoiefoenr . . field10:dfgkjndgknrkj 20120201_line number . . . The line number is the only thing that separates the …

Member Avatar for woooee
0
167

The End.