132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DragonSlayerX

[CODE]class Triangle: def __init__(self,x,y,z): self.x = x self.y = y self.z = z def perimeter(self): return self.x + self.y + self.z def area(self): ang = acos(self.y^2 - self.x^2 - self.z^2 / -2 * self.x * self.z) h = sin(ang) * self.x return self.z * h / 2 triangle = Triangle(input("Please …

Software Development python
Member Avatar for Gribouillis
0
133
Member Avatar for bhagawatshinde

Hi anybody can help me , i want to connect the sql serverdatase from local machine in windows application. i am trying this like this way but it give me an error my connection string [CODE] return new SqlConnection(@"Data Source=68.71.135.2,2121;Initial Catalog=DBTest;User ID=myId;Password=mypass;");[/CODE] how i connect to server database. Thanks in …

Software Development
Member Avatar for bhagawatshinde
0
214
Member Avatar for ztdep

[CODE]// // Equation.h define the equation class to be solved. // #ifndef EQUATION_H #define EQUATION_H #include "Mesh.h" #include"Variable.h" #include"Media.h" #include"Simulation.h" #include <string> #include<vector> #include <assert.h> #include <iostream> using namespace std; class Equation { protected: // the equation name it should be the same with the variaible name string name; // …

Software Development c++
Member Avatar for mrnutty
0
155
Member Avatar for harinath_2007

Great to hear that.. Java SE 7 is officially released today! After nearly five years of collaboration within the worldwide Java community, Java Platform, Standard Edition is ready for download! It's an important step in Java’s evolution. The major features of Java SE 7 are: • Project Coin- many small …

Software Development api java
Member Avatar for jwenting
0
139
Member Avatar for br0wnm4n

Write a program that calculates the closing balance for an indeterminate number of checkbooks. The program must logically flow as follows: * Step 1. Ask for the data for the first checkbook- opening balance, withdrawals and deposits * Step 2. Display the opening balance, the number of withdrawals, the number …

Software Development c c# c++
Member Avatar for WaltP
0
1K
Member Avatar for laguardian

Hey guys! I'm trying to create an accounting system, one that can create worksheets, create balance sheets, etc.. Is it easier to do this in Java or some other programming language. Got any suggestions on how I can accomplish this?

Software Development java
Member Avatar for jwenting
0
173
Member Avatar for rayden150

Hello good people of YA programming section I really need some help here, I made a function to find me the multiplication of the factorial of any number that I input but if I put say 100 it only gives back 0, when it should give 5050, maybe its the …

Software Development c++
Member Avatar for WaltP
0
258
Member Avatar for pseudorandom21

I had a seemingly bright idea for a cleaner and easier to use operating system feature, for when the Windows clutter just gets too bad. Basically I want to alter the behavior of every window, such that when it loses focus it is minimized. But I don't know how to …

Software Development c++ operating-system
Member Avatar for pseudorandom21
0
142
Member Avatar for mrbungle

Quick question... Say I have a login form with a user ID, then a text box on the main form. When the main form closes, it takes that value from the text box and inserts it into the column based on that users ID Here's my code- [CODE] '// Save …

Software Development vb.net
Member Avatar for mrbungle
0
146
Member Avatar for berwick53

I'm learning C# coming C and I'm having probelms with this basic code getting the error "an object reference is required from a non-static field, method or property 'ConsoleApplication1.Program.Addtion(int, int)'" on the line 14 [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void …

Software Development c#
Member Avatar for Momerath
0
160
Member Avatar for zachattack05

If I have 2 or more tables and I need to have another table that is related to the data in those tables...how would I achieve that? As an example: Table A and B have totally different data and aren't directly related at all. I would like Table C to …

Software Development sql
Member Avatar for lolafuertes
0
214
Member Avatar for mreneeholland

Hi, I have been working on this all weekend and can't figure out what I am doing wrong. The objective is to collect 3 numbers from the user then display to them the numbers they entered, the lowest number entered, the highest number entered, the total, and the average. Can …

Software Development vb.net
Member Avatar for mreneeholland
0
123
Member Avatar for Bosterk

Hello, colleagues, Greetings I'm developing this code but I have problems on the part of a database query look at the full function code in which I have problems other than data base is [CODE]import sqlite3 as lite con = lite.connect('MiBase.sqlite') c = con.cursor() c.execute("""create table inventario (codigo real, producto …

Software Development python sqlite
Member Avatar for Bosterk
0
173
Member Avatar for 47pirates

I need to show the content of one panel class into another panel of another class ..i am new to java so i would appreciate any help...plz help me... in short i just want to add one panel into another through actionlistener of some button..

Software Development java
Member Avatar for 47pirates
0
410
Member Avatar for fsefsef23

I have a textbook question that's a two parter, the first part asks me to write the definition for a sumStack function (conceptually) with the prototype as: void sumStack(stack<int> istack) I can do that part simply enough, by having it pop each value of the stack and adding that value …

Software Development c++
Member Avatar for fsefsef23
0
266
Member Avatar for sairus

can you help me on how to convert the numbers into words . here is my example on how to do that program but im not sure if this is a correct program.. #<iostream.h> #<conio.h> int ones,tens,hundreds main() { cout<<"ENTER NUMBER"; cin>>number; cout<<"ENTER ONES"; cin>>ONES; if(number==1); cout<<"one"; else if(number==2); cout<<"two"; …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for vicious217

I am working on a project and i need to have the colume of 3 boxes but I keep getting errors when I try to compile. Can anyone help and see what I am doing wrong? Here is what I have so far: [CODE]#include <iostream> using std::cout; using std::endl; class …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for auwi987

hello can somebody check my query cause i'm having a hard time working on it., i need to insert data on my database when i process it tells syntax error in Insert into statement pls. help thnx [CODE][COLOR="Green"]try { OleDbCommand cmdSave = new OleDbCommand(); cmdSave.Connection = cls_DB.cn; cmdSave.CommandText = "insert …

Software Development
Member Avatar for Mitja Bonca
0
128
Member Avatar for M.S.

Hi All When trying to open a URL with bellow code, it Gives "TypeError: not all arguments converted during string formatting" [CODE=python]import urllib City="%D9%85%D9%87%D8%B1%D8%A7%D9%86" Province="%D8%A7%DB%8C%D9%84%D8%A7%D9%85" myurl = 'http://www.owghat.com/owghat.png.aspx?Province='+'%s'+'&City='+'%s'%(Province, City) #the real address is:http://www.owghat.com/owghat.png.aspx?Province=%D8%A7%DB%8C%D9%84%D8%A7%D9%85&City=%D9%85%D9%87%D8%B1%D8%A7%D9%86 a="e:\\img.png" urllib.urlretrieve(myurl,a)[/CODE] So, what I'm doing wrong? AND Another question: How to encode a utf-8 string(example: مهران) …

Software Development python
Member Avatar for M.S.
0
165
Member Avatar for JavaStudent101z

I need some help with doing a choice. Atm i have [code]choice = switch (choice) { case 'A': case 'a': { optel (); break; } case 'B': case 'b': { break; } case 'C': case 'c': { break; } default: { System.out.println ("You did not choose any of the options"); …

Software Development java
Member Avatar for NormR1
0
135
Member Avatar for pardeep3dec

Dear Experts, I have code for adding/deleting/modifying form icon and tool tip text to task bar. Its working fine in Standard.exe project but when i tried to use these code as dll file then i am getting error code 424 , object required. I already register dll file through regsvr32 …

Software Development api visual-basic
Member Avatar for gooptek
0
124
Member Avatar for bradploz

How do you insert label values to database? here is my code.. [CODE]Imports System.Data.OleDb Public Class frmemp Dim con As New OleDbConnection Dim dbAddNew As New OleDbCommand() Private Sub frmemp_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ds As New DataSet Dim dt As New DataTable Dim …

Software Development dataset open-source vb.net
Member Avatar for hericles
0
409
Member Avatar for aman rathi

hello i am beginner to java i wrote a simple program of object array but it is showing run time error [QUOTE]Exception in thread "main" java.lang.NullPointerException at classarr.main(classarr.java:14)[/QUOTE] [CODE] class abc{ int i; } class classarr{ public static void main(String arg[]) { abc a[]=new abc[4]; int j; for(j=0;j<=3;j++) a[j].i=j+1; for(j=0;j<=3;j++) …

Software Development java
Member Avatar for JamesCherrill
0
103
Member Avatar for Majestics

How to add flash objects in java without Java Flash Player Api? Any idea. Just hint required.

Software Development api flash java
Member Avatar for Majestics
0
101
Member Avatar for IndianaRonaldo

I need a little help with algorithm for my code.Given a word "abacus" i have the code to find all its anagrams but i need to include also the words that are smaller in length than the original word. That is, I wanna be able to list ABA,AAB,ACA....ABAC,ABCS....so on. Thanking …

Software Development c++
Member Avatar for IndianaRonaldo
0
294
Member Avatar for ineedsomehelp:3

I'm suppose to make a code that is suppose to check errors on inputted letters but I can't seem to get it right cause when I input something either wrong or right it still prints "ERROR" [CODE]void check(char a, char b, char c, char d,char e,char f, char g, char …

Software Development c
Member Avatar for ineedsomehelp:3
0
217
Member Avatar for polas5

I have almost made the program which gives urls from google and collect in listbox and sort found as i typed links and copy into richtextbox. But i need to pick up all urls from google automatically from all pages. Because now it does only 1 page. Here is the …

Software Development vb.net
Member Avatar for polas5
0
357
Member Avatar for IMJS

I am trying to utilise a development kit for software that we use at work. I think I have found a member function that would address a problem I have and I'm trying to test it. The documentation says that it is used thus: [CODE] int SDKclass::SDKclassmethod( a_data_type** a_data_array_ptr, char*** …

Software Development c++
Member Avatar for fruitymo
0
117
Member Avatar for Mamun13

The following code shows a simple use of speech synthesis to speak the string "Hello World". [CODE]package helloworld; import javax.speech.*; import javax.speech.synthesis.*; import java.util.Locale; public class HelloWorld { public static void main(String args[]) { try { // Create a synthesizer for English Synthesizer synth = Central.createSynthesizer( new SynthesizerModeDesc(Locale.ENGLISH)); // Get …

Software Development java
Member Avatar for Mamun13
0
214
Member Avatar for lrh9

I'm interested in a generic event system for Python. I've searched the forum for similar topics, and I've searched the web for existing implementations. I haven't found exactly what I'm looking for. I'm familiar with the Observer pattern. However, my implementation and other implementations lack strong support for concurrency and …

Software Development python
Member Avatar for lrh9
0
116
Member Avatar for Lowchernhwee

well guys , i want to make a read and write from textfile ... but the problem is when i click the calendar, and click create now(button 1), it cant work... if i didnt click the calendar, it works well.. so how to solve this problem anyone? [CODE] using System; …

Software Development c#
Member Avatar for Lowchernhwee
0
293
Member Avatar for tubby123

In programming terms, Is there any difference between Generate Anagrams, and Generate Permutations of a string ????

Software Development c
Member Avatar for Adak
0
148
Member Avatar for josh327

Hey guys I'm trying to create a tic-tac-toe program in c++. This is what I have so far. But it just produces garbage. [CODE]#include<iostream> #include<cstdlib> #include<ctime> #define frz system("PAUSE") using namespace std; //Global Variables const int length = 3; const int width = 3; //Function Prototypes void initializeboard(char [length][width], int); …

Software Development c++
Member Avatar for VernonDozier
0
250
Member Avatar for smiles5611

Hi I am in a java class and am working on a mortgage calculator with gui. I think I almost am done and have the assignment parameters completed but am stuck on two issues. 1) can't get my scroll pane to work. 2) I want to have the user select …

Software Development gui java java-swing
Member Avatar for NormR1
0
250
Member Avatar for Archenemie

I have been looking for tutorials for about an hour now for pythin networking and nothing i am finding is helpful. What i need is a python program that will take a computers ip adress and tell me if a specific port is open. Can anyone give me a quick, …

Software Development python
Member Avatar for Tech B
0
279
Member Avatar for Prelektro

Hello, [URL="http://www.daniweb.com/software-development/java/threads/223488"]http://www.daniweb.com/software-development/java/threads/223488[/URL] I need C code for a problem in given link above. I tried to convert it to C code but couldn't do it, i'm kinda beginner. I guess it's easy problem for pro programmers so i really appreciate if you can help me out.

Software Development c
Member Avatar for Prelektro
0
315
Member Avatar for Serafel

My basic problem is that I'm having a hard time implementing a Pthread that consists of a round robin dequeuing 4 arrays consisting of ints. Followed by a Pthread that creates random numbers with which to enqueue them with. I've written most of the code for the queue itself and …

Software Development c queue
0
239
Member Avatar for NewbieinC

[CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> main(){ char cChoice; printf("****************************************\n\n"); printf(" FLIP!-TAC-TOE 3D \n\n"); printf(" Enter S to start the game or \n\n"); printf(" E to exit! \n\n"); printf(" Choice: ", cChoice); scanf("%c", &cChoice); if(cChoice == 'S') function1 (); else exit(EXIT_SUCCESS); printf("\n****************************************\n\n"); system("CLS"); void function1(){ char cMarker1; int i = …

Software Development c
Member Avatar for Adak
0
189
Member Avatar for TrustyTony

Here is Mandelbrot set viewer in Tkinter and modules for shedskining (included compiled modules for windows in the zip file): [CODE]# mandelsh.py def mandel(real, imag, max_iterations=20): '''determines if a point is in the Mandelbrot set based on deciding if, after a maximum allowed number of iterations, the absolute value of …

Software Development python tkinter
Member Avatar for TrustyTony
0
2K
Member Avatar for clericcodered

Hi, I'm working on a bit of a self-tailored operating system, loosely based on MikeOS (I've kept some MikeOS calls, removed a few, added my own, stripped down the interface,..) and i seem to be stuck on a problem. I need to define userspaces and allow the system to accept …

Member Avatar for clericcodered
0
216
Member Avatar for theCompiler

hi there ! im new to programming , i cant figured out how to determine the highest even number and the lowest odd number among three numbers in C . does anyone out there have an idea ? i badly need your help . tnx in advance :)))

Software Development c display
Member Avatar for Salem
0
220
Member Avatar for cozmo87

I'm writing an application for processing scientific data. The data is displayed in a jTable. I'm done with the data processing itself, now I want to do some conditional formatting to make interpretation easier for the end user. [LIST=1] [*]The last column of the table contains a threshold value, and …

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for MarkGia

I have question about shell command well lets say i have this [CODE] Shell("\bin\game.exe", AppWinStyle.NormalNoFocus) [/CODE] Well as you know the command will come up an say File Not Found [CODE] FileNotFoundException [/CODE] So how can i put this command and when the file is not found turn up with …

Software Development shell-scripting vb.net
Member Avatar for MarkGia
0
454
Member Avatar for JavaStudent101z

import java.io.*; public class Wisk_project_template { private static BufferedReader inStream = new BufferedReader (new InputStreamReader (System.in)); //***************************************************************************** // handles addition private static void optel () throws Exception { // ask name System.out.print ("Hi - what is your name? "); // call menuLevels and ask for level menuLevels (); System.out.print ( …

Software Development java
Member Avatar for NormR1
0
207
Member Avatar for new_developer

What does "values", "data" and "field" mean in java ? For example, definition of encapsulation is hiding of data in a class and making this class available only through methods. In this way the chance of making accidental mistakes in changing "values" is minimized. In access specifiers, Java allows us …

Software Development java
Member Avatar for JamesCherrill
0
215
Member Avatar for laguardian

So, I created two forms: Input and Output. In the Input form, the user inputs the required information such as name and schedule. Then when the user is finished, he/she will click the "finished" button which brings up the Output form which has all the inputted info from the Input …

Software Development java
Member Avatar for laguardian
0
139
Member Avatar for evilguyme

hi guys im having an error with my code but cant seem to figure it out. its a windows form and im just trying to make it function but the compiler gives me these errors: [code] 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2059: syntax error : '{' 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2334: unexpected token(s) …

Software Development c++
Member Avatar for mike_2000_17
0
288
Member Avatar for vaironl

Hello, I'm a student in a summer workshop and i'm trying to make a python table from which people can choose the type , and within a mile radius. It's suppose to be compatible with an Arcgis map. If anyone knows how to make something similar please tell me how …

Software Development python
Member Avatar for vaironl
0
328
Member Avatar for bharatk

I am trying to find the index position of the minimum element in a list and print the element at the corresponding index position in another list. For example: [CODE] ?- min2(X,Y,[a,b,c],[5,3,7]). X= b y= 3[/CODE] Code: [CODE] min2(A,B,[A|_],[B|_]). min2(A,B,[X|T1],[Y|T2]) :- smallest(W,[Y|T2]), % using a predicate to find the min …

Software Development
Member Avatar for bharatk
0
2K
Member Avatar for Labdabeta

Hello, I have been attempting to create a fast class for OpenGL's Vertex Buffer Objects. I finally got all the libraries to work and now i am getting a sigseg but cant see why. Can someone find my error? (I will keep looking too) [CODE]#ifndef GLMODELS_H #define GLMODELS_H #ifndef GOODGL …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
140

The End.