199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dtripath

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’.

Member Avatar for vegaseat
0
129
Member Avatar for sk8ergirl

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, …

Member Avatar for Taywin
0
222
Member Avatar for minimee120

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 …

Member Avatar for Taywin
0
4K
Member Avatar for Kathy0410

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 …

Member Avatar for Kathy0410
0
136
Member Avatar for Zaina jee

what is an algorithm for a program that reads 4 integers (not in array) and print them without using loop

Member Avatar for jllany.anthony
0
2K
Member Avatar for freakvista

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 …

Member Avatar for diafol
0
205
Member Avatar for umesh314

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 …

Member Avatar for Watael
0
204
Member Avatar for cssweb

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']; …

Member Avatar for jkon
0
201
Member Avatar for keven.pirritano

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 …

Member Avatar for minitauros
0
9K
Member Avatar for LD Company

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 …

Member Avatar for LD Company
0
218
Member Avatar for darkscythe69

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 …

Member Avatar for AndreRet
0
232
Member Avatar for fonzi

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 …

Member Avatar for Schol-R-LEA
0
314
Member Avatar for Violet_82

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 …

Member Avatar for minitauros
0
260
Member Avatar for kumar.papneja

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 …

Member Avatar for simplypixie
0
5K
Member Avatar for Avtar1234_1

Hello sir i want to develop a menu which is completely mysql(database) dependent, I need quick reply,,, please.

Member Avatar for LastMitch
0
130
Member Avatar for anisha.silva

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 …

Member Avatar for caKus
0
237
Member Avatar for daesung

#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; …

Member Avatar for amrita111
0
83
Member Avatar for ShEeRMiLiTaNt

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 …

Member Avatar for ravenous
0
99
Member Avatar for <M/>

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']; …

Member Avatar for mmcdonald
0
374
Member Avatar for karthik82vk

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 …

Member Avatar for BitBlt
0
325
Member Avatar for Swiftle

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 …

Member Avatar for Swiftle
0
2K
Member Avatar for scholarwithfire

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 …

Member Avatar for mmcdonald
0
288
Member Avatar for SpectateSwamp

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 …

Member Avatar for SpectateSwamp
0
205
Member Avatar for joey777
Member Avatar for JorgeM
0
193
Member Avatar for minitauros

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. …

Member Avatar for diafol
0
240
Member Avatar for Kyle Willett

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 …

Member Avatar for Kyle Willett
0
251
Member Avatar for Carc369

For instance... say that I set char a = 'a' char b = 'b' how would I combine them to make them "ab" using strcat?

Member Avatar for Lucaci Andrew
0
325
Member Avatar for pratik65
Member Avatar for pratik65
0
556
Member Avatar for tieties

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 …

Member Avatar for G_Waddell
0
199
Member Avatar for highonbikes

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** …

Member Avatar for Lucaci Andrew
0
153
Member Avatar for MWEB

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 …

Member Avatar for MWEB
0
218
Member Avatar for gassa94

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 …

Member Avatar for Taywin
0
102
Member Avatar for ktsangop

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 …

Member Avatar for ktsangop
0
1K
Member Avatar for breakid

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` …

Member Avatar for ammonsutherland
0
263
Member Avatar for salford6129

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 …

Member Avatar for TnTinMN
0
152
Member Avatar for AdLab

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 …

Member Avatar for AdLab
0
533
Member Avatar for mmcdonald

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!

Member Avatar for mmcdonald
0
114
Member Avatar for javedshaikm

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.

Member Avatar for pritaeas
0
206
Member Avatar for websponge

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 …

Member Avatar for websponge
0
114
Member Avatar for sonash

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 .

Member Avatar for sonash
0
208
Member Avatar for coder91

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 …

Member Avatar for ronitmathurseo
0
254
Member Avatar for napninjanx
Member Avatar for stefilina

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 …

Member Avatar for pritaeas
0
141
Member Avatar for varma51

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="#"> …

Member Avatar for subramanya.vl
0
71
Member Avatar for Ravish.Ahmad.Khan

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 …

Member Avatar for Schol-R-LEA
0
229
Member Avatar for Atlanta15Braves

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 …

Member Avatar for JamesCherrill
0
271
Member Avatar for Carc369

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. …

Member Avatar for Banfa
0
266
Member Avatar for waqar3

** 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 …

Member Avatar for adam.adamski.96155
0
169
Member Avatar for Goldfinch

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 …

Member Avatar for pritaeas
0
84
Member Avatar for Carc369

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 …

Member Avatar for Ancient Dragon
0
393

The End.