199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tommymac501

Pyscripter seems to be hard coded to use versions 2.3 to 2.6, and skips over 2.7, moving on to 3.0 and 3.1 - niether which seem to play nice with Unix data. Considering 2.7 is Python.org's current stable release, does anyone know how to get Pyscripter to use it? I've …

Member Avatar for pyscripter
0
416
Member Avatar for darkangel07

a1x1 + b1x2 + c1x3 = d1 a2x1 + b2x2 + c2x3 = d2 a3x1 + b3x2 + c3x3 = d3 create a c++ program that will accept the values for a,b,c,d and determine the values for x1, x2, x3. Display the values for x1, x2, x3... need help now!!!! …

Member Avatar for tesuji
0
151
Member Avatar for bunifrog

I already have a Please Press Enter to continue... Statement for the end of my list that will allow the list to stay on the screen, be read, then when the user is ready they hit enter and the list continues to the next page. That is part of the …

Member Avatar for bunifrog
0
187
Member Avatar for jaycastr

Hello all I have a page in php that INSERTs data in a database via a query. My problem is that when you refresh the page the data is INSERTed again. How can I stop this. Thanks in advance

Member Avatar for metalix
0
109
Member Avatar for Brims

Im having problems with this script. Right now it adds everthing to the database if I take this out [php] <p><b>Genre:</b> <p><input type="radio" name="genre" value="existing" /> Existing => <select name="existing"> <option>Select One</option> <?php // Retrieve all the artists and add to the pull-down menu. $query = "SELECT genre_id, (genre_name) AS …

Member Avatar for metalix
0
162
Member Avatar for gahhon

how to reverse it? i had tried [CODE]#include <stdio.h> void main() { int i = 30; int x; char reverse[31]; char title[31] = "programming concepts and design"; for(x = 0; x >= 0; x++) { reverse[x] = title[i]; i--; } printf("The reverse order is %s\n", reverse[x]); } [/CODE] the result …

Member Avatar for gerard4143
0
235
Member Avatar for KirkK

In this scenario, I have two issues; 1) Why is selection 4 not taking me to exit the program variable? 2) Why is selection 2 telling me I went backward? Thank you in advance! #start and display menu def main(): #fuel fuelUsed = 0 fuel = int(200) feet = int(0) …

Member Avatar for TrustyTony
0
91
Member Avatar for ello

I have some code which echo's a paragraph from a database, but is there anyway to make the paragraph have a title by calling the same Field? I've had a look for formating text which is being echoed, but I'm not sure how to go about having a title one …

Member Avatar for metalix
0
99
Member Avatar for Venom Rush

Hi all I'd just like to know if it's possible to specify two different values for the same column in a WHERE in MySQL. For example [CODE=mysql]...WHERE column1 = 0 OR WHERE column1 = 20[/CODE] That's what I'm using at the moment but it only returns a result where column1 …

Member Avatar for tesuji
0
227
Member Avatar for Xufyan

See the code below, [CODE]import java.io.*; class Test1 { public static void main (String arge[]) throws IOException { InputStreamReader values = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (values); String value,store; char ch; System.out.print ("Input String: "); value = br.readLine(); store = ''; int ln = value.length(); for (int …

Member Avatar for Xufyan
0
260
Member Avatar for AdventGamer

I've been working with linked list and i'm currently trying to make my copyList template function work. It should return the head of the new list. Could someone give me some advice on how to fix it, currently i get no output when i try to print the copied list. …

Member Avatar for mrnutty
0
1K
Member Avatar for JDuch

I would like to save the output of the python help() function to a file eg the output of >>> help("modules") [CODE] amongst others i used modfile = open("env:.P_ModList","w") mods = help("modules") print >>modfile , mods modfile.close() [/CODE] to no avail. Is there a solution?

Member Avatar for vegaseat
0
2K
Member Avatar for mrkaran

if i have two strings say: string str1,str2; then how can i compare them by using strcmp function?

Member Avatar for NathanOliver
0
102
Member Avatar for TheWolverine

Hi all, I have an issue with a piece of code that I am writing. The problem I'm facing is that I have a base class and a derived class, and the base class contains a pure virtual function. I then want to overload the pure virtual function with a …

Member Avatar for mrnutty
0
2K
Member Avatar for dss1331

Hi, I've got an assignment regarding the use of gotoxy in for loop,the result i'm supposed to get is this **** **** **** **** **** **** **** **** Please help me out..

Member Avatar for daviddoria
0
43
Member Avatar for jk_bscomp

Hello everybody!!! Can someone help me on how to create an executable file on java? I made some applications in java but my problem is, I need to compile my program everytime I want them to run ... What I want is to compile my program once and then just …

Member Avatar for nickguletskii
0
167
Member Avatar for anushri

i create a java prog for simple banking purpose.. but its not working properly... when we create account through 2nd option,it work as it coded but if go through 1st option it doesnot access created object but create new one....and unable to perform deposit and withdraw function in created account. …

Member Avatar for nickguletskii
0
171
Member Avatar for raj26061990

The two numbers are accepted as Commamnd line arguements and GCD of those numbers are found using a recursive method.

Member Avatar for raj26061990
0
2K
Member Avatar for Beat_Slayer

Aproach to the implementation of K-Nearest Neighbor (KNN) using the Euclidean algorithm. Sample Usage: [CODE]mywork = Words_Works() lit = 'literature.txt' mywork.add_category(lit, 'Literature') # adding files as category comp = 'computers.txt' mywork.add_category(comp, 'Computers') phy = 'physics.txt' mywork.add_category(phy, 'Physics') # saving categories dictionary to file mywork.save_categories() # can be loaded calling load_categories() …

Member Avatar for Beat_Slayer
0
795
Member Avatar for Your_mum

Hello DaniWeb, I'm relatively new to DaniWeb, and recently decided to come back to an attempt at learning to C++. I just finished reading a particular section on OOP etc. and i have some questions about pointers to objects: like: [CODE] MyClass *Object; [/CODE] Can someone please: 1) Explain why …

Member Avatar for Your_mum
0
217
Member Avatar for PixelExchange

Hello everyone. I know how to create a .exe file, but I do not know how to "install" my .exe on another persons' computer. I realize that I could just make all images, sounds, etc, into resources, and simply have someone execute my .exe file, but I want to "install" …

Member Avatar for group256
0
165
Member Avatar for Xufyan

I got to assignment first one was to print the data of two students using different classes and constructors and count the total numbers of records and i've done this. here is the program. [CODE]public class Student { int RollNo; String name; static int stdcount=0; public void print(){ System.out.println ("Roll …

Member Avatar for NormR1
0
837
Member Avatar for Hektzu

I have if statement which doesn't return true even though it should. [CODE] std::vector<__int64> numbers; for( __int64 i = 2; i < input; i++ ) { numbers.push_back(i); } __int64 tmp = 4; for (unsigned int i = 0; i < numbers.size(); i++) { [U][B]if ( numbers[i] == tmp )[/B][/U] { …

Member Avatar for Hektzu
0
107
Member Avatar for trippinz

I have embedded a font SUCCESSFULLY into my program. It works on my computer and on the majority of other computers (all of different versions of Windows OS) HOWEVER For some reason, on some computers, the unicode characters (which normally show up just fine) show up as blanks... Instead of …

Member Avatar for trippinz
0
125
Member Avatar for amer.m

Dear all, i'm new in vbscript and i want to take a string from database and load it into xml dom object but i can't. My code: 'Creating XML object set xmlDoc=CreateObject("Microsoft.XMLDOM") xmlDoc.async="false" xmlDoc.load MsgBox xmlDoc for each x in xmlDoc.documentElement.childNodes frmMyForm.timeinfo2.value=x.nodename frmMyForm.timeinfo3.value=x.text 'document.write(x.nodename) 'document.write(": ") 'document.write(x.text) next

Member Avatar for hielo
0
467
Member Avatar for AndrewDBrown

Hi, I am trying to read the subject line on all of my emails within: Personal Folders|Inbox\TEST I need to do this on the fly (using late binding) and once read delete the email. I am using VBA within MS Access and to say that I have got stuck is …

0
89
Member Avatar for enkidu75

I am making a program for my class where I handle equation problems such as: 2a-3b+5c=10 3a-2b-3c=-5 where the answer would be: 5a-5b+2c=5 This is what I have so far. It still isn't perfect cause I still haven't figured out the "=" part. I do have it performing the math …

Member Avatar for enkidu75
0
99
Member Avatar for skyzer

[url]http://www.gasuinfo.org/planetarysystem/index.html[/url] [CODE]<html> <head> <title>Planetary system</title> </head> <body> <p> Applet</p> <p align=center> <applet code="applet.class" archive="planetary.jar" width="900" height="600" > </applet> </p> </body> </html>[/CODE] if i run my applet from eclipse, then it works fine. in command line i wrote [I]jar cvf0 planetary.jar *[/I], jar file was created and i uploaded it and …

Member Avatar for NormR1
0
130
Member Avatar for raghujosh

I am trying to connect to a SQL server 2008 database from within Eclipse. My SQL server uses integrated authentication for login. Eclipse prompts for integrated authentication , but it is unable to login. I get an error message as "This driver is not configured for Integrated authentication". The sqljdbc_auth.dll …

Member Avatar for raghujosh
0
434
Member Avatar for beforetheyknew

I'm looking for assessment questions which test a persons ability to abstract(assuming no programming knowledge). I've search all over online and found very little. Also what questions could i use to test someones abilty to think of different uses for objects. Any help would be appreciated.

Member Avatar for beforetheyknew
0
363
Member Avatar for plasticfood

[CODE]import wx class bucky(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Frame aka window', size=(400,300)) panel=wx.Panel(self) status=self.CreateStatusBar() menubar=wx.MenuBar() first=wx.Menu() second=wx.Menu() first.Append(wx.NewId(),"new window") first.Append(wx.NewId(),"Open...") menubar.Append(first,"File") menubar.Append(second,"edit") self.SetMenuBar(menubar) if __name__=='__main__': app=wx.PySimpleApp() Frame=bucky(parent=None, id=-1) Frame.Show() app.MainLoop() [/CODE] when i run this program, i get a "self is not defined in status=self.CreateStatusBar()". so i erased that part, and it …

Member Avatar for plasticfood
0
153
Member Avatar for student_

I am trying to make a program which so i can put in orders and have shopping and handling calculated the problem is, each time i run the program there will be a different number of people placing an order, how would i set up a loop that on each …

Member Avatar for vegaseat
0
291
Member Avatar for shahanakazi

Hi.. Can anyone please help me to write the following program: Write a program that will calculate the price to be paid for the development of photographs. The program must use two overloaded functions, each named calcTotal. If the client wants jumbo photographs, and the film is a 36 exposure …

Member Avatar for shahanakazi
0
93
Member Avatar for Melow

i would need same help, i don't understand why this is not working what i'm trying to do is to make a small slideshow. i searched the web and i saw that this it should be done... my problem is that the JLabel that should contain an ImageIcon doesn't load …

Member Avatar for tong1
0
164
Member Avatar for johndoe444

If class A has a virtual method and then class B which is subclasses A, overrides that method. Then class C subclasses B. So now C is supposed to inherit B's overriden method, and not A's virtual method. Then if C wants to override B's one it can't because B's …

Member Avatar for Zinderin
0
168
Member Avatar for alex9292

I im trying to make a simple program that would create book objects and assign them a price title author and number of pages and the price cant be more than 10 cents per page. the program has to throw an exception if the price is more than that and …

Member Avatar for alex9292
0
159
Member Avatar for Sync.Void

I am in school and as a project I am building a mock Database from SQL Statements. I like having clean code and since I am at home building these statements on notepad to execute at school later I have a questions about white space. When I use CREATE TABLE …

Member Avatar for Sync.Void
0
81
Member Avatar for algoexpert

i am using window 7 .in window 7 tubo c++ does not support full screen mode .i want to use the graphics functions of turbo c.i am unable to use graphics in turbo cin window 7.so please anyone tell me the solution.

Member Avatar for Kakashi Hatake
0
139
Member Avatar for aladar04

Can you help me with the equivalent code of this in firefox? Thanks in advance. [CODE]<html> <head> <title>Event Handling</title> <script type="text/javascript"> <!-- //MOUSE COORDINATES function updateMouseCoordinates(){ coordinates.innerText = event.srcElement.tagName + "(" + event.offsetX + "," + event.offsetY + ")";//works on IE not in firefox } //--> </script> </head> <body onmousemove="updateMouseCoordinates()"> …

Member Avatar for gumape
0
155
Member Avatar for Kligham

Hi, I'm having trouble getting access to a Radio button. I found on the internet that I can use: [CODE]document.form_name.radio_name[number].checked = true;[/CODE] So I'm doing that: [CODE]document.hitForm.Answer_1[0].checked = true;[/CODE] But it isn't working. I have included a picture of the Chrome Dom inspector. [URL="http://yfrog.com/n0radiobuttonsj"]Pic[/URL] The first circle points to the …

Member Avatar for Kligham
0
90
Member Avatar for mahdir24

I'm working on a project from school - airline reservation system. I have a slight problem. I created a class time and another class aircraft. In the class aircraft i have created two private data members of the type time - atime, dtime. Now why does the compiler flag an …

Member Avatar for mahdir24
0
137
Member Avatar for kiryoku

I need to delete duplicating input.. for example. in a list box I input a a a b b then I want to delete all 'a' the listbox must show: b b i hope there is someone who can help me..thanks!! Public Class Form1 Private Sub btnadd_Click(ByVal sender As System.Object, …

Member Avatar for kiryoku
0
127
Member Avatar for indr

the following is the code... #include<iostream> #include<iomanip> using namespace std; int main() { float start_temp,stop_temp; float step,F,C; cout<<"start temperature:"; cin>>start_temp; cout<<"stop temperature:"; cin>>stop_temp; cout<<"step temperature:"; cin>>step; float i=0; cout<<setw(10)<<"celsius"<<setw(15)<<"fahrenheit"<<endl; cout<<setw(25)<<"celsius"<<setw(15)<<"fahrenheit"<<endl; for(i=start_temp;i<=stop_temp;i=i+step) { C=(5.0/9.0)*(i-32); F=32+(9.0/5.0)*i; cout<<setprecision(2); cout.setf(ios::fixed); cout<<setw(10)<<C<<setw(10)<<i<<setw(10)<<F<<endl; } } and the output for the above code is: start temperature: 0 …

Member Avatar for Luther von Wulf
0
119
Member Avatar for muniba

plz tell me where i am stuck.how could i solve this package drawing; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.File; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.*; import javax.swing.event.*; /** * * @author */ …

Member Avatar for nickguletskii
0
122
Member Avatar for mehak gupta

Hey Guys, my code is having some technical error at run time. It shows following error An unhandled exception of type 'System.NullReferenceException' occurred in parserFunction.exe Additional information: Object reference not set to an instance of an object. Can you please suggest me the way to correct it?[code]using System; using System.IO; …

Member Avatar for mehak gupta
0
102
Member Avatar for AndrewDBrown

I am just starting to play with PHP (and this is my first post). I need to send out an invitation via email to some of our clients. This email will contain a hyperlink along with a unique reference ID for each client, something like this: [url]www.oursite.com/invitation.php?ID=ABC123[/url] I need to …

Member Avatar for AndrewDBrown
0
134
Member Avatar for Dazaa

Hi, I want to know if I can use the structure pointer -> to access a structure that is in an array. currently I am using this: [CODE] while (inFile.good()){ inFile.getline(cstring,80); [B] (*points[size]).x = strtod(cstring,&pEnd); (*points[size]).y = strtod(pEnd, NULL);[/B] size++; } [/CODE] points is a pointer to an array of …

Member Avatar for mike_2000_17
0
144
Member Avatar for johndoe444

They listed the design patterns in their book. But did they really invent the design patterns or summarized the works of others in their book? If the later is true then why are they called GOF patterns which credits them for others works?

Member Avatar for pritaeas
0
86
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Member Avatar for JamesCherrill
0
166
Member Avatar for JDuch

""" Hi i intended to list the built-in function using this function. It seems however to give me the results corresponding with a dictionary. Why is that ? """" [CODE] def showbuiltins(): """ saves the list of built in functions to a file you chose """ blist = dir(__builtins__) print …

Member Avatar for JDuch
0
188

The End.