199,114 Archived Topics
Remove Filter ![]() | |
I'm trying to get a calculation done in a loop but don't want it to print until after all loop are done. It will print but the calculation isn't done. Please help. import java.util.*; public class FlipCoin { public static void main(String[] args) { String choiceString; final String HEADS = … | |
I need help to write this program. Create a data file that contains 15 integers, some positive and some negative. You may create the file in Notepad or any other text editor software. Save the file to the same folder your program will be in. Write a program that reads … | |
I'm getting problems with this code. I'm trying to use OpenAL. A sound SDK developed by the makers of OpenGL. When I use this code: [code=c++] #include <conio.h> #include <stdlib.h> #include <stdio.h> #include <al/al.h> #include <al/alc.h> #include <al/alu.h> #include <al/alut.h> ALuint Buffer; ALuint Source; float SourcePos[]={0.0f,0.0f,0.0f}; float SourceVel[]={0.0f,0.0f,0.0f}; float ListenerPos[]={0.0f,0.0f,0.0f}; … | |
Hi, I had this working but after a few code revisions it has stopped. I am trying to set a variable; lets say I have [ICODE]$var[/ICODE] and am trying to set it to [ICODE]$_SERVER['REMOTE_ADDR'][/ICODE] with the code: [CODE]$var = $_SERVER['REMOTE_ADDR'];[/CODE] When I do this I receive a fatal error in … | |
Please help, this is for an assignment I need to turn in and I'm STUCK! I have no idea how to do this I've done programs but none like this calling differnt functions. this is what is in the data file. 100 Hammer 10 20 10 200 Saw 24 00 … | |
I have an abstract class NetworkTest and some derived classes PingTest, SMTPTest, and POP3Test. Each Test class overrides a Run() function and has it's own private member variables. I have a txt file for each type of test - ping.txt, pop3.txt, smtp.txt that defines the tests that should be run, … | |
Hello! I am having a problem in this program.In it a have to calculate the value of π from the infinite series π=4-4/3+4/5-4/7+4/9-4/11+..... by using this formula i have to print a table that shows the approximate value of π after each of the first 1,000 terms of this series. … | |
i have a code with me [code] import java.applet.*; import java.awt.*; /*<applet code="DialogTester" width=400 height=400></applet>*/ public class DialogTester extends Applet { public void init() { Container container=this.getParent();//this ;why not create object of the class and call the function while(!(container instanceof Frame)) { container=container.getParent(); } Frame parent=(Frame)container; Dialog myDialog=new Dialog(parent,false); myDialog.setLocation(320,240); … | |
Hi all, I am having trouble in finding out how to point to a private member variable. E.g. : [CODE] #include <iostream> using namespace std; class Angry_Dude { private: int health; int attack; } [/CODE] I want to point to the address of health. I know about the homework policy, … | |
hellllloooo again does anyone know how i can tweak my files so that when someone has completed an email form, it stays on the same page and says Thank you - your message has been received etc? at the moment i have my form in my contact us html file, … | |
Hello guys, I actually have 2 questions:- 1- I'm using a form with a POST method. When I click the browser back button (the action of the form is the same page),I get a message from the broswer telling be that it should resend the data again. I'm trying that … | |
Hey, I was working on a program that would ask you a question and you had to put an answer. Well, when I went to compare the answer the user inputs with the right answer, it always comes up wrong and I was wondering if I did these lines of … | |
Hi, i parse 3 html sites and one is in utf-8 encoding, one in iso-859-1 and one in win-1250. This one in utf-8 wors fine when i parse it, also čćšđž works, but other two doesn't work. čćžđšš is corrupted and ? is shown. Can you help me how to … | |
Does the documentation mean what it says? The 3.1 library reference says quopri.encodestring takes a string, but feeding it a string results in an error. [QUOTE]quopri.encodestring(s[, quotetabs]) Like encode(), except that it accepts a source string and returns the corresponding encoded string. [/QUOTE] However, feeding this a str results in … | |
hi there could anyone please tell me how i would change this html to use php to email without opening microsoft outlook please? this is my html [code=html]<FORM encType=text/plain action=mailto:recipient@mydomain.co.uk> <TABLE border=0 cellSpacing=0 cellPadding=4 width="90%"> <TBODY> <TR> <TD width="30%"> <DIV align=right><B><FONT color=#ffffff face=Candara>Name:</FONT></B> </DIV></TD> <TD width="70%"><INPUT name=name> </TD></TR> <TR> <TD> … | |
Hi all, I'm trying to get the megavideo url from this page : [URL="http://www.alloshowtv.com/series/view_s.php?idep=70188&cat=S&id=168"]http://www.alloshowtv.com/series/view_s.php?idep=70188&cat=S&id=168[/URL] In my browser, the link is called "Voir cette vidéo sur MegaVideo" (in french) The problem is thta the link doesn't appear in the HTML source (when i use a httpwebrequest) There's a element called iframe … | |
Hi all, I want the program below to calculate the doctor fee. I am doing it to learn class and inheritance concept. "[B]patient1.output(cout);[/B]" works correctly it gets [B]doctor_hour_fee[/B] from [B]doct1[/B] object. The problem is at [B]patient2.output(cout);[/B]. When I enter patient information it asks me to enter all member variables of … | |
Hello! I am having a problem with my program.I have to write a program that find all pythagorean triples for side1, side2 and hypotenuse all no longer than 500. I have to use a triple-nested for loop that tries all posibilities. I know that the sum of squares to two … | |
Hey- I'm pretty new to python, and have a relatively simple task but I dont know the specifics about how to complete this task. I work in a research lab and part of the lab I'm not usually associated with uses a program that outputs data in a .txt file … | |
hello press save, i got and error and said ExecuteNonQuery: Connection property has not been initialized. Here's the code: [code=vb.net]Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click Dim com As New OleDbCommand com.Connection = con com.CommandText = "insert into Sales values('" & txtSalesId.Text & "','" & … | |
Hello, I need to convert a string variable to BIGINT and store it into the mysql database. I have used settype() but its removing my leading zero in the string. For example, [CODE] $new_id1="12"; $new_id2="345"; $zero="0"; $id="{$zero}{$zero}{$new_id1}{$new_id2}"; settype($id,"float"); echo $id; output: 12345 // Instead of getting 0012345 [/CODE] The above … | |
My friend's mother is looking to start up a Social Networking site. I am a web designer and I am looking to hire a Developer, but I don't know what skills they need (ie. php, ajax, etc., ?) Also, for a developer, roughly how much would they charge for this … | |
[COLOR="Red"]hi everyone im doin a java application that should show the records in tha database on a jtable the code so far is this:[/COLOR] [code] /** * @(#)table.java * * table application * * @author * @version 1.00 2009/8/14 */ /* * SimpleTableDemo.java is a 1.4 application that requires no … | |
Hello. I was wondering if someone here could tell me what is needed to call a win32 function from NASM. I thought I could declare MessageBox for example with EXTERN and then use LINK to link my object module with user32.lib (from visual studio) but I get "unresolved symbol MessageBox" … | |
Hello! I am having a problem with my program.I have to write a program that uses repitition and switch statements to print the song "The Twelve Days of Christmas." One switch statement should be used to print the days (i.e "First","Second" etc). A separate switch statement should be used to … | |
The following fails with an error message about not being able to encode the euro char. It works fine without the €. I have the feeling I'm missing something simple here, but can't figure it out. A fix would be appreciated. I'd like to use this in 2.5.4 and 3.1 … | |
I have a menu and I want when I mouseover them it change their color and style .Are the any suggestion? | |
Hi peoples. I have a button: [icode]<asp:Button ID="nextView4" runat="server" Text="View Summary" CommandName="NextView" />[/icode] ...a label... [icode]<asp:Label ID="LastNameResult" runat="server" Text="">[/icode] ...and a textbox... [icode]<asp:TextBox ID="TextBoxLastName" runat="server"> </asp:TextBox> [/icode] And basically i need to get the text written in the textbox into the label when the button is pressed. As you can … | |
I'm having a bit o a problem with inheritance. The context is this assignment i have in which we have to read from an mp3 file, extacting the informations within it as well as provide other informations not explicitly contained in it (for instance the total audio time of the … | |
Last week for class I wrote the program below. This week part of our assignments are to the program take this program and modify it so the user can display the grade for as many students as they choose. What I am not understanding is, is it asking to be … | |
i'm generating a dynamic form using php. but my problem is how to store each field values into a multidimension array of unknown size. to be clear: 1. i enter the number of entries i wish to submit 2. php will then generate a single form, but with specified number … | |
well can u tell me one more thing related to this.. let i made a list box on a form containig some text.. now when i click on save and print in menu strip n tool strip, so the data related to listbox will automatically save n print..... and also … | |
OKay... I have a newbie question. [code=c++]#include <stdio.h> class Test{ public: Test(int x); }; int Test::Test(int x=0){ } int main(){ Test test(1); printf("%d", test.x); } [/code] My question is how to make the x variable of the constructor public. I have tried to add : [code=c++] public: int x = … | |
I have three textboxes & one button Add & one Gridview.I want to add the textboxes data in Gridview on button click. | |
HI i am working with visualc++08 ,but alas i recently found that my compiler does not have resource pack which enables buttons ,menus etc. on including "resource.h" i get several compiler errors . someone please tell me where could i get the resource.h or a resource pack for the compiler … | |
Hello everyone! The title is actually most of my compiler output! This is my entire compiler output: [CODE] multiple definition of `game' first defined here ld returned 1 exit status C:\Documents and Settings\Benjamin Dahse\Skrivebord\SDL 2D Platform Game\Makefile.win [Build Error] ["2D] Error 1 [/CODE] And now this is all of my … | |
I have a superclass NetworkTest and 3 derived classes PingTest, Pop3Test, SMTPTest. I want to create a big list of all the tests, like this: [code] Dim Tests As New List(Of NetworkTest) Dim PingTests As List(Of PingTest) = ReadPingTestsFromFile(PingFile) Tests.AddRange(PingTests) Dim Pop3TestResults As List(Of Pop3Test) = ReadPOP3TestsFromFile(POP3File) Tests.AddRange(Pop3TestResults) Dim SMPTTests … | |
i extraction the files download from [URL="http://www.daniweb.com/forums/thread141776.html"]here[/URL] ,but i encounter problem after i key in username and password from index.jsp. "HTTP Status 404 - /daniwebtutorial/controller/login type Status report message /daniwebtutorial/controller/login description The requested resource (/daniwebtutorial/controller/login) is not available. Apache Tomcat/6.0.18" Ver. Tomcat : Tomcat 6.0 paths to java :C:\Program Files\Java\jdk1.6.0_12\bin; … | |
At the moment I am currently working on a program (for school) that saves and reads CD album information from a file (pre-made). The information that can be saved (and read) is the album title, the artist, the recording group, the genre, the date purchased (in the DD/MM/YYYY format) and … | |
Hi guys, I have a script here which works good in sending. Cuz im making a form in HTML that verifies through the PHP the message is sending but its sending me blank contents here is my code: [code] <? function mails($string) { if(eregi("@",$string)) return $string; $string = str_replace ('!!!^', … | |
[QUOTE=nunos;949210]Hi I would like to know if there is any way to obtain a float result from a division between two integers other than using "from __future__ import division"? I am not looking for the .0 'trick'. Example 4/5.0 = 0.8. I want to be able to do 4/5 = … | |
Can you program an os in java with a kernel and bootloader written in assembly or c++ or something? | |
Hi everyone! I have an application in C#, that at some point calls a [code=c#] Microsoft.Office.Interop.Word._Application [/code] Problem is that when that point is reached, it takes ages to load the word app. I thought of creating a thread at the beginning of the program, so that the word app … | |
[code=c] #include<stdio.h> #include<conio.h> typedef struct { int rno; char name[10]; float marks; }stu; stu stu3; void getf(stu * stutmp); void show(stu * stutmp); void main() { clrscr(); getf(&stu3); show(&stu3); getch(); } void getf(stu *stutmp) { scanf(" %d",&stutmp->rno); printf("%d\n",stutmp->rno); scanf(" %s",stutmp->name); printf("%s\n",stutmp->name); scanf(" %f",&stutmp->marks); printf("%f\n",stutmp->marks); getch(); } void show(stu * stutmp) … | |
I have been trying to learn java for a while but i cannot find out where to start can someone please help me?? I am Trying to learn as fast as possible . I have hosted a world of warcraft private server... Learned some div, css and html and i … | |
I'm trying to track all changes made to a PHP variable. The variable can be an object or array. For example it looks something like: [CODE]$object = array('a', 'b');[/CODE] This object is then persisted to storage using an object-cache. When php script runs again. So when the script runs the … | |
Hi, I have been using asp.net for a short period of time now and really enjoy the functionality offered by visual studio. However I see there is no automated way of generating a search of a datagrid. What i want to do is simple take the string from a textbot … | |
I have two textboxes textbox1 & textbox2..I use compare validator,Suppose I enter 12992 in textbox1 & textbox2 text is left blank,& when i click on button, then y the page is postback.Cz page is not postback,untill all the validators are satisfied!!!!!!!!!!! | |
Is there an easier way to understand what this is doing step by step? I get very confused here, and I wonder if any of you fine people have a trick for breaking this down. I really want to get this, and understand the pattern, but what happens in the … | |
Hello, I am not getting this sorting in python 3 with a key. If I don't use the key I get: [CODE] sorted_ent_list = entry_list.sort() TypeError: unorderable types: entry_T() < entry_T() [/CODE] If I do use a member function to return private variable from entry_T class, then it says [CODE] … |
The End.