199,114 Archived Topics
Remove Filter ![]() | |
I tried to create an array that would increase its own size depending on the user's action. For example: The user types the name of one contestant, the array contains only one element (the name), later the user enters another contestant, the array becomes an array of 2 elements, each … | |
I have a microsoft report viewer generated report with tables and all. I have images also in the report. I have to load a image control with a image at the time of report generation. embedded images seems to be from design time. I found some posts to this subject … | |
Good day! I just need some help/solution on how to prevent the user to resize the form when the width of the form is less than 8,220. Thank you guys for giving time. God bless | |
Hi, I am learning inheritance and abstract base classes. I need to define an abstract base class (ABC) that provides interfaces, and a derived class (directly from the ABC) that provides the implementation. The derived class may need additional member functions and variables (both, public and private). Using a pointer … | |
Hello, I just wanted to say Something about OS I read the one march 2004 topic But if I read a book on C and c++ Will it show me how to do like programs Is there a site that shows me how to make a OS? | |
Hi... I've been trying to edit and rewrite my code for quite a while now but no matter what I do the program only ever reads the last instance of a class that I declare. For example, [CODE]Fraction ni = new Fraction(3,4); System.out.println(Fraction.lcd(ni,new Fraction(3,2)));[/CODE] > This code is supposed to … | |
Hi, Daniweb I am stuck on my hangman game project, I don't know where to start with my last four methods [code] import java.util.*; import java.awt.*; import java.applet.*; import java.io.*; import java.net.*; public class Hangman() { final int maxTries = 5; final int maxWordLen = 20; char secretWord[]; int secretWordLen; … | |
[CODE]<?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name=""; // Database name $tbl_name="user"; // Table name mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $time = time(); $check = $_POST['checkbox']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = mysql_real_escape_string($mypassword); … | |
I Found a problem on my site and when i compare the files on the server with my local files i found that every page (*.js or *.php) has this line on it <?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC or a javascript line so i knew that my site has been hacked.. so 1 … | |
need help, what I need to do is have the status function run before each withdrawl to let the user know if the account is active or inactive. Active = balance > 25, if account balance <25 then no withdrawls can occur. I have the following: #include <iostream> #include "Savings.h" … | |
#include <iostream> #include <iomanip> using namespace std; //global constants const int SIZE = 12; //function prototypes bool getAverageRainFall(double rain[SIZE]); bool getExactRainFall(double rain[SIZE]); void displayResults(const double actual[SIZE], const double average[SIZE]); void printMonth(int month); // PRECONDITION: month holds an integer 1-12 // POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been … | |
Hello, I need help with re-ordering the values in ascending order in the array Unordered. However, I cannot use sort or swap functions. The values in array Index are used as indexes of array Unordered to put the values into the sequence shown in Ordered. I am writing this code … | |
Hey again everyone, it's been a while since I've posted here.. What I'm trying to do, is get the command-line argument and convert it to hexidecimal. Example, if the file is named 'test', you would call it with test 72 Or something similar. I have it working, but after MUCH … | |
![]() | Im making a sim of a robocup for a project and it would really help make the code easier to read if I could have an array of players but I cant dim and array as new and my players are all a class I made called gameobject. How do … ![]() |
Hello all, I'm very confused on this K factor stuff.....I understand that...1*2*…*k indicates the product of consecutive numbers and therefore: 1*2*…*5 is actually 1*2*3*4*5 = 120 But I'm not sure how to write that as a code. I have the following information: /* pseudocode for Binomial Coefficients */ int binomial(int … | |
Hi everyone, this is my first post on this site and I was wondering if anyone could help me with this. I'm sorry if my coding style is strange, I'm relatively new at this. The program is supposed to prompt the user to guess a number between 1 and 1000, … | |
Hi, I'm writing a function that takes a word doc and returns the number of pages in it. I have the function working and returning pages except that it opens a Word dialog asking if I want to save changes - does anyone know how to stop this? I have … | |
[code=c#] private void button1_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { pictureBox1.Image = Bitmap.FromFile(openFileDialog1.FileName); org = (Bitmap)pictureBox1.Image.Clone(); } } private void button3_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog() == DialogResult.OK) { pictureBox1.Image.Save(saveFileDialog1.FileName); } } private void button2_Click(object sender, EventArgs e) { Bitmap temp = (Bitmap)org.Clone(); ot.Convert2GrayScaleFast(temp); int otsuThreshold= … | |
I have a hmwk assignment that i'm stuck on....It calls for a while loop so I need to basically repeat this 4 times but I cannot for the life of me figure it out....any help would be great I narrow the code down so it works when I input the … ![]() | |
This may sound like some simple stuff but I'm getting lost and my professor is hard to reach so if anybody can help me I'd greatly appreciate it. I'm writing sort of like a bank program, there is a "log-in" form, a "registration" form, and a "data access" form. My … | |
i want to write a simple app which does nothing else except that you can drag an image in a window(simply clicking somewhere on the screen and moving mouse while holding the left button down). The problem is that my image moves only once and only a little bit and … ![]() | |
Hey guys, The idea with this form is to add the futures which is calculated when the button is pushed but I need the list to update every time and show the values each time to which the previous value is added to the new calculation, e.g. of what it … | |
Hello guys. I am faced with an serious issue in my current project. I have this form, when the user submits it I create an array via javascript which is then encoded in with JSONstring.make(). The data is sent to php via ajax, the problem is that sometimes, I havn't … ![]() | |
Hello people, this is my second attempt to get help for the same code. First post is unsolved. I apologize for any confusion in my posts but I'm confused myself so it's somewhat hard for me to properly explain that which I don't even understand....:$.... I have been given the … | |
Ok....I'm stuck again...I'm wondering if there is a way to sort the following code, so that I can pick out the highest value. I don't believe that I can make it into a list, since they are in parallel arrays. I'm hoping not to have to do a long set … | |
I need to save an object to a file and then reload it later on. I think this is called serialization but I don't know. I have made a simple example below that I need to fix. [CODE]#include <iostream> #include <fstream> #include <windows.h> using namespace std; #define MAXV 1000 class … | |
I have a string in my main index that looks like this: [CODE]if (is_sticky()) { echo " id='sticky' "; } echo ">";[/CODE] What this does is post info like a "Sticky" in a format like the thread of a forum at the very top of the list. It does this … | |
Hi guys, So I am developing a website which will allow users to comment on things. As part of this I need to display a comment count and I wanted to know what you thought was the best way of doing this: The two options are Every hour/day run a … | |
Hello...we are to make a project like "Text Twist"... but in the network connection form... maximum of four players so there will be also 4 computers connected by LAN... i just need ur advice guys f how could i make this project... is it about using database? when i tried … | |
Hi everyone This code works fine but the asterisks that print to represent the percentage is wrong. The example given was there was a total of 14 grades across the A-F range, but "A" had 1 and 1 should represent 4 stars one the chart. Whats wrong???? [CODE] #include <cstdlib> … | |
I need to be able to take a point on an image and convert it into a point relative to a picturebox with the pictureSizeMode set to zoom here is the code that the picturebox uses to scale and center the image [CODE] Size size = this.image.Size; float num = … | |
i have to write a program database with investors names, ammounts invested, city, and the phone numbers. i have one binary search tree, unsorted where the key is the name and ammount, and a heap sorted by the ammount invested. now i need to display the top 3 cities (with … | |
i believe that it checks every nodes height and makes sure that the left -right is 1 or 0 or -1. It is supposed to return tree if tree is balanced which means that left-right is 0 or 1 or -1 at every node. [CODE] template <class KT, class DT> … | |
Hi, I'm trying to manually translate 16-bit assembly intruction into the format Instruction Prefix-Opcode-ModR/M-SIB-Address Displacenebt-Immediate Data for an Intel8086. I'm having problems trying to figurit out when to use the respective values for the Mod, the R/M. If anyone could point a good book or site for this type of … | |
Hi, how could you find the last digit in an integer? Thank you. | |
Hi All, Please help me to solve this problem. I developed a web applicattion with following versions : Servlet Engine: 2.5 JSP Engine: 2.1 Server: Apache Tomcat/6.0.18 JRE Version = 1.6.0 My destination web server having following versions: Servlet Engine: 2.4 JSP Engine: 2.0 Application Server: Apache Tomcat/5.5.27 JRE Version … | |
Hi all, I just want to ask you a simple question. I can't find the answer anywhere. How can I change the alert's title in javascript? | |
In the following program, how does the value of [COLOR="Red"]crit_name[/COLOR], end up in the [COLOR="Red"]self.name = name[/COLOR] value? Is it because it's passed to that class and name is the only value in the [COLOR="Red"]__init__[/COLOR] parameter that has no default value? Thanks. [CODE]# Critter Caretaker # A virtual pet to … ![]() | |
Hi, I am trying to write a snippet of code that checks if the user entered a valid color from an imported file called graphics.py. [code] # Get a valid color value from the user. color = raw_input("Enter a color: ")[/code] graphics.py contains a huge list of built in color … | |
so I've got a lot of it done, I just need a hint as to the next step. So far I have the user entering a bank account, interest rate, and account balance. I need the user to enter an amount of years and the program will go through that … | |
Hello, Got a question for you all. I have a mass email script that sends emails out in a round robin using 15 unchecked email address (GoDaddy only allows something like 250 emails a day per address). The problem I have is if an email bounces back it goes to … | |
Can anyone help please? How can I give focus to a textbox (for example we have two) by defining a shortcut key as alt+m ? Thanks in advance Btw, I'm a beginner so please tell me in the simplest way. :) | |
Hi, I have the following regex pattern. I don't think there is anything wrong with it. It seems to work when i test but if someone sees anything wrong with it please feel free to tell me. I don't know Regex but managed to put a username validator together as … | |
Hi. I'm trying to add event listeners to multiple elements of the same class. The DOM is something like this: [CODE] <body> .... ....... .......... <ul class="x"> <li class="a"> .... ... <span class="someclass"> [ <a href="http://someurl/x1>link text</a> ] </span> </li> <li class="b> .... ..... <span class="someclass> [ <a href="http://someurl/x1>link text</a> … | |
[CODE] Dim name1(100) As String Dim Cal1(100) As String Dim i As Integer For i = 0 To 10 Step 1 name1(i) = GridView1.SelectedDataKey.Item(1) Next i [/CODE] i want to store the selected value into an array then display the array in a text box [CODE]Label5.Text = name1(0) Label6.Text = … | |
I am starting to write a assembly program for a mc68hc12. I will be reading a 8 bit signed number into PortA and outputting the results to 7 segment LED's, common anode. I will be using Port P to ouput the segments and PortCan to control the LED's displayed. I … | |
can any body explain what is the use of csv files in php. i know it is used for export db as a xls files . in excel we can change the extension as .csv. | |
I've got a bit of a problem. I've got a test tomorrow in python programming, and I've been learning the language using 3.1. The computers we're taking the test on all have 2.6 installed. They're Linux (not very familiar with Unix). Obviously this is troublesome. I don't want to spend … | |
hello every one this is my first post in the daniweb today i found this index of free open source PHP Class Scripts [URL="http://www.jooria.com/scripts/PHP-Class-Scripts-129/"]the index here[/URL] | |
Hi there My Algebra 2 class just started matrices, and I don't want to go out and pay $100 for a graphing calculator, just for the matrices, when I can code one myself. So... this is my code, and I can do it without classes, but I decided to make … |
The End.