199,114 Archived Topics
Remove Filter ![]() | |
How to write a function for highest denomination of any card in the hand.The denominations from lowest to highest are 2, 3,4,5,6,7,8,9,10,'jack,''queen','king','ace'.For example, highestDenomination({(6,'club'),(6,'heart'),('queen','heart'),('queen','diamond'),(2,'heart')})denotes‘queen’. | |
Hi , I'm almost done with my practice paper I have done with the first part and now I'm working in the second part I came to this question and I stopped and didn't know how to call method from another class here is the question "In the Assignment9Form class, … | |
Here's what I have so far. I have one class Directory.java and another class DirectoryWithObjectDesign.java I need help editing my code that when executed, it will be prompted by 3 commands. Find, Delete, and Add. If asked to find, the user will input find then("stringhere"), then the program will search … | |
My issue is creating the interface payable and making it compile properly. I have to modify an example out of the book such that is shows polymorphism using an different interface called Payable. This is what I have for my interface: interface Payable { //----------------------------------------------------------------- // Creates a staff of … | |
![]() | what is an algorithm for a program that reads 4 integers (not in array) and print them without using loop |
Hi again. This is the part of the code that doesn't work. $fileBaseName=basename($file,'.jpg'); echo("<img src='{$handle}/{$file}' alt=$fileBaseName />"); So what i want to do is at alt to show only the name without the.jpg and i dont know why if i have two or three words is stops at the first … ![]() | |
Hi, I am trying to write a code in which i want to read the command line arguement ( which i can get by using $(0,1,...) ) and want to give the arguement to some filename. Eg. ./myprogram filename.cpp I want to remove ".cpp" from the filename and want to … | |
hello how are yo guys i have this code for count visitors the question is how can i know number of visotors on the all pages on the website not on one main page or one page i have these table id ip date oops i am sorry <?php $ip_on=$_SERVER['REMOTE_ADDR']; … | |
I was creating my admin panel (admin homepage) and then took out the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ZanimeCMS: Admin Center</title> <link rel="stylesheet" type="text/css" href="../css/home.css" /> <script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script> </head> <body> <!--START Admin Wrapper--> <div id="adminwrapper"> <!--START … | |
Hello programmers! I am making chat software and I want to make users to be able to edit profile (Change password, informations and avatar). Now I need code for getting avatar from user account to picturebox. I want for default avatar to be avatar from user's account (Avatar shown on … | |
Below I have two subs, once RearrangeDecks is run, it will call moveToEnd(p1stat,p2stat). I get p1stat and p2stat from a different sub used earlier. However when I run it, it gives me back an error saying "**Arguments not optional**" as well ass highlighting the first offset word in the sub … | |
Hey guys, I am curious on how to start automated testing, and what kind of software or scripts would i need to test java, c , c ++, c#, or python code. Also does anyone now any good well explained videos or websites out there, i tried searching on google … | |
Hi peeps, quick question. I am debugging a script in IE (it's producing errors and I suspect it might be down to the selectors) and I was wondering if the below is correct. Guven the following html <div id="fruit_filter"> <h1>Compare the Toyota range</h1> <div class="filter_checkboxes"> <h2>fruit type</h2> <form id="first_filter"> <input … | |
hi there. I created HTML and PHP file to filter web form data based on multiple drop down filters. Here goes the form. when i run the form and PHP, i don't see any results in the browser. There is no error either. I am working on a example posted … | |
Hello sir i want to develop a menu which is completely mysql(database) dependent, I need quick reply,,, please. ![]() | |
hi, so i have a question relating to sending data in a sequence. i have a class evenvent that reads the data from a txt file. that class has to send data to 2 comunication line async and sync. data sent to async is for ex: 'new' . data that … | |
#include <iostream> using namespace std; main() {intx,charge; float a,b,c; cout<<"case 1<=2hours,case2<=3hours,case3<=4hours,case4<=5hours,case5>6hours\n"; cout<<"pls enter your time entry\n"; cin>>a; cout<<"pls enter your time exit\n"; cin>>b; c=b-a; cout<<"no of hours park is\n"<<c; cout<<"pls enter no of case according to your no of parking hours\n"; cin>>x; switch(x) { case 1:cout<< "the charge is RM2.00\n";break; … | |
Hello I am having a problem with this function. Everything works fine until it reaches the `delete []dynamicArray` line. Can someone please tell me why it would crash at this part? string* addEntry(string *dynamicArray, int &size, string newEntry) { string* hold; hold = new string[size + 1]; for (int i … | |
I have a form, and I don't know why I can't receive a single email, I used to but now I can't... <!DOCTYPE HTML> <?php require_once('recaptchalib.php'); $privatekey = "MY-PRIVATE-KEY"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); ?> <?php $fn = $_POST['fn']; $name = $_POST['name']; $lastname = $_POST['lastname']; $email = $_POST['email']; … | |
Hi, I am creating an vb application that compares two data's pasted in two mshflexgrid. The data's will be copied from the source to the flexgrid control using clipboard. I have coded all the needed things. I just want to remove the unwanted empty cells that are displayed in the … | |
Hey, I made a small program for the k-clusters algorithm. In the current state though, I'm unable to erase the position of the centers from the previous itterations. If I use paintComponent(g) my jPanel will move down to the right and I have no idea why. (as shown here: http://tinypic.com/r/2eba0j8/6 … | |
Hello guys, I'm writing a code that will display another form when the submit button on the first form is clicked (isset). However on the second form, there is nothing happen after i clicked the second submit button **line 62**. The javascript alert seems to be not executed. Any idea … | |
Lately I have been using the program name to control the program execution. If the name has "random" in it then random. If it has "mix" in it then it plays / displays a mix of text and video - pictures - audio. The 3 program prompts are set based … | |
I would like to see another example of a solution for Deitel's 8th edition 6.20 | |
Hello there. I am kind of confused. In PHP I substract two unix timestamps from each other. The first: mktime(0, 0, 0, 10, 22, 2012) The second: mktime(24, 0, 0, 10, 28, 2012) For as far as I know the time difference between these two timestamps is exactly 7 days. … ![]() | |
Hi Im not sure if this question belongs in the form so sorry if it doesn't. Here is my question, in a cs class of mine we have to write a make file that compiles the two seperate programs in the project. The only problem is that none of the … | |
For instance... say that I set char a = 'a' char b = 'b' how would I combine them to make them "ab" using strcat? | |
i want to put the values from three text boxes into one cell of my datagridview.. | |
Hi ok so i want to read images from an sql server database..the images are saved in bytes but im struggeling to retrieve them my code for the retrieving this is the code i used to save the image and its working. Dim sql As String = "INSERT INTO item … | |
This is an assignment from school, I have spent a week bashing my head against the wall atrying to figure out how to get this to work. The program reads in a 'maze' or X's and stuff from, a file, and my functions are to fill a pre diminshied char** … | |
Hallo! I would like to create a script to search a MySQL table (data). The table has two columns (ID & PRICE). Search must be done by ID and Price has to be displayed in the page, any ideas? Thanks in advance! PS: I've tried to modify [this script](http://www.phpjabbers.com/index.php?controller=FrontFrees&action=details&seo_url=mysql-table-search&page=4) but … | |
hi i need help creating a program using arrays. this is what is assigned and i cant figure much of it out ! please help! The single field (instance variable) for this class is a array of type char named seats[] with 10 elements. The first five elements (0 to … | |
Hello everyone! I am building a mfc dialog based application in visual c++ 6 and using mysql c api to connect to a database. What i need is a simple type of data grid to show mysql query results in a dialog. I do not need to edit, update, save … | |
Hi I have 2 Tables: CREATE TABLE IF NOT EXISTS `questions` ( `question_id` int(11) NOT NULL AUTO_INCREMENT, `createddate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updateddate` timestamp NULL DEFAULT NULL, `active_flag` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`question_id`), UNIQUE KEY `id_UNIQUE` (`question_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE `alarts` … | |
I'm working on an assignment and I've run into a small problem. Our teacher wants us to read a line from a file containing three things we need sperated by a whitespace. I'm trying to figure out the cleanest way to read the line and then break it into the … | |
Hi Everyone, I'm trying to interpret some data from an embedded sensor device into a C++ program. The device uses a numerical format called 1.15 fractional format. This means it transmits 2 hex bytes into a value rangle of ~1 < n < -1. A full description of the format … | |
Hey all, I am currently using the following to echo the 1st Current_month: echo "1st '.date('F').'."; So that would say, for example, 1st October. What would I need to do to echo the next month? In this case 'November'? Thanks for any help! | |
HI I have QB POS 8, which I want to connect to my PHP script running on my localhost. The PHP script generates sales receipt and that sales amount has to be updated to my QB POS to print sales report. Any help would be apreciated, thanks in advance. | |
I have a script that uploads files to a folder and it works lovely when im testing on my XAMPP box, if someone else tries to upload it says Warning: copy(C:/xampp/htdocs/data/mottramg/AEGON.jpg): failed to open stream: No such file or directory in C:\xampp\htdocs\training\upload.php on line 27 Could not copy file. now … | |
how to retain previous value of textbox and input new value in same textbox.please help me .i am tyring to make a calculator programm in php only withh all buttons etc . | |
Hi, I have a stored procedure that will display an activity if the user enters the correct appref. This stored proceudre works fine on SQL management. However when i bind it to the gridview on my page it doesn't work on the internet, keep getting the error. Cannot open database … | |
![]() | Anything a person desires? |
Hy, I have some methods which are identical as functionality but dependent on the parameter received from the method.For example: public long GetElementsFromList(long el,List<long> lst) { Random rndElement = new Random(); int random = rndElement.Next(0, this.lst.Count - 1); if (random >= this.lst.IndexOf(el)) random += 1; return this.lst[random]; } public string … | |
actually i want to compare pass1.value with pass2.value...dis is my code please check it.. <html> <head> <script type="text/javascrpit"> function myFunction() { alert " pass1.value"; var x=document.getElementById("pass1").value; var y=document.getElementById("pass2").value; if(x == y) { alert "password matches"; } else { alert "password dosn't matches"; } } </script> </head> <form name="mailform" method="POST" action="#"> … | |
Hi! I am new to java and I'm trying to make a **Stop Clock** which shows time in minutes, seconds and mili-seconds. I've attached the zip file with this thread which includes the source code and other files required to run the program. The *problem* which I'm facing is that … | |
I need a program that will return an integers factorial, but only when the number entered is between 0 and 20. I have the code to disregard anything below 0 and above 20, but something with my math and/or syntax is off and I dont fully comprehend how to fix … | |
Basically I'm trying to see if the first letter is in the dictionary... then if it is.. check if the first and second letter are in the dictionary.. and if it is... check if the first, second, and third letter are in the dictionary... and so on and so forth. … | |
** Hello Guys, I want to write .htaccess file. But i have no idea how to write .htaccess. I want to make my site seo Friendly. this time my url looking like this type. Basic url : http://localhost/health when click on category link. It should looks like this format. http://localhost/health/category.php?cat_id=46 … | |
Hi, I want to use PHP to take one image, draw another on top of it and output it as a single image. So it might for instance be that the first image would be of a duck and the next image would be of an x, so the third … | |
How do I combine two c-style strings together? Basically I'm trying to see if the first letter is in the dictionary... then if it is.. check if the first and second letter are in the dictionary.. and if it is... check if the first, second, and third letter are in … |
The End.