199,114 Archived Topics
Remove Filter ![]() | |
What are rules to observer when writting More than one class in single Java file. Let say three classes on the same file Thansk | |
Can anyone tell me how to execute a program like this, it is written, it compiles, my input and output word documents are both up and running and saved. What do I need to do to get my output document to show results from my program? Thanks. | |
Hello all, I have been assigned in my class to come up with a program that is written in c and generates prime numbers from 2 to n. I have coded the problem but i have a problem. Any numbers greater than 6479 will not return the results that I … | |
Hi Guys, For my application i'm trying to generate a datagridview with a comboboxcolumn in it. This combobox I wanna fill with some data from a table in my database. I've figured out how to add items to the combobox but I can't assign a value to it. The combobox … | |
In the following program though most of the working part of the program is commented out, it gives seg fault. reducing the value of MAX to say 10000 removes the seg fault. Why is this happening? it should be only 1 MB only. Is 1 MB too big for an … | |
How can I obtain a value from inside a for loop? I declared the variable in the method and not inside the loop. When I use the same variable in an if statement in the same method however, I get a message saying that the variable has not been initialized. … | |
I have a page on which I have broken it down into several forms, which relate to specific categories applied to an awards contest for students. At the top of the page, I have a select list which, when a category is selected, I want it to show a particular … | |
I was wondering if there was a way to create a PHP Contact Form where the email that is sent can be formatted for html. So that for example the email that is received is formatted like an html page where it contains a background, images & formatted text. I … | |
Let's say there's list of numbers like this saved in a txt file: 4 6 3 4 5 How do I put it into an array? | |
:)Friends. I need some good JQuery PDF ebooks. Please Help me to learn it. Thanks in Advance. | |
I am a beginner with C++ so please excuse my ignorance. I am attempting to pass a dynamically created 2d array to a function. The array the [3]x[variable] array is created like this. [CODE] //Create array for the transformed coords double **transf; transf = new double*[3]; for (int i=0;i<atoms;i++){ cout … | |
<script type="text/javascript"> function play(media){ document.getElementById('mediaplayer').innerHTML= '<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"' 'type="application/x-oleobject" width="320" height="285">' '<param name="showControls" value="false">' '<param name="fileName" value="' media '">' '<embed type="application/x-mplayer2" width="320" height="285"' 'showcontrols="false" src="' media '"><\/embed><\/object>' } </script> <div id="mediaplayer"></div> <ul id="menu"> <li><a onclick="play(this.href);return false" href="">Source 1</a></li> <li><a onclick="play(this.href);return false" href="">Source 2</a></li> <li><a onclick="play(this.href);return false" href="">Source 3</a></li> </ul> I have … | |
I am doing my homework and am having trouble finding the answer to one question. We are supposed to view the code below: Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output … | |
hi there i really need help to write a java program on this i dont understand anything in java plzz i need help. ive put and attachment on so people could have a look at it. thanks [ATTACH]13921[/ATTACH] | |
No matter what I do, I always get the numeric value from the ASCII chart. In this case I get 104, even though I denote Name[2] as a character. [CODE] string Name= "John"; cout << tolower ( char ( Name[2]) ) << endl; [/CODE] | |
Hi guys, I will start by saying what I need my project to do! I have two Datagrids, One grid has all the customers garments on it with style number and contact length. The other grid has the users who have garment issued to them. the style number is in … | |
Hi, I don't know the difference between class variables and instance variables. Can anybody give me an example? Thank you so much:) | |
I am new in VB.NET. Can any tell me how a[U] richtextbox [/U]query MySQL table. i.e select * from table test where name= 'Bowser' then the richtextbox will display the results. Thank you! | |
Last minute attempts to find what I am doing wrong here. I am a beginning Java Programmer, as you will see, and need help understanding why my paint method will not draw onto the panel. So far all I have tried to accomplish is to get the circle object to … | |
if I wanted to do for example this [CODE]class MyClass{ float x,y; void SomeFunction() }; void MyClass::SomeFunction(){ MyClass A = this;//???? } [/CODE] How would I do that? I have virtually no experience with pointers so please help me out. I basically want to make the new class I am … | |
Hi, I am having trouble getting back into a loop after an exception has been caught. This is what the program should do... Write a program that asks the user to input a set of floating-point values. When the user enters a value that is not a number, give the … | |
I am trying to create an anonymous function for onchange event of file field, so that when a file is selected, the covering text field gets that value. I know how to accomplish this by adding onchange="", but I'd prefer not do that. The code that I have almost works, … | |
I have been trying to make a vector class to handle particles in a particle system I am making. The problem I have is when I try to change the dir it does not do what it is supposed to. If I keep pressing up it will just bounce back … | |
I have no clue why this is happening. When I load a certain page on my site, my content loads twice. Basically, my content appears to flash once. I can't figure out what's going on, but it seems to deal with the following code. The page calls urlCheck(). [CODE] // … | |
ey, im looking some code that will open up the browse window so i can open a file for my database i have created thanks :) | |
I'm sorry about posting this again, but as I said I'm on a deadline, and I'm sure there's someone out there that can help me... I am using a dhtml "Image Slideshow", and I was really happy with I customized its layout to my needs, and it runs perfectly on … | |
Hi guys: Let's say somebody may change the extension of a .doc or .mp3 file to .wav, in my application, I want to check to make sure if a file is actually a .wav file. How do I do this in C# ? Please let me know, Thanks, Rocco | |
I have the Python interpreter installed. How do I run the .py file? Please help. | |
A): First I have a company form, which i create a company name and it is saved in a company table..with an autoincrement id as 001( I used Zerofill in it.) Creating the company --> I did this.. B): Then, I have a project form which create project details, in … | |
Hello, I got a problem. Whenever I use rand() and I rerun the source I get the same results each time do u know whats wrong? | |
Hi, I'm trying to make a program that prompts for input a certain number of times, like say the user inputs 5, it will prompt for other input five times. I get the number from the user, but how do I make a for loop that uses that variable instead … | |
hello i am trying to pass a large serialized array (12.4kb) using POST via PHP, but it doesn't get passed completely i only recieve 269 bytes, whats wrong? i am using Godaddy linux shared hosting. | |
Given n points, how can I find how many different lines can be drawn through these points? Thanks | |
I want to include some variables in an HTML table. The variables are stored in phpmyadmin and my site a CartWeaver site, I'm using Dreamweaver. How do I insert variables into separate table cells? I thought this would work but it isn't so: [CODE]<?php echo($row_rsCWResults["product_ShortDescription"] . "<br />") ?>[/CODE] | |
Hi, I am very very new to python and in my application I have to create an XML file. Please any one help on this issue Regards, Naresh | |
Hey all, In computer class as homework we're to create a code to find prime numbers between two values m and n without using an array (since we havn't learned about how to use them yet). so far the code I have is: [code] public static void prime (int m, … | |
Hi guys for my first piece of work on javascript i have to check a few html form questions which is provided. But im pretty clueless on how to do it, or even start it. First of all how would i check like a drop down menu had the right … | |
I have this sprite that I am printing out sf::Image aNimat; if(!aNimat.LoadFromFile("images/fish.png")) std::cout<<"File not found fish.png"<<std::endl; however I want to print it out at random places and in random numbers. Can anyone suggest how I would go about it? | |
hi all PHP masters and newbies i have a question about pagination. this news script displays 4 little images and links at the right side and one large image at the left side. and all the links submitted shows below. i need let at the page displays 8 news with … | |
Hi, I recently came across a code which had the below lines. [code] unsigned int n = 10; n ^= (unsigned int) - 1 ; [/code] It is not clear to me what the second line does. Anyone can help please :) | |
[I]<<thread split>>[/I] Who exactly? The OP left the forum 4 YEARS ago. And there the thread lay, nice and quiet until a day ago. | |
Hi there, I'm trying to return base class pointers from the two classes 'base' and 'child', but I keep on getting a build error of "1 unresolved externals". I think it may be because I am linking all the files together incorrectly. When I comment out the problem line in … | |
[CODE] #include <limits> using namespace std; const double double_nan = numeric_limits<double>::quiet_NaN(); double x = double_nan; if (x == double_nan) cout << "OK" << endl; [/CODE] I dont get OK! Why? | |
I'm working on a bunch of stuff with arrays. At the moment I'm trying to come up with with an insert function that allows me to put as many elements as I want into an array, only keeping the five recent most elements. So I guess what I want to … | |
can someone help me with the uses of programmer define functions? | |
Dear All, Could you tell me what is / are wrong of the coding? Cheers, | |
how can i write a email function using jsp which have reply, forward, address book function like yahoo email function. | |
Here is my assignment: "Define a class for rational numbers. A rational number is a number that can be expressed as the quotient of two integers. For example, ½, ¾, 64/2, and so forth are all rational numbers. (By ½ and so on we mean the every day fraction, not … | |
How do I write a program that takes in some data files that have a bunch of numbers in them and then spits out certain numbers. Which then would be decoded using ascii values. You dont have to write the program, but it would really help full if you could … | |
In english: Retrieve current month's usage (using current date/month), retrieve previous month's usage (using previous date/month), subtract current - previous to get difference. table is water_records id, customer_id, water_records_date, water_records_usage 1, '1', '2010-02-01', '226600' 2, '1', '2010-01-01', '223000' 3, '4', '2010-01-05', '5600' 9, '4', '2010-02-19', '88000' 15, '5', '2010-02-15', '10060' … |
The End.