132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RHNation

def main(): print ('Welcome to the mpg calculator program') print() #get the miles driven using the input function miles_driven = input ("Please enter miles driven: ") miles_driven = float (miles_driven) #get the gallons used using the input function gallons_used = input ("Please enter gallons used: ") galons_used = float (gallons_used) …

Software Development python
Member Avatar for farmwife
0
302
Member Avatar for eshajoshi

Hi can andbody help me? Below is my code. I get this message: Run-time error '-2147217900(80040e14)': Table 'PreampAutoDetect' already exists. The error points to the line below with the stars around it. stringSQL4 = ... Please help me ... Private Sub Command4_Click() ' Copy Tables from List1 to Database(s) in …

Software Development open-source visual-basic
Member Avatar for ss125
0
2K
Member Avatar for koya.emer

Hi... I'm a new user here. I've stumbled across this place on a couple occasions in the past, and it worked out to my advantage when I needed a little help with some coding assignments. i need to include "parenthesis" in the equation in my program but i dont know …

Software Development java
Member Avatar for koya.emer
0
235
Member Avatar for onalenna.bobeilwe

develop a program which asks for a name and a password,and prints an acceptance message if the name is "aladdin" and the password is "sesane".the program should print a reject message in all other cases.this should be achived by combining the two tests into one using the "and"key word

Software Development python
Member Avatar for farmwife
0
235
Member Avatar for farmwife

This error frustrates me when I want to iterate over the elements of a set, for example when trying to convert the set to a list. How do I get around it?

Software Development python
Member Avatar for farmwife
0
7K
Member Avatar for giancan

Hi guys, I need some help with lists or dicts. I have a list with 2 columns like this "123.04 241.30","232.00" [and so on for about 400 lines] and another list which is more complex: "val1","val2","val3","nnn.nn nnn.nn","232.00" (where "n" is a number) [some thousands lines] Now I want to compare …

Software Development python
Member Avatar for giancan
0
347
Member Avatar for boykaa

since three days I try to insert many record in DB , I m using struts 2 and hibernate 3.I have 3 tables: 1 Evaluationglobale (id_eval ,label) 2 SousEval(id_eval ,SousItem_ID), 3 SousItems(SousItem_ID,label) my issue is how to insert many record in table SousEval when using the last insert id_eval in …

Software Development java java-jsp javascript-jquery
0
147
Member Avatar for Dunkler

Hey guys, I am new here and have found many answers to my problems from this website so I figured it was time to join. Here's the deal: I have just started trying to learn Python through MIT's OpenCourseWare. I am currently on PS1a (Problem set 1a) and am having …

Software Development algorithm python
Member Avatar for Ashley_4
0
212
Member Avatar for kingkong123

Hi, there. I have a 2D array with 208. I must concatenate the strings by twos up to index 199. So that I have 108 strings. Then I must shuffling these 108 strings. The problem is that it isn't working right. After I concatenate the strings, then shuffle, several strings …

Software Development c++ perl
Member Avatar for Ancient Dragon
0
314
Member Avatar for johnpadgett54

I'm trying to write this code and having trouble compiling the code I've tried everthing but doesn't seem to want to work right, can you find any thing wrong in my code? {// Overtime Pay Structures.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> …

Software Development c++
Member Avatar for kal_crazy
0
172
Member Avatar for SpottyBlue

Can help? My casino code always fail to build. #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { char PlayerName[40]; // Player name int b_amount; // Current balance amount. int amount_BET; // Amount to be betted. int number; // Number bet by a player. int r_number; // …

Software Development c++
Member Avatar for kal_crazy
0
477
Member Avatar for farmwife

As I've learned more about basic console Python script writing, I've had a look at both Tkinter and GTK+...and, at first glance, I like GTK+ better. Which do you guys prefer, and why?

Software Development python tkinter
Member Avatar for farmwife
0
4K
Member Avatar for Rebecca_2

Hi, I have a quick, and what seems like very stupid question. I have a list of files in a directory with various extensions. I want to open only the ones with the extension '.txt'. I have got as far as finding them (and can print their filenames to a …

Software Development python
Member Avatar for vegaseat
0
228
Member Avatar for jason.angeles.75

import java.util.Scanner; import java.text.DecimalFormat; public class Main { public static void main(String[] args) { double radius; double circ; double area; radius = getRadius(); circ = calcCirc(); area = calcArea(); DecimalFormat fmt = new DecimalFormat ("0.##"); System.out.println("run \n " + "The circumference of the circle is \n" + circ + "The …

Software Development java
Member Avatar for Kenney_1
0
343
Member Avatar for sonu_1

hi i have problem , i want to modify a file without copy to another file so any one can give how to do it ? I tried following method to modify a given location or pointer in file but did not work . ofstream outfile; outfile.open ("test.txt"); outfile.seekp (3,ios::beg); …

Software Development c++ ios
Member Avatar for deceptikon
0
333
Member Avatar for minnie19

Basically im practising java and came up on a challenge that i have yet to overcome. I have added an ActionListener but i want each button to have there own Action. Also what i wanted is to hide the contents in the button. Would be much appreciated to see how …

Software Development java java-swing
Member Avatar for JamesCherrill
0
2K
Member Avatar for pars99

I have been playing around with C++ for awhile now and was wondering: what's the differnce between the [instance].[function] and [instance]->[function]? Does the dot notation just run the value and the arrow notation store value inside the instance?

Software Development c++
Member Avatar for deceptikon
0
157
Member Avatar for creativeguitar

Alright ill apreciate some help, so here is the exercise and also what i have done so far. im a little bit lost on how to keep going. Problem Description: 1. Create Minimal Account Class for containment in the Bank container. 2. Define a Bank Class to hold Account Objects …

Software Development data-structure java
Member Avatar for jwenting
0
1K
Member Avatar for blob84

Hello i implemented this FIFO queue: #include <stdio.h> void enqueue(int *, int); int dequeue(int *); int qempty(void); int head = 0; int tail = 0; int qerror(void); #define N 4 int main(void) { int i = 0; int v[N]; while (i < 10) { enqueue(v, i); i++; } while (!qempty()) …

Software Development c queue
Member Avatar for Nutster
0
11K
Member Avatar for ganges

Hi friends, i am using older version of hibernate jar files. I have little bit confusion between the older version and new version of jar files can you provide me the list of latest version of hibernate jar files thanks for your time

Software Development java
Member Avatar for jwenting
0
119
Member Avatar for Jsunil
Member Avatar for jwenting
0
55
Member Avatar for sammygreat1234

Hi, Any Help, I need guide/way on how to get Image from JLabel and set it to JTextArea in netbeans when a button is clicked. I have 3 Object: (1) Jlabel(with an imported picture in it) (2) JTextArea(to store the picture when Button is clicked) (3)A button I tried using …

Software Development image java
Member Avatar for sammygreat1234
0
2K
Member Avatar for IcdFlying

i have no idea why validate has this error. public bool Validate () { ItemPutUp = 0; List<string> errors = new List<string> (); foreach (ulong id in Trade.OtherOfferedItems) { var item = Trade.OtherInventory.GetItem(id); if (item.Defindex == 647) ItemPutUp += 72; else if (item.Defindex == 347) ItemPutUp += 180; else if …

Software Development
Member Avatar for ss125
0
200
Member Avatar for MasterHacker110

If I am right, your web browser sends a request to the server, the server in turn loads the page and send it to you. But the server can also request other information of your computer without you knowing it, like the type of browser you are running, your time, …

Software Development web-browser
0
97
Member Avatar for mikewyatt

I would like to take an image file on disk and display it to fit the size of a jlabel (preserve aspect ratio) the image can vary in size from 100x100 to 1600x1200 and the size of the jlabel is 256x192 (can change it only slightly if need be.) I …

Software Development image java
Member Avatar for JamesCherrill
0
194
Member Avatar for nazmule27

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.Sql; using Microsoft.Win32; //using Microsoft.SqlServer.Management.Smo; namespace DataSearchinginDB { public partial class frmDataSearching : Form { public frmDataSearching() { InitializeComponent(); } private void frmDataSearching_Load(object sender, EventArgs e) { SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance; …

Software Development
Member Avatar for imkhan2845
0
338
Member Avatar for thecreator232

hi guys !!! i want to make an web browser in python , as my college project . what i'm looking for is guidance , on how to make it and which module's shall i use . currently i'm planning to use webkit and gtk+ to obtain my goal. secondly …

Software Development python web-browser
Member Avatar for slate
0
468
Member Avatar for tricket_7

I have an input file with integers, I am obviously doing something wrong here, When I try to print the elements from the array, the integers are printing as 0's, and not even for the same amount. In the file there are 20 integers. mport java.io.*; import java.util.Scanner; import java.util.Arrays; …

Software Development java
Member Avatar for stultuske
0
256
Member Avatar for Ahmed.C

Hey guys, I've been working on this program and basically I've debugged everything and it all works fine on my computer BUT! I tried to take it to another computer to run it and it says "Program has stopped working". I don't get it. I've got all the fiels in …

Software Development vb.net
Member Avatar for Ahmed.C
0
232
Member Avatar for jbrock31

Hello everyone. I am trying to work through a programming challenge in my c++ book. I have gotten it to work, but i kind of cheated by looking at the file. I am going to past the entire code so i can be compiled, but the main problem i am …

Software Development c++ file-system ios
Member Avatar for samone1228
0
615
Member Avatar for eiallen

hey anybody know how to filter contents in ReportViewer during 'run-time'? somebody told me to read this [U][url]http://msdn.microsoft.com/en-us/library/ms252125%28v=vs.80%29.aspx[/url][/U] but this doesn't help at all because it filters contents in design time. What I need is to filter contents in 'run-time'. thanks in advance :?:

Software Development vb.net
Member Avatar for rhiyan.tale
0
1K
Member Avatar for PatMcC

Hi Everyone I have been programming on Linux for about 8 years part time. I have learned many languages and I am not afraid of using them. However I have learned to fear build systems, operating systems and IDEs. I have been going around in circles for years with Gui …

Software Development asp.net gui microsoft
Member Avatar for PatMcC
0
233
Member Avatar for Andrees92

Hi, this is my first post, and I'm in need of some help making an application that saves the data from a textbox to an access database. This is my code, it gives no errors, but when I use it, ie, I input the text in the textbox and click …

Software Development microsoft-access open-source vb.net
Member Avatar for Andrees92
0
319
Member Avatar for eshajoshi

Hi, I am having some with my program. I want to copy table content and data from one database to identical tables in different databases. (overriding the old tables) So far, in the different databases, I am able to delete the original table, create a new table with the same …

Software Development open-source visual-basic
Member Avatar for eshajoshi
0
143
Member Avatar for Nawaf15

Hi everyone, I am trying to write and application that will display a smiley face with a gray background and yellow face. This is what I have so far but it won't run. Can you please help me and show me how to get the application running? Thank you in …

Software Development java
Member Avatar for Nawaf15
0
264
Member Avatar for DM Galaxy

I require some help. I want to resize my form from the Corner (Right corner) in the boderless form. I know the coding as for resize it with the four different direction but unknown with the Corners. Codes I used to resize the Form from four different direction (up,down,right,left): Private …

Software Development vb.net
Member Avatar for tinstaafl
0
3K
Member Avatar for adadziwa

Hi Am working on a project and this time i want the use to choose whether or not to show the splash screen. If the user choose NOT to show a NO is registered in a hidden XML file which tell the program not to show the splash screen when …

Software Development vb.net
Member Avatar for adadziwa
0
140
Member Avatar for totalwar235

I am attempting to recompile a C program i programmed on linux. These are the errors i recieve: c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2275: 'FILE' : illegal use of this type as an expression c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(66) : see declaration of 'FILE' c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2065: 'sy' : undeclared identifier c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(29): error …

Software Development c c++ microsoft visual-studio
Member Avatar for totalwar235
0
485
Member Avatar for bishop_kv

Hi, I have a little problem with reading data from text file which has more than 5000 words. To make long story short, I need to make english to serbian translator.It has to have 2 text boxes,one for english word and one translation; one button for translating. I tried almost …

Software Development vb.net
Member Avatar for bishop_kv
0
181
Member Avatar for eldiablo1121

I have to write a program that repeats a sentence over a hundred times which also contains 8 random typos and have to have each sentence numbered. the sentence is: I will never spam my friends again the program's output should be 1. I will never spam my friends again. …

Software Development java
Member Avatar for stultuske
0
177
Member Avatar for eldiablo1121

Hello, I have this calculator program that compiles and runs just fine, but my loop will not break as intendend too, when I hit 5 it it still runs the options to enter a number, here is my code: import java.util.Scanner; public class calculator { public static void main(String[] args) …

Software Development java
Member Avatar for eldiablo1121
0
360
Member Avatar for G_Waddell

Hi, Getting some strange behaviour when using Interop to create a Word document from a template. I'm using word to generate a nicely formatted and printable Receipt from Sage 200 based on a Word Template. The code should open Word then create a new document based on the template I …

Software Development vb.net
Member Avatar for G_Waddell
0
257
Member Avatar for somjit{}

[Version 1](http://www.daniweb.com/software-development/java/threads/462737/generic-resizing-circular-array-.-do-i-need-to-implement-iterable-) had quite a few problems that i didnt think about. A lot of them were pointed out in the replies. I tried to correct them as best as i could to make this code. However , I'm having some doubts regarding what to do while implementing the Collection …

Software Development api daniweb-api java queue
Member Avatar for somjit{}
0
297
Member Avatar for LetGoFool

Hey guys, I don't really understand the usage of the get/Set/return keywords. get-Read Only set-Write Only(eh) return-Returns value to calling method Those are the definitions I have but can I have a small explanation on when to use these and how to use the get/set thank you very much.

Software Development c c# c++
Member Avatar for LetGoFool
0
305
Member Avatar for michaellooks

when dealing with files, is it possible to write or read any file extensions e.g. .docx, .pdf e.t.c.?

Software Development file-stream file-system java pdf
Member Avatar for michaellooks
0
130
Member Avatar for Varunkrishna

Hi everyone I am learning python, I came across a sample program which checks whether the given number is prime number or is not a prime number using **for loop** and **range()** function. I can't understand that program, can someone please help me understand it? Here is the program and …

Software Development python
Member Avatar for lucpet
0
949
Member Avatar for GeekPlease

Good day folks, Can anyone tell me why my code only accept the first word of the input. E.g., I input Ana mae.. The output will only consider Ana as my input hence it will produce like Hello, Ana! #include <iostream> #include <string> using namespace std; int main() { string …

Software Development c c# c++
Member Avatar for GeekPlease
0
189
Member Avatar for Alex_13

**nestedTriangles.cpp (attached) description:** The program takes as input a pair of triangles, specified be giving the coordinates of each triangle's vertices. It then determines if either triangle is "nested" within the other, meaning that one triangle lies entirely within the interior of the other. **Pseudocode:** One triangle lies within another …

Software Development c++ mathematics
Member Avatar for rubberman
0
466
Member Avatar for yussuf_1

is there an other website like **w3schools** but teaches other oop launguages

Software Development oop
Member Avatar for <M/>
0
96
Member Avatar for shea279

k so essentially have this code [CODE]HINTERNET hInternet; HINTERNET hFtpSession; hInternet = InternetOpen(NULL,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0); hFtpSession = InternetConnect(hInternet, "ftp.freetzi.com", INTERNET_DEFAULT_FTP_PORT, "myuser.freetzi.com", "mypassword", INTERNET_SERVICE_FTP, 0, 0); FtpPutFile(hFtpSession, "C:\\log.txt", "mylog.txt", FTP_TRANSFER_TYPE_BINARY, 0); if(FtpPutFile(hFtpSession, "C:\\log.txt", "mylog.txt", FTP_TRANSFER_TYPE_BINARY, 0)){ MessageBox(NULL, "Successfully uploaded log to ftp server!", "Ftp Upload", NULL); }else{ MessageBox(NULL, "Couldn't upload log to ftp …

Software Development c c# c++
Member Avatar for mohd_1
0
1K

The End.