64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Sohvkhan

Hello, I was assigned the task of coding this program in python for homework and I recently ran into a problem. Basically the assignment asks that a program prompt the user for a series of numbers and will then output the smallest number, the largest (their respective locations) and finally …

Member Avatar for woooee
0
155
Member Avatar for serkan sendur

Compared to javascript's power, i think xslt is so weak. i prefer parsing xml document to whatever html representation using javascript and i cant see any use of using xslt for that matter. What do you think?

Member Avatar for fpmurphy
0
156
Member Avatar for rafkay

Hi .. anyone can help me out to solve this problem... coding to read the file... 1. this coding is well working... can list down all the data in dataM.txt [CODE]ifstream OpenFile("D:\\dataM.txt"); int a; if(!OpenFile) { cout << "While opening a file an error is encountered" << endl; } else …

Member Avatar for vmanes
0
220
Member Avatar for theimben

Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo …

Member Avatar for theimben
0
113
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> using namespace std; #include <iomanip> #include <cstdlib> enum RequestType { ZERO_BALANCE = 1 , CREDIT_BALANCE, DEBIT_BALANCE,END} int getRequest(); bool shouldDisplay ( int, double); void outputLine ( int, const char*const, double); int main () { ifstream inClientFile( "clients.txt", ios::in); if ( !inClientFile) { cerr << " File could not …

Member Avatar for Se7Olutionyg
0
141
Member Avatar for Stefano Mtangoo

Hi All, Please help me to understand it better. I want to have a simple site with Header, navigation bar, side bar and opposite to side bar, main contents. I want to Include files for this sections in index.php. Here is a thing I dont understand: ---- If I divide …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for ddanbe

Hi everyone, I have the following : [CODE=csharp]using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double d = Convert.ToDouble("23.4"); } } }[/CODE] When I run this with Visual C# 2008 Express in the debugger I get the value 234 for d instead of the expected …

Member Avatar for ddanbe
0
105
Member Avatar for netsperience

I created a prototype.js/window.js "Window" pseudo window div with another page from the same directory loaded in its iframe I could not put a button/link on the iframe doc that would close it by calling functions in the parent window I used "window.parent" "parent" alone "top" but the only thing …

Member Avatar for scrager
0
511
Member Avatar for Besherek

Hi folks, I've used a while loop to call about 5 category names from a database to make a navigation. I didn't want to hard code the categories because I want to be able to change them using Content Management and have the nav update from the database. [CODE]<a href="category.php?cat=<?php …

Member Avatar for Besherek
0
193
Member Avatar for C++.java

// days in a given month.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char month,january,feburary,march,april,may,june,july,august,september,october,novemb er,december; cout<< "\nEnter january,feburary,march,april,may,june,july,august,september,october,november,dec ember : "; cin>>month; switch(month) { case january: cout<< "31\n"; break; case feburary: cout<< "28\n"; …

Member Avatar for ArkM
0
112
Member Avatar for sid78669

hey, I want to write a small snipet which will first prompt the user to input a javascript command, and then execute that command on the current page. Is there any way to do it?? say the prompt is like: [CODE=javascript]javascript: prompt();[/CODE] (its working) and the command is : [CODE=javascript]javascript: …

Member Avatar for scrager
0
455
Member Avatar for theimben

This query doesn't work. What have I dont wrong? [code=php] mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); [/code] Heres the whole page if it makes things clearer. [code=php] <?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description …

Member Avatar for theimben
0
96
Member Avatar for PinoyDev

Good day to everyone.! I just want to ask a help if is it possible to fit any size of image in just a 32 x 32 image placeholder. i have already loaded the image from the database by just looking its path.but it it will display on the page …

Member Avatar for PinoyDev
0
94
Member Avatar for dvsConcept

i have this program generating 3 numbers and i don't know how to take those 3 numbers (i.e. 777) and applying that to a switch/case like... [code=c++] switch(landing) { case 'a'://777 //calculation will go here break; case 'b'://666 //calculation will go here break; ///and so on and so on! } …

0
70
Member Avatar for FlashCreations

Hey Everyone! I have come across a very interesting problem that seems to be impossible to solve. Basically a web application that I am working on relies on a JavaScript function called go to change the input named view to the page name and submit the form. This form's type …

Member Avatar for mschroeder
0
372
Member Avatar for rouse

I think I have a PHP configuration problem on my development machine where I am setting up a development environment which interrogates a local MySQL database from Eclipse on a Windows XP platform using an Apache server. I can execute the PHPINFO program so I have a minimal PHP system …

Member Avatar for rouse
0
1K
Member Avatar for obsy

Hi! I made a visual c++ application. My problem is how do I run the program in the console. And the program should read the data from sample.txt file

Member Avatar for obsy
0
102
Member Avatar for serkan sendur

is it possible to load xml from local file system using ActiveXObject("Microsoft.XMLDOM") ?

Member Avatar for serkan sendur
0
78
Member Avatar for nitu_thakkar

hello everone i'm new to c++ language Is This possible to make prg in cpp to overload () Opratore if yes, then can u pls give any logical flow for develope the prg i.e. which kind of opeartion can be performed through () opratore thanx in advance

Member Avatar for Narue
0
83
Member Avatar for rapture

Hey all, I have been tasked with figuring out a way to automate a form letter process that currently is done mostly by hand with a lot of copy/paste. We have letters that need to get sent out based on our internal system. Someone now looks up the items in …

Member Avatar for rapture
0
102
Member Avatar for Emerald214

I get the size of the integer array by using sizeof operator but the problem is: + Outside class: It outputs 3 (correct) + Inside class: It outputs 1 (incorrect) So how to fix it? Thanks [CODE]class A { public: A(const int a[]); }; A::A(const int a[]) { cout << …

Member Avatar for Emerald214
0
147
Member Avatar for eyewirejets

Python 2.6.1: How would I write a user input validation statement scores < 0 or scores > 100 print error message and ask for input again? Where would I place it, in the below code? [CODE] num_test = raw_input("How many test would you like to average? ") scores = [] …

Member Avatar for sneekula
0
138
Member Avatar for kdee

I have a problem... stuck a bit... I'm trying to get this confirmation link into the letter I'll send to my friends. I got the following code on the net but it just doesn't work. I have [B]Createuserwizard[/B] on my [B]create acount page[/B]. This code is placed into [B]CreateAccount.aspx.vb[/B] I …

Member Avatar for kdee
0
142
Member Avatar for Naik Dhiren

i used bindingnavigator as usercontrol. Adds two button for Add,Delete. when i put this control on form, i cannot write into click event of bindingnavigator's buttons but i can write code into controls buttons pls help me for the same

Member Avatar for Ramy Mahrous
0
92
Member Avatar for sweet cLassy

hello guys, i'm new to VB, n i have been given a project (data extraction ) for my final year project, n i'm quite confuse. Can anyone, tell me how to extract data from one source? for eg: from .txt file. Thank u so much for your time.

Member Avatar for sweet cLassy
0
84
Member Avatar for BestJewSinceJC

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Java Sun's site is down right now so I can't check but I'm guessing this is an old method since according to Eclipse, the method doesn't exist anymore. So my question is, are there any other ways to do the same thing?

Member Avatar for BestJewSinceJC
0
112
Member Avatar for rapture

Hello all, I have been tasked with figuring out a way to automate a form letter process that currently is done mostly by hand with a lot of copy/paste. We have letters that need to get sent out based on our internal system. Someone now looks up the items in …

Member Avatar for rapture
0
111
Member Avatar for rapture

Nobody is going to interact with you by way of email - first of all it doesn't help anyone else who has a similar problem and searches the site, and secondly we're not going to get 'tied' to helping you in that way or bothered with 100,000,000 questions in our …

Member Avatar for rapture
0
99
Member Avatar for asif786

I have a listbox in my program and a command button. When the user selects an item form the listbox and clicks the command button, a message box is shown which asks the user to confirm selection and has yes and no options to enable this. If the user clicks …

Member Avatar for bcasp
0
944
Member Avatar for ahmksssv

Hi frnds... i have been successfully uploaded videos to uploads folder through db... now i need to play that videos ....plz provide code for this one....presently ineed mediaplayer format... i got the video path....after i dont know how do that...is there any script to run videos.... plz help me asap...

Member Avatar for ahmksssv
0
93
Member Avatar for lakhan.p

Hi, I m trying to open a file in read mode , my program is below ... #!/usr/bin/python print "------" file = open("C:\Lakhan\Pytonpro\file.txt", "r") print file file.close() but it shows following error ------ Traceback (innermost last): File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 165, in RunScript exec f in __main__.__dict__ File "C:\Documents and …

Member Avatar for lakhan.p
0
202
Member Avatar for veledrom

Hi, I have a textarea with 2 information in (bmw, mercedes). When i click on bmw, it will be transfered into other texarea. How can i do it? Thanks

Member Avatar for veledrom
0
100
Member Avatar for veledrom

Hi, I have WAMP installed on XP. I put everything under wamp/www folder to be run PHP. I want to use D:\ drive as well to run PHP along with wamp/www. Thanks

Member Avatar for veledrom
0
91
Member Avatar for scias23

i need to create a palindrome program. in our computer lab, this program works but here at home, it doesn't. help.. [CODE=c++] #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> int main() { clrscr(); char word[20],rev[20],chr; cout<<"This porgram checks if the word is a PALINDROME word.\n"; do { cout<<"\nEnter word: "; cin>>word; for(int i=0,j=strlen(word)-1;i<=j,j>=0;i++,j--) …

Member Avatar for jencas
0
285
Member Avatar for Icebone1000

Hi, im reding a book where the way it draw poligons are like that: [CODE] glBegin (GL_TRIANGLES); glVertex3f (0.0f, 0.0f, 0.0f); glVertex3f (0.0f, 1.0f, 0.0f); glVertex3f (1.0f, 1.0f, 0.0f); glEnd(); glBegin (GL_QUADS); glVertex3f (0.05f, -0.05f, 0.0f); glVertex3f (0.95f, -0.05f, 0.0f); glVertex3f (0.95f, -0.95f, 0.0f); glVertex3f (0.05f, -0.95f, 0.0f); glEnd(); [/CODE] …

Member Avatar for Nick Evan
0
131
Member Avatar for hbk_star2006

hi please help me to rid of these following warnings in following php script Actually this script is running smoothly on my local window server, but on mu linux hosted server following warnings are coming.. Please see please please please help me.. -------------------------------------Warnings------------- Warning: mysql_fetch_array(): supplied argument is not a …

Member Avatar for hbk_star2006
-1
120
Member Avatar for dbwalters

Hello, I was hoping that someone might be able to help me with this program: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.FileNotFoundException; public class CustomerInfo extends JFrame implements ActionListener { //construct components JTextPane textPane = new JTextPane(); //initialize data in …

Member Avatar for hrdzdier
0
828
Member Avatar for LCR

I'm working on this program for my C++ class. It works fine but I'm not quite happy with it. Basicly this accepts a string, pulls each character out and converts it to the COA equivalent. It reads the entire string including spaces, but I can't seem to get it to …

Member Avatar for LCR
0
78
Member Avatar for gangsta gama

Hey whats up guys? I was using thenewboston tutorials on youtube and I am stuck. I was trying to connect to my database that i made. [code] <?php //opens connection to mysql server $dbc=mysql_connect('localhost','kybo13','****'); if(!$dbc) { die('Not connected: ' . mysql_error()); } //select database $db_selected=mysql_select_db("kybo13_game",$dbc); if(!$db_selsected) { die("Cant connect: " …

Member Avatar for gangsta gama
0
138
Member Avatar for blerina12

Hi guys. I was wondering if you could help me with this problem. I am trying to pass a dynamic array to a function for finding the length [code] int length(char ** t, int i) { int count = -1; do count++; while (t[i][count] != '\0'); return count; }[/code] The …

Member Avatar for blerina12
0
325
Member Avatar for Clockowl

'lo there folks, MinGW's giving me 1 error I can't get rid of: [code] eventhandler.h|9|error: `element' has not been declared| eventhandler.h|9|error: ISO C++ forbids declaration of `elem' with no type| [/code] All code mentioned and I think needed: eventhandler.h [code=cpp] #ifndef EVENTHANDLERH #define EVENTHANDLERH #include "element.h" enum events {onClick, onHover}; …

Member Avatar for Clockowl
0
101
Member Avatar for winrawr

so say I have something like this: [code=cpp] #include<iostream> class A{ public: void setErrorMessage(char*); } void A::setErrorMessage(char* errMessage){ // code here to set B::errMsg } class B{ public: A someObject[3]; char* errMsg; } int main(int argc,char** argv){ B something; B another; something.someObject[2].setErrorMessage("BIG ERRAR!"); another.someObject[0].setErrorMessage("everything's okay!"); cout<< something.errMsg<< endl; cout<< another.errMsg<< …

Member Avatar for winrawr
0
167
Member Avatar for waldchr

Hi I have been working on a project that requires me to be able to search a file for all occurrences of a string and store the entire line that contains a single occurrence of that string a an array of characters. For example: Search: web File: Time James [U]Web[/U]ster …

Member Avatar for waldchr
0
99
Member Avatar for humbug

Here's my predicament. I Have managed to send and retrieve some HTTP requests using the GET method successfully using the following code: [code=php] function send_to_host($host,$method,$path='/',$data='',$useragent=0){ // Supply a default method of GET if the one passed was empty if (empty($method)) { $method = 'GET'; } $method = strtoupper($method); $fp = …

Member Avatar for hielo
0
167
Member Avatar for serkan sendur

[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> <title></title> <script type="text/javascript"> function doSomething() { alert("works"); } window.onload = function() { var btn = document.createElement("input"); btn.type = "button"; btn.value = "click"; btn.onclick = "doSomething();"; document.body.appendChild(btn); } </script> </head> <body> </body> </html>[/CODE] What is the problem?

Member Avatar for hielo
0
183
Member Avatar for Roybut

Hi, I'm trying to create a database that stores shoes. Each shoe must have more than one size so I have created a table "mens_boot_test" with a field "size". In the size field I have an integer which holds the delimited values 1,2,3,4,5,6,7,8,9. I'm then trying to retrieve these values …

Member Avatar for Roybut
0
88
Member Avatar for OzY360

Hello. I have been assigned a programming task which is to be completed using assembly language for motorolla 68k (os9). I will attach the assignment brief to the email and a copy of the source code in a txt file. I have to adapt the code so that it does …

Member Avatar for OzY360
0
193
Member Avatar for Andrieux

I have IPB 2.3.5. I need to decrypt (or encrypt) the passwords from the database so I can compare them to user input from another page. So, how does anyone happen to know how IPB encrypts their passwords? (Or how to decrypt them?)

Member Avatar for Andrieux
0
646
Member Avatar for hurbano

i need help using the following .h file to Write a definition of a member function void complementSet(); which for a set A, the complement of A is the difference of U-A, where U is the universe set. Would the universe set be the monthsSet istself?? Thank you all very …

Member Avatar for hurbano
0
2K
Member Avatar for rickster11

Each time the program goes through a loop, nameField gets bigger and bigger. Strcat keeps adding new names to the field. How can I clear the field after each output? I thought it was something like nameField = {' '};...but that doesn't work. There has to be a simply way …

Member Avatar for rickster11
0
144

The End.