637 Topics
| |
so i have the following script: <?php /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* … | |
#include<stdio.h> #include<conio.h> struct Book { char bname[20]; int pages; char author[20]; float price; }b1[3]; void main() { struct Book b1[3]={ {"BOOK1",700,"ypk",12.98}, {"BOOK2",500,"aak",350.00}, {"BOOk3",120,"HST",450} }; for(int i=0;i>3;i++) printf("%d\n",b1[i]); getch(); } iwant output book1 700 ypk 12.98 book2 500 aak 350.00 book3 120 hst 450. | |
Okay i have 2 variable named bid price and offer price . I need to fill in the values into the variables through cases. For each row of data ,i want to retrieve the rates for the currency pairs (eg. eur/usd,audusd) . I have 2 values for each currency for … | |
Hello, help me please. I have a db sample ( http://i.imgur.com/JRZ2ojP.png ) I have 1 combobox and 1 textbox If the combobox select "Notebook" then on the textbox it must be display the corresponding itemStock (3) Please :( By the this my simple code for my combobox Try Query = … | |
I'm trying to create a game of Go Fish in Python. But I've stumbled onto a little problem that I can't seem to figure out how to deal with. There is a human player (player 0) and three computer players (from 1-3). The human player goes first and chooses a … | |
I am having trouble getting started with my program. I have writen the array but I am having trouble starting the if statemnent to fill the seats in the program. If they press 1 it needs to fill seats 1 through 5 if they press 2 it needs to fill … | |
Hello, First of all some background. My friend and I are having a bit of a competition over theoretically infinite number storage. We have agreed that the first person with a working arbitrary precision integer library with the theoretical ability to store an infinitely large number (IE: if the hard … | |
So here is what I want. if (tracks, the db) (user_id, the row) for '".$_SESSION['user']['id']."' = equal (tracks, row) in (users, the db) for '".$_SESSION['user']['id']."' exit else update (users, the db) (tracks, the row) to match. This isn't the script as I don't know where to start but I am … | |
Hello everyone! I would like your help regarding this: I have a tuple vector which i must iterate through, and accessing the vector data to decide wether to erase or not the current vector element. My code : typedef tuple <int, CString, int, int> pc_data; vector <pc_data> pc_vec; //Assume that … | |
My code only outputs 0.00 when 'y' is entered. Clearly, I'm a beginner. #include <iostream> #include <iomanip> #include <string> const double ADULTFEE = 18.00, CHILDFEE = 7.50, TRAINFEE = 6.00, BIRDFEE = 5.00; using namespace std; int main () { char reply = ' '; double adultNum = 0, childNum … | |
Kill me now! I have two tables in my DB. One has a list of certifications and one has a list of exam boards. I need to list the exam boards in a foreach loop giving each one an accordion. The certifications must be listed under their correct exam board. … | |
Hello everyone, I have a search form that i am working on, and I have a huge array of checkboxes that I am using so people can refine the search down to just 1 or 2 things if they want to. In the search.php page, i have an implode function … | |
What's the difference and which are you supposed to use? I typically stick to `else if` unless I am using short tags. Is this correct?? | |
Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into … | |
I'm using VS 2012 and coding a try/catch block in an MS Access database project, but VS says OleDbException is not defined (see line 3 in the code). Anyone know why? I got some of this code from [here](http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c822d48c-fd90-44a1-a186-a15e16966233/), and according to MSDN OleDbException is valid in vb.net Try data_adapter.Update(CType(binding_source.DataSource, … | |
Hello All, So I'm working on hand-coding a forum-like website, just for the experience, and I want to have a similar feature as you'll see above where a thread will have its ancestors linked: "Web Development > JSP > Parent traversal of tree-like Structure" I have several beans for different … | |
Is it possible to iterate using foreach loop on multiple groupBox. I have 6 GroupBox named as gBox1,gBox2,gBox3,gBox4,gBox5,gBox6 AND each gBox contain 21 ComboBox named as slot1,slot2,slot3,slot4,slot5.... so on out of which I want to select only 7 comboBoxes for operation. For eaxmple if user enter 2 in textbox then … | |
Hi everyone I'm studying the part about while-statement but I don't understand the explanation in the book really well and the example doesn't work for me so I can't see it with my own eyes how it works. Can someone explain what the while-statement means and does? Also can you … | |
hello everyone i am getting problem while configuring ntp server in rhel6 when i write nptq -p output:- no association id's returned what should i do | |
I'm dealing with a SOAP client response for a flight booking application, I successfully got the response, See the response below: <arzoo__response> <Response__Depart> <OriginDestinationOptions> <OriginDestinationOption> <FareDetails> <ChargeableFares> <ActualBaseFare>4850</ActualBaseFare> <Tax>4267</Tax> <STax>31</STax> <SCharge>0</SCharge> <TDiscount>0</TDiscount> <TPartnerCommission>0</TPartnerCommission> </ChargeableFares> <NonchargeableFares> <TCharge>0</TCharge> <TMarkup>0</TMarkup> <TSdiscount>0</TSdiscount> </NonchargeableFares> </FareDetails> <FlightSegments> <FlightSegment> <AirEquipType>321</AirEquipType> <ArrivalAirportCode>DEL</ArrivalAirportCode> <ArrivalDateTime>2013-05-20T08:00:00</ArrivalDateTime> <DepartureAirportCode>BOM</DepartureAirportCode> <DepartureDateTime>2013-05-20T06:00:00</DepartureDateTime> <FlightNumber>601</FlightNumber> <OperatingAirlineCode>AI</OperatingAirlineCode> <OperatingAirlineFlightNumber>601</OperatingAirlineFlightNumber> … | |
I am making a program that does synthetic division, except for it is not showing the quotient only the remainder. I have checked my for loops so many times, and I can't understant what is happening here is my code: import java.util.*; import java.lang.*; class synthetic { static Scanner userInput … | |
Hi Guys I'm using a form which sends data to a php file so that ti can be sent to a database. However some of the data passed are dates for the start, end of teh event and when sign ups expire. I want to stop the from data been … | |
Hello, I have been messing around and writing more and more intricate calculator programs on MVE C++. The issue I am having right now is my program is not running unless I give my add, sub, etc. a value. When I try to just leave them as int add; or … | |
| I am trying to write several different sorting algorithms in order to time the differences between them when reading a file of a half million integers. For testing purposes, I am only using a few hundred integers, but I am getting a stack overflow error. Also, for testing reasons, I … |
Is there a reason why this won't take aciton or submit. I don't get any movement on the browser. Neither of the forms move. <div data-role="content"> <?php echo "<table width=\"500\" border=\"1\" cellpadding=\"4\">"; while($row = mysql_fetch_array($showEmployees)) { echo " <div data-role=\"collapsible\" data-mini=\"true\" data-content-theme=\"c\"> <h3>{$row['employee']} {$row['phone']}</h3> <p> <form action='admin.php' method='post' accept-charset='UTF-8' id='editemployee' > … | |
Hello all, I am trying to get a bunch of sub-keys and values from the registry in vb 2010 and i remember in vb6 this was quite easy. Can anyone share code to help? Or a link where I can go? I've been searching for nearly 8 hours on line … | |
Hello Team, I've been having a wierd problem with 2 of my scripts and I now know the problem was in my if statements. code=sys.argv[1] phone=sys.argv[2] message=sys.argv[3] if code == 949: servId='62000001760' elif code == 947: servId='62000001840' else: servId='90928' print servId I run this script as: sudo python printserv.py 949 … | |
| Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once … |
Help me look at the codes below. It has T_IF error and T_WHILE error. The errors are on line 7 and line 18. I hope anyone can teach me to repair it and the code function is still same. <?php require_once("db.php"); session_start() if (!isset($_SESSION['cart'])) { <---T_IF error $_SESSION['cart'] = array(); … | |
Hello everyone, I'm trying to implement qsort on a struct with the double as a pivot: typedef struct{ char sequence[9]; int occurance; double prob; }tuple; ...... int compare (const void *x, const void *y){ if (x < y) return -1; if (x > y) return 1; else return 0; } … |
The End.