199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lost in Code...

Hello, When I run my code below, it lets me pick a number and seems to go through my first IF statement fine. However, after I get through my first IF, I'm wanting it to then add to my tries so that when I go over 5 or more tries, …

Member Avatar for ChaseVoid
0
121
Member Avatar for JavaFish

Hi I am trying to get to grips with querying an access database and displaying the information. I have started with a coun sql command to just return the number of rows but wanted to display this to the screen but each time it shows as null - there are …

Member Avatar for JavaFish
0
576
Member Avatar for cowboys111

Hi i am writing a program to calculate the area of a shape using functions. I got the program to work fine when there was only one function and one shape however when i added the second one the program will still run both functions. That is even when i …

Member Avatar for ChaseVoid
0
105
Member Avatar for pointers

[COLOR=green]Hi,[/COLOR] [COLOR=green]I am new to C#. I have compiled and executed the following program in Microsofr Visual Studio .NET 2003 .[/COLOR] [COLOR=green][COLOR=green][COLOR=green]using[/COLOR][COLOR=green] System;[/COLOR] [COLOR=green]public[/COLOR][COLOR=green]class[/COLOR][COLOR=green] Enumdemo[/COLOR] { [COLOR=green]enum[/COLOR] Color{ red, blue, black, green } [COLOR=green]public[/COLOR] [COLOR=green]static[/COLOR] [COLOR=green]void[/COLOR] Main([COLOR=green]string[/COLOR][] args) { Color Mycolor; System.Console.Write("Enter the values: 0 for red 1 for blue …

Member Avatar for ChaseVoid
0
150
Member Avatar for baberca

[code] #include<stdio.h> #include<conio.h> #define n 20 main() { int d,p; int b,i,n,bt[20],at[20],num; int arr[20]; clrscr(); printf("ENTER THE NUMBER OF PROCESSES: "); scanf("%d",&n); for(i=0;i<n;i++) { gotoxy(10,5); printf("PROCESS: %d",i+1); gotoxy(25,5); printf("BURST TIME : "); scanf("%d",&bt[d]); gotoxy(50,5); printf("ARRIVAL TIME :"); scanf("%d",&at[p]); } gotoxy(29,20); printf("SELECT ALGORITHM"); gotoxy(29,25); printf("\n[1] - SJF"); gotoxy(29,30); printf("\n[2] - SRTF"); …

Member Avatar for Salem
0
306
Member Avatar for Prozeen

Hi, this is a mathematical question, but I'm doing it in VB so I thought I'd post it here... A person is shown a total of 10 numbers. When a number appears on the screen they have to type that number into a text box and if they get it …

Member Avatar for zmariow
0
2K
Member Avatar for jilshi

i am using jsp to create web site. How can i insert data into database but do not have text box in the web site. i want to have data automatically show in the database without having people key in data from web site. the purpose for doing this is …

Member Avatar for masijade
0
151
Member Avatar for n.aggel

hi, i am reading the book "The c++ standard library -- a tutorial and reference"{N.M.Josuttis} in the beggining of the 6th chapter it says{in regard to container initialization}:: [CODE=c++] std::deque<int> c( (std::istream_iterator<int>(std::cin)), (std::istream_iterator<int>()) );[/CODE]{the weird indentation is on purpose} instead of:: [CODE=c++]std::deque<int> c(std::istream_iterator<int>(std::cin), std::istream_iterator<int>());[/CODE] because [QUOTE="N.M.Josuttis"]In this case, c declares …

Member Avatar for n.aggel
0
114
Member Avatar for aruna_k_2006

[COLOR=green]This is my main window [/COLOR] [COLOR=green]<html>[/COLOR] [COLOR=green]<head>[/COLOR] <SPAN style="COLOR: green">[COLOR=green]<[/COLOR][COLOR=green]script [/COLOR][COLOR=green]language[/COLOR][COLOR=green]=[/COLOR][COLOR=green]javascript[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]function [/COLOR][COLOR=green]PopWindow(URL,height,width)[/COLOR] [COLOR=green]{[/COLOR] [COLOR=green]// alert("in popwindow");[/COLOR] [COLOR=green]window.open(URL,height+width,[/COLOR][COLOR=green]"width="[/COLOR][COLOR=green]+width+[/COLOR][COLOR=green]",height="[/COLOR][COLOR=green]+height+[/COLOR][COLOR=green]",resize=no,resizable=no,scrollbars=yes,menubar=no,status=no"[/COLOR][COLOR=green]);[/COLOR] window.focus(); [COLOR=green]}[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]script[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]head[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]body[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<%[/COLOR] String StudentID=request.getParameter([COLOR=green]"id2"[/COLOR]); System.out.println(StudentID); [COLOR=green]%>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]form [/COLOR][COLOR=green]method[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"Post" [/COLOR][COLOR=green]name[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"f1" [/COLOR][COLOR=green]action[/COLOR][COLOR=green]=[/COLOR][COLOR=green]""[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<table [/COLOR][COLOR=green]border[/COLOR][COLOR=green]=[/COLOR][COLOR=green]0 [/COLOR][COLOR=green]align[/COLOR][COLOR=green]=[/COLOR][COLOR=green]left[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]tr[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]<[/COLOR][COLOR=green]td [/COLOR][COLOR=green]align[/COLOR][COLOR=green]=[/COLOR][COLOR=green]left[/COLOR][COLOR=green]><[/COLOR][COLOR=green]b[/COLOR][COLOR=green]><[/COLOR][COLOR=green]font [/COLOR][COLOR=green]color[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"maroon" [/COLOR][COLOR=green]size[/COLOR][COLOR=green]=[/COLOR][COLOR=green]3[/COLOR][COLOR=green]>[/COLOR][COLOR=green]&nbsp;[/COLOR][COLOR=green]|[/COLOR][COLOR=green]&nbsp;[/COLOR][COLOR=green]</[/COLOR][COLOR=green]font[/COLOR][COLOR=green]></[/COLOR][COLOR=green]b[/COLOR][COLOR=green]>[/COLOR][COLOR=green]Student ID[/COLOR][COLOR=green]</[/COLOR][COLOR=green]td[/COLOR][COLOR=green]><[/COLOR][COLOR=green]td[/COLOR][COLOR=green]><[/COLOR][COLOR=green]input [/COLOR][COLOR=green]type[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"text" [/COLOR][COLOR=green]name[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"StudentID" [/COLOR][COLOR=green]value[/COLOR][COLOR=green]="[/COLOR][COLOR=green]<%[/COLOR][COLOR=green]StudentID[/COLOR][COLOR=green]%>[/COLOR][COLOR=green]" [/COLOR][COLOR=green]size[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"20"[/COLOR][COLOR=green]>[/COLOR][COLOR=green]&nbsp;&nbsp;&nbsp;&nbsp;[/COLOR][COLOR=green]<[/COLOR][COLOR=green]A [/COLOR][COLOR=green]HREF[/COLOR][COLOR=green]=[/COLOR][COLOR=green]Javascript:PopWindow([/COLOR][COLOR=green]"[/COLOR][COLOR=green][URL="http://127.0.0.1:8081/I_Campus/PopUp?EI=<%=EI%>&CC=<%=CC%>&GC=<%=GC%>&fname=Display"][COLOR=green]><[/COLOR][COLOR=green]img[/URL] [/COLOR][COLOR=green]src[/COLOR][COLOR=green]=[/COLOR][COLOR=green]"images/search.gif" [/COLOR][COLOR=green]border[/COLOR][COLOR=green]=[/COLOR][COLOR=green]0[/COLOR][COLOR=green]></[/COLOR][COLOR=green]a[/COLOR][COLOR=green]>[/COLOR][COLOR=green]</[/COLOR][COLOR=green]td[/COLOR][COLOR=green]>[/COLOR] [COLOR=green]</[/COLOR][COLOR=green]tr[/COLOR][COLOR=green]>[/COLOR] …

Member Avatar for peter_budo
0
196
Member Avatar for knvelan
Member Avatar for Exelio

hi all, i have the following xml file. <rss version="2.0" xmlns:media="http://tools.search.yahoo.com/mrss/" > <channel> <title>SWF media</title> <link>http://www.blogdigger.com/media/</link> <description>Recent .swf files found by Blogdigger</description> <item> <title>Dollar Bus Rolls Into Town</title> <link>http://feeds.feedburner.com/Chicagoist?m=1115</link> <description>some description</description> <pubDate>Thu, 23 Mar 2006 14:11:57 EST</pubDate> <enclosure url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/> <media:content url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/> </item> <item> <title>E-mail</title> <link>http://billarnold.typepad.com/poet_in_motion/2006/03/email.html</link> <description>description 2/description> <pubDate>Wed, …

Member Avatar for Exelio
0
188
Member Avatar for sonawane.prakas

I have a table within that i update particular cell and want to store the update value into table after clicking save button My page is JSP page

Member Avatar for hidash_in
0
619
Member Avatar for mragot

HI....to all members of daniweb...I am looking for code of RR Shceduling using JAVA... I am grateful if somebody would like to help me to it...and tanks "nalang daan"!!! from PHillippines

Member Avatar for masijade
0
172
Member Avatar for Qpido

I'm currently making a program that gives the person who uses it information about the costs for a shipment. The transport company changes it numbers quite often, so in Excel the numbers are easier to change. I want to have, let's say, C3 be displayed every time in VB in …

Member Avatar for Qpido
0
168
Member Avatar for kehar

Hi I am using VB6 and Crystal Report 8.5 and Access for programming. When VB form prompts me to enter the month for which report is required and if I enter say [B]January[/B] then the text should appear in the heading of the Report after my text [B]" Expenditure for …

Member Avatar for kehar
0
92
Member Avatar for EnderX

I am working with a delphi form that appears to have a rather interesting problem. I am developing on a laptop sitting at 1920X1200 resolution. On my form, I have a trio of components. One is permanently invisible, and clicked to align/left. The next is permanently visible, and clicked to …

Member Avatar for ExplainThat
0
155
Member Avatar for Rashul

(// See my program below-after the question) The program is supposed to do the following: Repeatedly offer the user the following 10 menu options (they must enter the option number): (1) insert n values in the array, starting with position 1. (2) insert n values immediately after the last entered …

Member Avatar for Rashul
0
163
Member Avatar for ttamilvanan81

Hai everyone, I am working with one Image/Video Application using JSP. In my jsp i need to displaying and playing a video file. I am using the following Embed tag, for the video file. [code] <OBJECT ID="mediaPlayer" CLASSID= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE= "[URL]http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701[/URL]" TYPE="application/x-oleobject" STANDBY="Loading media player components..." HEIGHT="200" WIDTH="250"> <PARAM NAME="showcontrols" …

Member Avatar for ttamilvanan81
0
536
Member Avatar for KimJack

Hi all, Out of curiosity, why does an array start with 0 instead of 1? It would cut down of alot of confusion if it did. Thanks

Member Avatar for KimJack
0
101
Member Avatar for ITapprentice

I'm back and I 've changed my code around a bit. I almost have it compiling except for one error that says there is a syntax error before inFile my struct that will hold my arrays. It's in the second for loop. I think that I have my struct declared …

Member Avatar for Aia
0
117
Member Avatar for othz08

can someone give me the code that will ask the user to enter a 5 numbers and sort the numbers or dsort it pls help me thx^_^

Member Avatar for othz08
0
128
Member Avatar for chaosapostle

Hello. I hope this is the right section to ask this question. I need some help with my coding. I've been working on trying to write a div code so I could modify my myspace profile, because it is a good hands on enviroment for playing with HTML and I …

Member Avatar for MidiMagic
0
101
Member Avatar for geetajlo

Hi can anyone help me tin asp.net. i want to make a sign up form with linking without returning back. if login successfully then go on welcome page otherwise login fails. just help me plzzz.

Member Avatar for SheSaidImaPregy
0
154
Member Avatar for venomlash

How do you define operators in JAVA? (Can you???) [prettyplease] help? [/prettyplease]

Member Avatar for Ezzaral
0
148
Member Avatar for ramirez

Hi all. I have an application were a user fitt (outside the game) a "ship" and after the full fitt he can save that in a doc file. In that file we'll see 4 fields with vari lines in each of them (not the same fitt for all the ships). …

Member Avatar for Puckdropper
0
122
Member Avatar for conan19870619

>>>is there any limit/constraint on the maximum number of nodes that a linked list can have? >>>a linked list does not have to be implmented with a pointer. what else can be implementeation of linked lists? >>>how can a singly linked list be implemented so that insertion requires no test …

Member Avatar for conan19870619
0
136
Member Avatar for jtmcgee

[code=php] if( $rand_num <= $chance ) { //$item_id = mysql_query("SELECT `item` FROM `creatures` WHERE id = '$id_creature'"); $foo =& creature_stats( item, $id_creature ); $item_query = mysql_query("SELECT * FROM items WHERE id = '$foo'") or ('$item_query'); $item = mysql_fetch_array($item_query); echo"You got an ".$item."!"; } [/code] Creature Stats Function: [code=php] function &creature_stats($what_stat, …

Member Avatar for somedude3488
0
162
Member Avatar for gaming_geek

Just for notes, I'm using VisualStudio 2003. I'm working on a program that's supposed to make the Muller-Lyer illusion. I've got all of the coding done, but now when I try to run it all I get is a load of errors. First, it starts to compile the program and …

Member Avatar for Sturm
0
117
Member Avatar for tanha

Hello everybody, I found paging code from [url]www.plus2net.com[/url], but when I implemented there is a problem with $this variable and the error is: "Fatal error: Cannot re-assign $this in C:\wamp\www\Paging\php_paging.php on line 33" This is the code: [CODE]<?php //**************************************************************************** ////////////////////////Downloaded from www.plus2net.com ////////////////////////////////////////// /////////////////////// Visit www.plus2net.com for more such script …

Member Avatar for ShawnCplus
0
352
Member Avatar for limepebblez

Hi people, I'm having a small problem in ASP.NET + Microsoft Access. Here is my problem: 1) I have a table (item_table) with 3 fields 2) f1-ID, f2-Item, f3-Total 2) In my asp page, I am having 1 dropdownlist (DropDownList1) and a button (btn1) 3) DropDownList1 contains values from 0-10. …

Member Avatar for limepebblez
0
74
Member Avatar for SheSaidImaPregy

I am trying to alter some SQL to use parameters. I bypassed this earlier as it was just not working but am now heading back to tidy up. For some reason I cannot get this to work, keep in mind I am using Odbc: [code]SQLString = "SELECT * FROM Stories …

Member Avatar for SheSaidImaPregy
0
94
Member Avatar for Mr.UNOwen

Can someone tell me why jar command is not recognized? I copy and pasted all the solutions I've seen from other websites and none of them work. Here's what I have as of now... PATH: C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Files\gcc\bin;C:\Program Files\Java\jdk1.5_04/bin CLASSPATH: .;C:\Program Files\Java\jre1.6.0_01\lib\ext\QTJava.zip;C:\Program Files\Java\jdk1.5_04\bin Path : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program …

Member Avatar for Ezzaral
0
155
Member Avatar for m_meena

Hi, during the build of my code, i m getting the following error error LNK2001: unresolved external symbol __imp__QueryServiceStatusEx@20 i have included the library file advapi32.lib in project --> settings. but still the error is same. any pointers?? TIA

Member Avatar for toko
0
67
Member Avatar for vinutha1309

Hi I am doing a Messenger Project where i have to add send file feature also without using Internet i am trying through FTP .In control Panel from adminstrative tools i opened IIS in that default FTP->properties->security accounts there is a default password,which i cannot change.So plz help me in …

Member Avatar for jwenting
0
64
Member Avatar for alexasmith

I am in a beginners java class and I have an assignment that is really difficult (for me). the assignment is to prompt the user to enter a person's full name in the order: first middle last. Output will include: the prompt the original name the name in the form …

Member Avatar for peter_budo
0
146
Member Avatar for pprabhakar

i want some information ab function pointers , just how it will work ,addvantages osf function pointers

Member Avatar for Narue
0
107
Member Avatar for volscolts16

In this experiment, people take turns playing and you can delete or add players, Seem to have a couple of issues left, not sure how to work out. One of the problems is the display, the other is a class interface. Need any help or suggestions I can get. Thank …

Member Avatar for Ezzaral
0
291
Member Avatar for restrooms

Pls Help Me On Doing My Project. A Simple Game Using Java And I Need The Program. As Soon As Possible Thanks A Lot For Who Can Help Me.

Member Avatar for Ezzaral
0
77
Member Avatar for dkdeleon68

I need to Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is displayed and the user clicks on the Previous …

Member Avatar for Ezzaral
0
631
Member Avatar for woopsor

I am new to JSP and am having trouble with an if statement. [code=jsp] <c:if test="#{authorizedProduct.product.product.orderMethod}=='H'"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/> </c:if> [/code] The order method does equal H because it will display that if I don't put in inside the if statement. Can someone help me with my if statement syntax …

Member Avatar for woopsor
0
68
Member Avatar for cmymazda

Hello, I am trying to figure out how to correct my errors. I am new at this and this is due today. The actual assignment is .... Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow …

Member Avatar for peter_budo
0
140
Member Avatar for hawisme000

hi there . tried many time on doing the project , the problem is i dnt know how to get a random data on a cell, i need the syntax on the form_load event, ive attached the form im workin with, ive googled for soo many hours but cant find …

Member Avatar for yello
0
127
Member Avatar for louise07

anybody here who could teach me how..or the function on printing an output file in linked list..

Member Avatar for louise07
0
90
Member Avatar for chrismitchel

I am using Visual Web Developer to come up with a VB.NET application. when i try to add a new item to my project, the closest i find to a WinForm is a web form. can some one please help me figure out how i can add a blank WinForm …

Member Avatar for chrismitchel
0
60
Member Avatar for geetajlo

Hi i want to put 4 lines which will appear in a msg box but i can't do it. i have already used "<br />" but it doesn't work. i want the phrase to be one on each line. aneed help plz

Member Avatar for geetajlo
0
99
Member Avatar for koolboy

[code] int main() { cout << "This Program was written by Nehal Shah\n" << endl; int num, total; cout << "Please enter an integer number:\t\t\t"; cin >> num; while ( num < 0 ) { cout << "\t********************************\n"; cout << "\t********** ERROR *************\n"; cout << "\t********************************\n"; cout << " --------------------------------------\n"; …

Member Avatar for ChaseVoid
0
195
Member Avatar for kehar

Hi I have used three combo box in VB 6 form one for selecting date one for month and one for year. If the selection is say 12/07/2007 then I need it to be converted as 12/07/2007 under one field i.e date field of access database. So how can I …

Member Avatar for hopalongcassidy
0
114
Member Avatar for jyovasinedu
Member Avatar for swarnamalya
Member Avatar for stargazr

how to declare dynamic 2 dimensional array in vb with one of the bounds variable .. [code] dim x(1 to i,1 to 4) as variant 'i is a variable [/code]

Member Avatar for shasur
0
396

The End.