199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for drichird

I am finding myself a little confused about how Python imports. Would the following be a correct statement: In any Python interactive shell, if the shell (since it was initiated or opened) has never before imported "myScript.py" then if the user types in "myScript" he will get an error like: …

Member Avatar for drichird
0
391
Member Avatar for kutuup

I'm trying to implement a template class called "Tree", here is the code for the main function: [code=c++] #include "Stack.h" #include <iostream> #include <time.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int gameObjects = 0; Tree<Player>* PlayerTree = new Tree<Player>; Player** players; players = new Player* [5]; Player* …

Member Avatar for pubudu1199
0
150
Member Avatar for Jake.20

Good evening guys, i just want to ask if the dbname.ssmssln something is sendable and usable on other computer or not. because i created a database and my other friend wants to see it and i send the ssmssln file i just want to know if he can access it. …

Member Avatar for Jake.20
0
158
Member Avatar for SAM2012

Dear All, I have function that works like this. Here # represnts one word while * is for one alphabet. Can anyone help me changing this code where # is for 0-N words, means it works if at # there is no word between dots, while for * there must …

Member Avatar for SAM2012
0
428
Member Avatar for sowh4t

Really really need help with this one! I need to convert from php to mysql so that it reads language information from mysql, i made mysql table already but I just don't know how to change from php to mysql <?php session_start(); header('Cache-control: private'); if(isSet($_GET['lang'])) { $lang = $_GET['lang']; $_SESSION['lang'] …

Member Avatar for diafol
0
259
Member Avatar for huphane

public class Exercise { /** * @param args the command line arguments */ public static void main(String[] args) { String A[] = { "Joseph","Ariana","Xena","Rene","Peter","Diana","Rihanna"}; String B[] = {"Madona","Diddy","Joe","Alice"}; for(int j = 0; j < A.length; j++) { for(int s = j +1; s < B.length; s++) for(int i = 0 …

Member Avatar for NormR1
0
285
Member Avatar for mistersalty

Hi, I'm kind of new to VB and I'm trying to make myself a little game to help me get into the swing of VB (I know some java). Basically what I'm trying to do is this, I have 20 statements in a Select Case (right now they're just labels …

Member Avatar for mistersalty
0
238
Member Avatar for millsasbc

Hey Have a real problem here, I am making a simple calculator and it's saying InvalidCastException was unhandled when I try to debug it, here's the code, please tell me whats wrong with it: (and yes I have renamed the textboxes to addequals etc... ______________________________________________________________________________________________________ Public Class Form1 Private Sub …

Member Avatar for millsasbc
0
162
Member Avatar for Youg

Hi, working on a piece of code which loads in two images, one is a scrambled version of the other, compares them and then attempts to make a new image from the scrambled version. So far I've got it making a new image, comparing and unscrambling most of it, just …

0
207
Member Avatar for stinkypete

I have a C++ application that I want to make more flexible and user-friendly. It currently contains seven nested for-loops, and part of the new flexibility is that this number will become variable (between two and twenty, say). What is the easiest way to achieve this?

Member Avatar for vmanes
0
151
Member Avatar for niceyout

hello i am creating a tictictoe game , however i cannot get the program to check if the player has won or not . and produce a you have won message #include<iostream> #include"110ct.h" using namespace std; class TICTACTOE { CursorController*crs; ColourController*cl; int xplayer ; int oplayer; colour Cs; public: void …

Member Avatar for niceyout
0
170
Member Avatar for AndradaK

I need implementation of this problem using ADT List. It should have at least 3 modules( classes). Help me please! A math teacher needs a program in order to help students to test different properties of numbers. The program manages a list of numbers and also allows students to repeatedly …

Member Avatar for TrustyTony
0
511
Member Avatar for sdr001

Hello, I use the code below to get the long lat of the location where the user clicked on a Google Map (in Android). Projection p = map.getProjection(); geoPoint = p.fromPixels((int) e.getX(), (int) e.getY()); It gives me coordinates, however it does not place a decimal in the geoPoint. Any suggestions …

Member Avatar for NormR1
0
126
Member Avatar for apanimesh061

<?php include('./phplot.php'); $graph =& new PHPlot(); $example_data = array( array('a',3), array('b',5), array('c',7), array('d',8), array('e',2), array('f',6), array('g',7) ); $graph->SetDataValues($example_data); $graph->DrawGraph(); ?> When ever I run this program I get an error ! `The image "http://localhost/test.php" cannot be displayed because it contains errors.` I also have GD library enabled! What is the …

Member Avatar for veedeoo
0
343
Member Avatar for shapam

Hi in my database data stored in the below format. r{iq7, z|th{op, xzqiiu. i want to know the which type of format is this one and how to get orginal data using these texts... Thanks in adv.. ..

Member Avatar for adam_k
0
82
Member Avatar for razamughal67

Hello every one we want to show a drive contains files and folder i mean which files in a drive example we use a label1 and we want to my C:\ drive containg files

Member Avatar for Jx_Man
0
195
Member Avatar for TakinANapster

Hello! 1st let me apologize if I have duplicated a post. I am a newbie to DaniWeb (and to Java and HTML) and have searched your forum for a few hours now and not found and answer to my problem. I was hoping someone could help. I have a simple …

Member Avatar for NormR1
0
1K
Member Avatar for broj1

Hi all I would like to display several charts on a webpage. I have designed a class that would draw each chart using GD and based on data set by a public method. Unfortunately instead of charts being drawn I get an error message: The image ... cannot be displayed …

Member Avatar for broj1
0
237
Member Avatar for rawrawrs

Hi. I'm a newbie in php, and I recently bought a book called PHP and MySQL Web Development by Luke Wlling and Laura Thomson. I was able to make an order form in Chapter 1, but in Chapter 2, I have to process orders so that every time I fill …

Member Avatar for rawrawrs
0
273
Member Avatar for jarograv

I have a list that looks similar to thisand is stored in a text file; last, first, code smith, john, test I cannot figure out why it is out of bounds. Where am I going wrong? is it in the split statement? import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.DataInputStream; import java.io.FileInputStream; …

Member Avatar for jarograv
0
227
Member Avatar for Stjerne

Hello, So I got the following classes: Book BookRegister GUI Main Book contains basic information about what kind of book you want to register. BookRegister contains the linked list for registration. In the GUI, I'm using JList. The thing is, I want to put all my books I register into …

Member Avatar for NormR1
0
309
Member Avatar for sonicx2218

Hey bros. I made a program that prints out random numbers in a linked list. I want to have the index number next to each of the random numbers in the list. I guess for example like: 1 25 2 123 3 56 ect. Here's m program so far, and …

Member Avatar for NormR1
0
334
Member Avatar for brandon66

Hey everyone, having some troubles getting this down mostly step 4 i believe i have everything else correct not sure though. Im not sure how i would go by doing step 4 i can have it print the 9th value but im lost after that.. 1. Create a one-dimensional array …

Member Avatar for brandon66
0
617
Member Avatar for Mopikope

I am having a problem with an address book program. The problem is that when I try to set the fnTextField, lNTextField, ...etc I get null in all the JTextEdits. I've went through the debugger and before the I called `Edit edit = new Edit(1)` the values are in the …

Member Avatar for Mopikope
0
155
Member Avatar for serdas

hi, i found below online 00 11,16 * * * /home/ramesh/bin/incremental-backup i understand that it does 00 – 0th Minute (Top of the hour) 11,16 – 11 AM and 4 PM * – Every day * – Every month * – Every day of the week but what i need …

Member Avatar for cereal
0
452
Member Avatar for gilgil2

Hi I am trying to allow users to update records in a MySql database through php forms. One problem I am having is with a drop down field for dates. I want to echo the date already in the database so that the drop down menus is set to that …

Member Avatar for gilgil2
0
188
Member Avatar for zachattack05

I need an array for a method to use to iterate through a string's characters and perform certain operations when one is found or found in certain combinations. Anyway, to keep things separate and easier to interpret later, I have created an array of characters for the method to iterate …

Member Avatar for zachattack05
0
116
Member Avatar for bsewell

Hello all, I have an interesting bug in a calculator I have written. I've snipped the code done to something to get an idea of the calculator. So, if I clilck on Imperial, I can't seem to put input into my text boxes. However, if I press my TAB button …

0
124
Member Avatar for zspoja

I don't have any proper experience with MySQL but need to make a query from python to a database that would return a list of vacant apartments. So, I know the number_of_beds, start_date and end_date and need to get a list of available apartments. The two MySQl tables that I …

Member Avatar for zspoja
0
737
Member Avatar for TrustyTony

Here is base conversion function written to deal also with [negative bases](http://en.wikipedia.org/wiki/Negative_base). Not yet balanced ternary, where numbers themselves can be negative, maybe later I add it.. Based on the code in the wikipedia article, which has bug for converting 0.[**Edit: I fixed the bug in wikipedia**]

Member Avatar for TrustyTony
0
249
Member Avatar for Shuel

Hi All, I am having contsantly getting the following error: PHP Fatal error: Out of memory (allocated 4295491584) (tried to allocate 8589934593 bytes) the line its complaining about is as following hilighted in bold: [code]<?php $link = @sybase_connect('****', '***', '****') or die("Could not connect !"); echo "Connected successfully"; $sql = …

Member Avatar for mypaper
0
271
Member Avatar for heinlein_

Hi, I have a little problem. I want to replace words in a text, but only 'whole words'. That is, I'm looking for a method that changes "cat", but not "catfood". I know how to do it using re.sub, like this: re.sub(r'\bword\b', 'change', text) Only problem is, I'm using a …

Member Avatar for heinlein_
0
8K
Member Avatar for bsewell

Hello all, I'm trying to get a calculation to appear in a DIV, in HTML. The calculation shows fine with the HTML, but my problem is that the result is showing straight away. I want it to display 5 seconds after the calculation is done (it's done in jquery). What …

Member Avatar for bsewell
0
154
Member Avatar for haris riaz

void combination::OnButton2() { // TODO: Add your control notification handler code here m_progress.SetPos(0); m_progress.SetRange(0,100); combination a; a.make_combinations(0); } void combination:: make_combinations(int lo_val) { srand(time(0)); m_progress.StepIt(); ofstream fout("combination.txt",ios::app); ofstream fout2("time.txt",ios::app); for(int i=0; i<theApp.no_of_process; i++) { //m_progress.OffsetPos(100/4); //m_progress.SetStep(200); clock_t begin=clock(); arr[lo_val] = i; if(lo_val==(theApp.no_of_tasks)-1) { for( int j=0; j<theApp.no_of_tasks; j++) { int …

Member Avatar for ashishchoure
0
279
Member Avatar for blez

Hello everyone... I am new to the programmers world... Can anyone tell me if i can find a version of C or C++ for symbian? s60 v3? I want to write C/C++ programs but from my mobile phone... I have been searching the internet for the last 4 hours and …

Member Avatar for vijay.kanta
0
1K
Member Avatar for erms

Hi, This might sound stupid, but "please" cope with me. I got an image in jpg format which I want to read in an array or something (not sure) I only want the bytes of the image, not the headers, size, thumb etc. Basically what I'm trying to do is: …

Member Avatar for erms
0
293
Member Avatar for phorce

Hello, Quick question.. I'm trying to get the mean of a matrix (vector) now before I created a function that did it but I thought that it isn't really an effective way of coding. I've been looking at the accumulate function online and wanted to ask if this would work: …

Member Avatar for Banfa
0
143
Member Avatar for garvit184

I need help in running a program that makes a SLR Parser Table. Here is the code : Code to find first and follow: saved as SLR.h #include<stdio.h> #include<ctype.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<iostream.h> #define epsilon '^' // since I didn't know how to type epsilon symbol temporily I am using …

0
567
Member Avatar for ak47carbon

on body load it is getting value of function tryt2(l) but iwant that on body load it get both function value and onclick i want to play animation.gif while getting data from 001.php but after getting data img will be removed plz tell me ASAP <html> <head> <script type="text/javascript"> var …

Member Avatar for ak47carbon
0
175
Member Avatar for qaman88

""" # Tic Tac Toe Author: Tlamangile Ngobeni Lecture: Gary Stewart Department: University of Cape Town Website: www.uct.ac.za Last edited: March 2011 """ from random import* # to alternate who play first def move(position,matrix,symbol): #define the fuction to make a move by replacing to list #if statement to check user …

Member Avatar for TrustyTony
0
185
Member Avatar for HasNor

hi all.. i have a problem. Actually i want to view respond select by MAX(tran_id)...don't know why when i run this code, i do not get the max/ last respond.. it return to me the first respond..for the tran_id it view the max id but not for respond..here the script..hope …

Member Avatar for HasNor
0
126
Member Avatar for tamerhanna

Hi, I'm having a problem with a datetimepicker and databinding. I bind the text of the picker to a value from the database and it works perfectly fine and shows the value correctly, however whenever i change the text in the datetimepicker field to update, it changes, BUT gets back …

Member Avatar for mtroli
0
507
Member Avatar for evilguyme

hey just wondering how i can make a countdown timer in a windows forms app or just how to display an updating value onto the form. wanted to make a countdown for number of seconds the user inputs. thnx.

Member Avatar for pointin
0
252
Member Avatar for dan1992

How to make this program #include <stdio.h> #include <conio.h> #include <math.h> int main(){ clrscr(); for(i=0;i<10;i++) for(j=0;j<10;j++) printf("a[%d][%d] = %d \n",i,j,a[i][j]); printf("cu pointer\n"); for(i=0;i<10;i++) for(j=0;j<10;j++) printf("a[%d][%d] = %d \n",i,j,*(p+i)); getch(); } int a[4][4],b4[3][3],b1[3][3],b2[3][3],b3[3][3],n,c1,c2,c3,c4,i,j; printf("\nIntroduceti elementele Matricei cu 4 linii si 4 coloane: \n"); int *mat; n=4; for (i=0; i<n; i++){ for …

Member Avatar for dan1992
0
170
Member Avatar for asif49

I can't find the answer to this on google because I'm not sure exactly what to search for. I'm building a program where there will hardly ever be new data being added in however the data which is in the system will need to be displayed often. So what I'm …

Member Avatar for mike_2000_17
0
172
Member Avatar for Python4Psudo

# Here is a piece of code I wrote as to a homework assignment # # I would like the community's opinion on structure and style. This code gives the factorial of a user defined number(near as I could tell by the online math help.) print "This is a problem …

Member Avatar for Python4Psudo
0
194
Member Avatar for bastiaanvos

I was doing some past exam questions as a way of studying for an exam next month. One of the questions that I could not do was this: "Write a procedure that returns a two dimensional square array of size n x n, initialised with random real numbers between -100 …

Member Avatar for Momerath
0
220
Member Avatar for Pgmer

Hi all. im writing function to find and replace the string. Im using 2 textbox's one for keyword which is to find and one to to replace. im having having two buttons btnfindnext and btnreplace. if i click on replace button it should select the text first and agin if …

Member Avatar for shamy086
0
237
Member Avatar for kiail

Hello, I have a text file that I need to convert the list of numbers into integers. So far I'm just reading it in real basic(I've tried a lot of code before I came here, I usually do, but I'm still a noob/boob). I have two columns rating and frequency, …

Member Avatar for kiail
0
162
Member Avatar for Infame

Hello! I'm having a slight problem with a event... What I'm basically trying to do is: Activate a on button event, that fetches source code, then posts it within the edit window with "SetWindowText(hTextBox, get_source("website", "path"));". Sadly, this didn't quite work out that well, as I recieve a Run- Time …

Member Avatar for BobS0327
0
106

The End.