132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lilpinay

this project is to determine if a phone number is a prime number. if the number is a prime number then print a message to the effect. if the number is not a prime number then print the prime factors of the number. allow the user to continue entering numbers …

Software Development java
Member Avatar for javaAddict
0
92
Member Avatar for the_preface

I'm writing a program that reads information from three seperate classes. Here is my code: [CODE] public class Animal { protected int id; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, …

Software Development java
Member Avatar for javaAddict
0
171
Member Avatar for zigana91

I am working on an assignment where I am to create a mortgage calculator that allows the user to input there mortgage amount, term and interest rate. The following is what I have so far. The errors I keep coming up with are the following: The Decimal Format the for …

Software Development java open-source
Member Avatar for javaAddict
0
156
Member Avatar for thanlin

Exception Error: [code] private void Form1_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(); conn.ConnectionString = "Data Source=LINLINPC\\SQLEXPRESS;Initial Catalog=POS;Integrated Security=True"; conn.Open(); MessageBox.Show("Connection"); conn.Close(); } [/code] I got this error(The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.)

Software Development open-source sql
Member Avatar for finito
0
67
Member Avatar for krishnisilva

does anyone konw why is this code giving an error saying: There is already an open DataReader associated with this Command which must be closed first. the error is coming form the place where i have cold the line the code is below: C# Syntax [CODE] public String[] LoadUSEmp() { …

Software Development
Member Avatar for finito
0
112
Member Avatar for doomkid

Ok so the other day i was playing a game on facebook and decided to make a program to make it faster to play the game and save some time. i made a simple auto clicker with some hotkeys to start/stop and then added some text boxes and some more …

Software Development vb.net
Member Avatar for Luc001
0
221
Member Avatar for man5237

Please help me to write a shell script to find the GCD (Greatest common Divisor) of [B]3[/B] numbers. Thanks in advance.

Software Development shell-scripting
Member Avatar for kvmreddy
0
3K
Member Avatar for farhanafzal

Write a C program to enter the elements of three one dimensional array A (size 5), B (size 10) and C (size 5) as an input from the keyboard. The program will find and print: • The maximum element of array A entered as an input. • The minimum element …

Software Development c
Member Avatar for farhanafzal
0
111
Member Avatar for so0oso

i write now code the game of hang man i want code sound in eclipse if true or false Brief sound teacher she said the cod is one line after Loading any sound plaaaaaaaaaase i want help

Software Development c++
Member Avatar for Salem
0
115
Member Avatar for melteddashboard

Hey I'm new here so forgive me if I do something wrong. Just let me know and I'll try to fix it. Basically I'm trying to write a binary search tree without using recursion. (Difficult I know, but if you can show me how to do it without changing the …

Software Development c++
Member Avatar for VernonDozier
0
436
Member Avatar for ShuiYinDeng

Sever.java file [CODE]import java.net.*; import java.io.*; import java.util.*; /** * Simple server use to teach University of * Northumbria's Operating Systems and Networks modules. * To be used with compatible simple client. * <PRE> * Protocol: * client <---message--- server * message = <message body> CRLF * </PRE> * * …

Software Development client-server java operating-system
Member Avatar for moutanna
0
133
Member Avatar for JunChen

i am trying to merg two linked list. error occurs when i run the program it dead. i believe it is because the function i defined to merge these two list has problems would someone helpe me to fix it or some hint would be nice thanks[code]#include <stdio.h> #include<malloc.h> typedef …

Software Development c++ linked-list
Member Avatar for Lerner
0
137
Member Avatar for Superfreak3

Hello all, I am in need of a dll that, if passed the shortcut/.lnk name and the Start Menu -> Programs path if needed, will return the target attribute of that shortcut. I am going to be calling this from a Lua script based application from Indigo Rose called AutoPlay …

Software Development c
Member Avatar for Superfreak3
0
124
Member Avatar for livestrong2431

I'm trying to create a simple network with perceptions and it doesn't seem to be working. I was wondering if someone could correct my mistakes. Thanks! [CODE]#include<iostream> #include<cstdlib> using namespace std; int pWeights[] = {0,0}; int Classify(int pInput, int pThreshold, int i, int Bias){ int classOut; if( pInput*pWeights[i] + Bias …

Software Development c++
Member Avatar for livestrong2431
0
142
Member Avatar for morteza_ipo

Hi I want to compile py files to com files. Please help me. thanks.

Software Development python
Member Avatar for Ene Uran
0
103
Member Avatar for fellixombc

How can I fix this so it will let me compare the two? note, the error is at the for loop. [CODE]string Socket::Recv() { /* Get socket size before recv'ing */ while (size == 0) ioctlsocket(client, FIONREAD, &size); /* Create a 'string (characters)' the size of the information being recv …

Software Development c++
Member Avatar for fellixombc
0
127
Member Avatar for danielle23

Hello... I'm having a real hard time with displaying the proper data in Project Summary. First off, I am using an Access database to bring in the data. Total hours are being calculated correctly. Rates are as well. I tested using a messagebox to make sure the rates are being …

Software Development pay-per-click vb.net
Member Avatar for danielle23
0
120
Member Avatar for BobbieJean

Hi, I'm having a hard time getting my applet to even build right. Here are the instructions my instructor gave: [I]"Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers. The program should …

Software Development java java-swing
Member Avatar for BobbieJean
0
421
Member Avatar for Swence32

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the …

Software Development client-server multithreading vb.net
Member Avatar for Swence32
0
260
Member Avatar for nsutton

Im trying to make a bac calculator and make a gui for it but am having issues with the math code for it. Here's my code. Everything I input returns 0. The BAC forumula is (150/body weight)(% alcohol/50)(ounces consumed)(0.025). Btw, I suck at math so it could be a math …

Software Development gui python
Member Avatar for griswolf
0
2K
Member Avatar for endritius

I'm trying to find the product of two numbers using a function which receives the values of two variables from main() and the address of the variable prd where the product will be stored. I can't get this compiling because i get the following errors from Visual Studio C++ 2010 …

Software Development c visual-studio
Member Avatar for endritius
0
236
Member Avatar for nkinar

Hello-- Inside of a header file (Point.h), I've created a class template. I need to override the addition operator as shown below, so what I have done is declared it as a [I]friend[/I]. However, when I try to access the private member variable [I]std::vector<T>coord[/I] from within the body of the …

Software Development c++
Member Avatar for nkinar
0
223
Member Avatar for aint

hi, I am working on a text proccessing project, actually related to protein sequences. I want to list occurrences of a search term with the hit positions. I tried the following, but it only gives it for the first hit. [CODE] text = 'MSKSASPKEPEQLRKLFIGGLSFETTDESLRSAHFESSSYGSAGRRF' index = text.find('SA') print index [/CODE] …

Software Development python seo
Member Avatar for TrustyTony
0
601
Member Avatar for zreed

I need to do the following program, but it need to have a do while loop, scanner for input, and a console program. Here are the instructions: Write a Java program that prompts the user for how many individuals they will be entering. Then program will then prompts for each …

Software Development java
Member Avatar for Katana24
0
264
Member Avatar for saba_newbie

I am using scipy distribution scipy-0.4.9.win32-py2.4.exe with python 2.4 on Windows XP. When I try to import scipy I get the following error. [code] Traceback (most recent call last): File "<pyshell#4>", line 1, in ? from scipy import * File "D:\Python24\lib\site-packages\scipy\__init__.py", line 33, in ? del lib NameError: name 'lib' …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for osaca

hi, I am a new member here i hope that found some one who can help me in this C++ project I am a novice in C++ and this will be my first code if any one has experience please help me in the algorithm and what should i do …

Software Development algorithm c++
Member Avatar for Lerner
0
736
Member Avatar for shazzy99

Hi, I've been trying to capture video from webcam using openCV functions and openGL for rendering. The code is working fine and I can acquire and display both the cameras. Now I'm trying to record the captured video's and saving them to a file using openCV createvideowriter object. I can …

Software Development asp.net c++ visual-studio
Member Avatar for shazzy99
0
318
Member Avatar for AFB

java.awt.*; import javax.swing.*; import java.awt.event.*; class Getaction implements ActionListener{ String am = ""; String req ; String em = ""; String oper = ""; double x,y ,result; String res; Addcomp get = new Addcomp(); public void actionPerformed(ActionEvent ev){ req = ev.getActionCommand(); if((req.equals("1")) ||(req.equals("2"))||(req.equals("3"))||(req.equals("4"))||(req.equals("5")) ||(req.equals("7"))|| (req.equals("8"))||( req.equals("9")) ){ if (oper == …

Software Development java java-swing
Member Avatar for Katana24
0
141
Member Avatar for Rob E

What a great site! I'm looking fo a hint. I'm new to any type of programming and this C code just doesn't seem to be working. I have attempted a program that gives the ohm value of a resistor when the color code is entered in. I am using an …

Software Development c
Member Avatar for Rob E
0
446
Member Avatar for empror9

hello geys, i have some codes and i tried to find the output for each of them. most of the codes i answered but there are some codes which are strange for me (the output) first, i want from every one is to find the output without test it, please …

Software Development c++
Member Avatar for empror9
0
69
Member Avatar for johndoe444

[CODE]template<class type> struct _binary_search_tree { type key; struct _binary_search_tree* parent; struct _binary_search_tree* left_child; struct _binary_search_tree* right_child; }; template<class type>void tree_insert(_binary_search_tree<type>** tree, type key); int main() { char number[10]; _binary_search_tree<char*> root; tree_insert(&root, number); }[/CODE] [QUOTE]compile error: 755.c:182: error: no matching function for call to ‘tree_insert(_binary_search_tree<char*>*, char [10])’[/QUOTE] Thanks.

Software Development c++
Member Avatar for caut_baia
0
86
Member Avatar for psomis

hallo guys.i am newbie at java and i want ur help. i have created the 5 five buttons but not the action listeners for them. the five buttons are : add person, see ll persons, search a person,update a person, delete person.so when i press add person the programm should …

Software Development gui java java-swing
Member Avatar for psomis
0
2K
Member Avatar for iamai

Hi i have some problem with the listview control i dont know how to use it here is what i wanna do [code] sub mysub() handles myEvent for i=0 to 3 Dim lv As ListViewItem = ListView1.Items.Add(x(i)) lv.SubItems.Add(x(i)) lv.subitems.add(x(i)) ... next end sub [/code] so when the next event occurs …

Software Development listview vb.net
Member Avatar for iamai
0
74
Member Avatar for Kruptein

I'm working on an addon system for one of my projects. I'm able to add a new menu item, but the self.Bind(...) is causing me troubles instead of bind the function to the menu-item, it just calls the function. and doesn't bind at all... :s [code=python]self.ID_OPEN=wx.NewId() wxglade_tmp_menu.Append(self.ID_OPEN, eval(menucontent)[i][0], "", eval("wx.ITEM_"+eval(menucontent)[i][1])) …

Software Development python python-django
Member Avatar for Kruptein
0
106
Member Avatar for skypower

Hello there. This is my first post in this forum which, by the way, I find outstanding simply because everytime I google a C problem I find an answer here. Ok so, I have a very simple problem. I use Windows 7 and recently had a major problem about my …

Software Development c
Member Avatar for skypower
0
147
Member Avatar for BobbieJean

Hi, I'm having a hard time getting my applet to even build right. Here are the instructions my instructor gave: [I]"Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers. The program should …

Software Development java java-swing
0
77
Member Avatar for Cardboard Box

Hi I recently learnt how to do crash collision based on colours. So you can use something like img.getpixel(0,0) to retrieve the colour of the pixel at (0,0) on the picture "img." I have experimented quite a lot with it and have managed to make some programs that draw a …

Software Development vb.net
Member Avatar for Cardboard Box
0
211
Member Avatar for musikluver4

I have spent over a WEEK trying to figure out why my code isn't working. It's a long code, I will post it all but I will break down the code as I explain. First off, I have called double[] arrays and then initialized them later on in the program …

Software Development java java-swing window-manager
Member Avatar for musikluver4
0
3K
Member Avatar for sgk26p10p07

Anyone to help with protected mode programming,like help me create a a data descriptor pointing to 0b800h when i try to write to RAM it rebbots

Software Development assembly
Member Avatar for Rider99
0
272
Member Avatar for rena0514

my teacher wants the tictactoe game to have a button called play that resets the tictactoe game my button doesn't work....what did i do wrong? [CODE] //TicTacToePanel.java Author Carien Anderson //Represents tic tac toe game board and allows peer to peer competition import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.JOptionPane; …

Software Development java java-swing peer-to-peer
Member Avatar for javaAddict
0
2K
Member Avatar for Graffixnerd

I need help with using a DATEDIFF() function in sql query cn i get an example of hw 2 do it...pls help..thnx in advance

Software Development sql
Member Avatar for Graffixnerd
0
82
Member Avatar for jman212

I have this 2d array that sorts the rows but i can't sort the column.. i can't figure it out for the life of me. PLEASE HELP Please enter size of row between 1 - 20: 5 Please enter size of column between 1 - 20: 5 Your matrix is …

Software Development java matrix-multiplication
Member Avatar for sneaker
0
144
Member Avatar for bi0201

Hi i'm a new student in java and would appreciate anyone helping me get through. I do not want you to do my work because that won't help me get through the next and next assignments however I would appreciate your help putting me on the right track such as …

Software Development java
Member Avatar for javaAddict
0
161
Member Avatar for appunu

ALl i need to find is the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6).I have coded with some logic and i could able to find the sum til this part 12345=>1+2+3+4+5=15 but i couldn able to carry on after that plz …

Software Development c puzzle
Member Avatar for appunu
0
174
Member Avatar for avirag

Hi!!! I have made a window application with MS access database to analysis student performance in his class for each exam that he appeared for. I have a table named result with following fields: classname,sectionname,subjectname,exam type,rollno,studentname and marks. On one form I have taken crystal reportviewer and 5 comboboxes for …

Software Development
Member Avatar for avirag
0
88
Member Avatar for Vaibhav Kumar

All I want to know is that how is that L1.exe protected with that coding? What is that technology called? What is the software used for making this? How is the code generated? Note that MID & Site code will wary from system to system. This file cannot be run …

Software Development visual-basic
Member Avatar for kvprajapati
0
282
Member Avatar for complete

I have a brand new computer which was freshly loaded with Visual Basic 6.0. I have copied all the code from the previous computer to this new one. But loading a project produced the following error. Class MSGrid.Grid of control grdS101 was not a loaded control class. So I did …

Software Development hard-drive visual-basic
Member Avatar for kvprajapati
0
1K
Member Avatar for micseydel

Attached are a C file, a .i file, and a Makefile that I thought could produce a Python-loadable binary. Also, I included a text file with the output I got showing the failure. It looks like I didn't include something vital but I don't know what. Can anyone help me …

Software Development os-x python
Member Avatar for micseydel
0
551
Member Avatar for Dewey1040

I have an assignment where I'm supposed to "implement a class, Point that represents a point in a three-dimensional space." and im supposed to "carefully design the interface for this class and include functions that appear to be useful for operating on points." I'm not fully sure what this is …

Software Development c++ operating-system queue
Member Avatar for mrnutty
0
164
Member Avatar for moroccanplaya

i want it to print out 4 is larger than 2 but it prints out 2 is larger than 2293572 [CODE] #include <stdio.h> #include <stdlib.h> void largest(int num1, int num2, int *larger) { if(num1 > num2) { *larger = num1; } else{ *larger = num2; } } int main() { …

Software Development c
Member Avatar for jephthah
0
120

The End.