199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for UZU309

Hello all, I am trying to figure out how to make my program do the following(it's a table): The user enters a beginning amount and interest rate. The year, beginning amount, interest and end amount are all supposed to keep increasing until the end amount is doubled of the beginning …

0
66
Member Avatar for nukabolhi

I tried lot of way to pass the checkbox values from page 1 to page 2. But I only get successes on fruit id, how can pass the fruit charges. [CODE] // how can I pass room charges"$result[room_charges]" to page 2 // page 1 $sql=mysql_query("select * from fruit"); while ($result …

Member Avatar for nukabolhi
0
145
Member Avatar for watery87

Hi guys, this program is suppose to ask user input for up to 10 book titles and date published using classes. However im having trouble with a certain part of the output. My coding as follows [code] #include <iostream> #include <string> #include <sstream> using namespace std; class bookInput { private: …

Member Avatar for Unimportant
0
191
Member Avatar for WaleedaaN

hi dear,,, i use this code facebox : [url]http://chriswanstrath.com/facebox/[/url] now i have first_page.html [CODE] example id: <?php $id = 1; //// 1 for michal jakson ?> <a href=\"page/play.php?id=$id\" rel=\"facebox\">Play music <a> [/CODE] now in play.php [CODE] <?php $song = "mj.mp3"; /// all my songs is mp3 ?> <center> <table border="0" …

Member Avatar for WaleedaaN
0
135
Member Avatar for tgreer

I'm working with C#, and Adobe Acrobat 6.0 Professional. Acrobat exposes a COM Automation server with a few top-level objects. It's easy enough to create instances of those objects, by getting their Type via the .GetTypeFromProgID() method, and then using Activator.CreateInstance(). [code] // Create an Acrobat Application object Type AcrobatAppType; …

Member Avatar for jordonsc
0
2K
Member Avatar for Anuradha Mandal
Member Avatar for daviddoria
0
256
Member Avatar for Nathaniel10

I am trying to do an exercise from Stroustup's book. The task is to create an array of 7 ints, assign its address to another variable, then print out the array value and the address. My code is below. [code] int main () { int p0[7] = {0, 0, 0, …

Member Avatar for Nathaniel10
0
86
Member Avatar for bonucci

Hi guys, nice being a part of this community, sorry for my english if some sentences doesnt make much sense. Well, my question is i have a file, i liked to make a script that for example, in 1 or 2 hours would get the txt file where its located …

Member Avatar for Unimportant
0
104
Member Avatar for krosty4782

Hi all. Im having a problem with my project. I need that my socket recive multiple conections from differents pcs. Example: I have my socket, it is listening, when a pc connect to its, it stop listen, so there come the second computer trying to connect, and this computer cant …

Member Avatar for krosty4782
0
179
Member Avatar for athar89

Hi guys, can anyone suggest an alternative method to splitting an integer into separate digits besides using the modulus"%" and division"/" technique or using itoa() or such functions to covert it to a string and then split it. i want to do it without the aid of STL or any …

Member Avatar for mrnutty
0
449
Member Avatar for eswar.aspire

hello, I am new to php and apache..any help is appreciated. I am designing a music website..I am designed the music player with flash.I have xml file like this where my flash player play the songs from the url..I have a folder named songs. <song> <track>Princess Song</track> <artist>Artist Two</artist> <url>songs/princess.mp3</url> …

Member Avatar for eswar.aspire
0
1K
Member Avatar for kra9853

I need help rewriting my if-else statements into a switch statement, [CODE]//equations for final grade LGT=(LG1+LG2+LG3+LG4)/40.*.40*100; MTPG=MTP*.4; MTEG=(MTE/55.)*.20*100; sum=LGT+MTPG+MTEG; if(sum>95) //if-else statements, determines final grade letter='A'; else if(sum>85) letter='B'; else if(sum>75) letter='C'; else if(sum>65) letter='D'; else letter='F'; cout<<"final grade is: "<<letter<<endl;[/CODE] also i need to somehow get my switch statement …

Member Avatar for Unimportant
0
239
Member Avatar for kra9853

How do use the pow function with variables? i.e. [CODE]//equations for problem 9 page 99 part b cT=(hT)/2; iT=(base*(hT*hT*hT))/12; LT=(sT*iT)/(8*cT);[/CODE] *math.h file in program how would i raise "hT" to the 3 power in correct c++ syntax?

Member Avatar for jonsca
0
79
Member Avatar for sakurayana

hye friends..... i need your help....i want to multiply 2 data.....the price from the database and the quantity from the textbox.....the total is in the textbox also.it should be like this price * quantity = total....so,i dont know how to do it....i've tried many ways but it stil error...by the …

Member Avatar for kumar169
0
128
Member Avatar for devesh2222
Member Avatar for mybluehair

I've got a c++ game I'm working on, and I need it to play some music in the background while the user is playing. I looked up how to use PlaySound() and put it in my program. The .wav file loads and plays perfectly, but at the same time, doesn't …

Member Avatar for Unimportant
0
173
Member Avatar for myk45

Hello. i was trying to solve this problem. [B]Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it.[/B] Well, what i did is, use an array called present, to flag the elements ie: [CODE] for (i = …

Member Avatar for myk45
0
102
Member Avatar for Clawsy

Hello, I manipulate XML with jQuery with no problem in all browseres but not in Internet Explorer. I serched bug-fix and I found "metadata.js" but still not working in my Internet Explorer 7 :sad: . Does anyone now a fix for this problem? It's just too nice to manipulate XML …

Member Avatar for anonymous2010
0
272
Member Avatar for madawa123

Hi guys , I have a number format like nn.nn.nn and nn.nn. I want to write a regex t check either one of them exist or not. I wrote this [CODE]^(\d\d).(\d\d)$[/CODE] but it only applies to nn.nn. Since i'm not ood in regex. i couldnt think a way to check …

Member Avatar for nick.crane
0
86
Member Avatar for pstrohma

I'm using VC++ 10.0 Express to create an app that will find all visible drives (C:, USB drives, Memory Sticks, Lettered network drives, etc.) and populate a checked list box with those available drive letters. The app currently is loading the prefab list of A: through Z:, with the eventual …

Member Avatar for pstrohma
0
518
Member Avatar for vedmack

Hi I'm creating a popup to display a loading message, inside this popup i placed an animated gif... the problem is that the gif is not being animated (it is an animated gif...) , its is being shown but without the animation... This is the code: [CODE]oPopupLoading = window.createPopup(); var …

Member Avatar for Airshow
0
115
Member Avatar for darma001

Dear friends, I am a new programmer and i have a task to make a phonebook with python. Please help me to finish my task. The program should repeatedly ask the user for input. Each primary input is one of the words “help”, “lookup”, “enter”, “remove”, and “quit”. If the …

Member Avatar for ultimatebuster
0
2K
Member Avatar for phillytennisguy

I've done this to play a song that allows you to select instruments. Can anyone tell me why this is hanging? [icode] .data instrumentPrompt:.asciiz "Select instrument (piano,strings,or guitar): " octavePrompt: .asciiz "Select octave (lo,med,or hi): " msg2:.asciiz "\nInvalid instrument" msg3:.asciiz "\nInvalid octave" instrumentspace: .space 20 octavespace: .space 20 instrpiano: .asciiz …

Member Avatar for phillytennisguy
0
533
Member Avatar for glenak

I'm using visual studio 2010 and even though I'm not new to VB.NET I still want to get the best possible book that can teach me what I need to know. Any suggestions?

Member Avatar for glenak
0
169
Member Avatar for EarendurRingern

im making a program that loads a collection of strings from a file. then the user need to search the keyword using a binarysearch, but im using strings in my program, how to make the program using array of characters? here's my code, thx before :) [code] #include <iostream> #include …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for Noorul Ariff

Dear... I'm doing a project... I want to have a TOOLBAR in my project in vb.net... I need this in my project... please help me to finish it... Thanks in advance...

Member Avatar for codeorder
0
131
Member Avatar for <?davec

Hi there, I'm using this script for collapsible divs... [url]http://www.harrymaugans.com/2007/03/06/how-to-create-an-animated-sliding-collapsible-div-with-javascript-and-css/[/url] Everything's working fine but I need to add an image for show/hide state. When the div is showing the header displays an "open" arrow...when closed it displays a "closed" arrow. Any help is really appreciated!! Thanks :) Here's the JS... …

Member Avatar for Airshow
0
110
Member Avatar for khurram.1987

I am trying to process data by servlet sended by jsp form using AJAX..... with 'GET' method its working okey ... but using 'POST' method to do this creating problem that [CODE]onreadystatechage[/CODE] condition not exectue at [CODE](xmlhttp.readyState==4 && xmlhttp.status==200)[/CODE]. [CODE]xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 || xmlhttp.status==200) { alert("state=4 OR 200"); //for …

0
101
Member Avatar for diggerman

I'm writing a program that will ask the user for input and then store it into an array until called to the output screen. here is an example of my code so far. I have no idea how to get the input to store in the array. import java.util.Scanner; public …

Member Avatar for diggerman
0
13K
Member Avatar for evertron

This is my first function in python and i need to get item quantity and price loops into the function Processorderitems. I took out the items loop because I was not doing anything with it. I need to return the subtotal and I have a 3% discount for quantities over …

Member Avatar for woooee
0
88
Member Avatar for matkod

hi, I'm creating a game with pygame and i want to create a matrix that will represent the map(where each tile will be). my pygame code is ok, because if i create the map without loading the tilemap (the matrix file) the game runs ok. that would be good but …

Member Avatar for Gribouillis
0
185
Member Avatar for NoMoreKawasaki

i have to do with my new assignment but the problem is not im don't try to do it at all i've tried it before..the question is to write a c++ program about ask the user an input of a range of numbers.by using the rand() an output of three …

Member Avatar for Unimportant
0
94
Member Avatar for mattyd

Hello. I need some direction for the following problem (I am not sure where to begin my research): I essentially, using PHP and MySQL, allow a user to enter character data into a form, submit the form, and next have this data saved to the database, then a formatted version …

Member Avatar for mattyd
0
777
Member Avatar for kezkez

new to ArrayList and was wondering what I am doing wrong. I keep getting a null pointer exception when trying to addRecord... [CODE] import java.util.*; public class StudentDB { private List<String> studentDB; public StudentDB(String db) { List<String> studentDB = new ArrayList <String>(); studentDB.add(""); } public void addRecord(String recordAdd) { studentDB.add(recordAdd); …

Member Avatar for JamesCherrill
0
78
Member Avatar for 9tontruck

Hi, I have some questions about multi pipe. First of all, What I should do is making 6 child processes and each of child process reduces a global value (by 1) which is saved in malloc concurrently until the value reaches 0. All I could find from google was about …

Member Avatar for gerard4143
0
187
Member Avatar for Xufyan

I've coded this program but i am getting this error, EmployeeeMain.java:57: non-static method getdata() cannot be referenced from a s tatic context Manager.getdata(); ^ 1 error I've used the same technique in other program , it is working fine but this program is not working !! Why I am getting …

Member Avatar for JamesCherrill
0
373
Member Avatar for juice33

I have been incurring errors during compile, in which I cannot seem to figure out where the problem relies. I have a class file which is different from the java file. When running the java file im recieving the error of cannot find symbol. {note both of the files are …

Member Avatar for JamesCherrill
0
104
Member Avatar for xzhang

[COLOR=#000000]Write lisp for two functions that manipulate binary search trees. The tree will now be a nested list structure. Inserting 4, 2, 5, 1, 6, 3 should create the list: (4 (2 (1 () ()) (3 () ())) (5 () (6 () ())))[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]1.Write a lisp …

Member Avatar for raymondmak104
0
696
Member Avatar for sciprog1

Hello Members, What is the largest integer that can be stored in Java? Thank you!!

Member Avatar for Dupron
0
156
Member Avatar for moustafa taha

hello every one this program compares loans with various interest rates [CODE] public static void main(String[] args) { Scanner input=new Scanner(System.in); //Prompt the user to enter the loan amount System.out.print("Enter the loan amount:"); int loanAmount=input.nextInt(); //Promp the user to enter the period in number of years System.out.print("Enter number of years:"); …

Member Avatar for Dupron
0
140
Member Avatar for lagvino_els

I'm having trouble with recursion! If I have an array as: int a[] = {1, 2, 3, 4, 5}; and I want to display it on the screen like this: 1 2 3 4 5 I have to write : void PrintData(int a[], int n) to do that and using …

Member Avatar for lagvino_els
0
95
Member Avatar for livesinabox

So my Turbo C doesn't handle errors. And in school we used VC++ but I don't have it at home. So can anyone tell if the code snippets for Queue and Dequeuing a Queue and Pop and Push operations in Stack are right? [CODE]\int queue::dequeue() { try { if(front>rear) throw …

Member Avatar for Ancient Dragon
0
112
Member Avatar for GreaseJunkie

Hi, I could use some help with my code. I am validating a form before processing the PHP to SQL and would like it to let the user know if they have done something wrong before the form can process. This code below changes the bad fields to yellow (BRIEFLY), …

Member Avatar for GreaseJunkie
0
188
Member Avatar for rje7

[code=c] printf("\nn = %*d", 5, 4); [/code] and the output is: [code]n = 4[/code] (yea! there are spaces between = and 4) if i am providing only one argument 5 instead of 5 and 4 i get an error stating too few arguments. What in the world is the "*" …

Member Avatar for rje7
0
239
Member Avatar for Noorul Ariff

Hi friends... My friend s doing an online project... He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site... i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN... I need the logic for this... Help me... Thanks in advance...

Member Avatar for diafol
0
122
Member Avatar for Shiban

[CODE]Guys I've a problem. I'm using access 2007. The file name has an extension .accdb . I created a table called 'login' in the db file named 'MySite_Database.accdb'. My HTML looks like this : [COLOR="Red"]<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="login.aspx.vb" Inherits="login_to_site._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for orclboy
0
1K
Member Avatar for Violet_82

Hi there, I am working on a palindrome program which is here: [CODE]#include <iostream> #include <string> using namespace std ; int main( ) { cout << "Insert the word to test: " ; string word ; string test ; int i ; int j ; cin >> word ; cout …

Member Avatar for Violet_82
0
114
Member Avatar for livesinabox

So I had posted a thread here called "Exception Handling" asking for help excuting this program. Then I discovered CodePad! ( So if any of the moderators could help me delete that thread it will be great! ) So I cleared up most of my errors. And I got an …

Member Avatar for livesinabox
0
148
Member Avatar for trebor09

#include <stdio.h> #define p printf #define s scanf int program,Y,N; do { p("Choose from the following program\n"); p("1 for program no.1"); p("2 for program no.2"); p("3 for program no.3"); p("4 for program no.4"); p("Continue (Y or N)?"); repeat = getchar(); putchar('\n'); }while(repeat == 'Y' || repeat == 'N'); } program1() …

Member Avatar for trebor09
0
263
Member Avatar for qadsia

Hey I am a beginner to c#. I was wondering what you do when you have an array of objects such as: [code] //assume dog is a class that does something private Dog[] dogs; int numberOfDogs = 2; for (int i = 0; i < numberOfDogs; i++) { Console.WriteLine("Please enter …

Member Avatar for christos312
0
92

The End.