132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for begueradj

Hello people, I designed this class: [CODE] package aiproject; /* * This class has the task to read the data stored in a file called "fichier.txt" * line by line. * The read lines will be put inside a List called lignesDeMonfichier * Also, this class counts the number of …

Software Development java microsoft-access
Member Avatar for JamesCherrill
0
326
Member Avatar for forge199

Hi there, Sorry to ask a silly/stupid question... I'm new to all this and i'm in the process of learning VB .NET using Visual Studio 2010... I just had a question because I cannot seem to find the answers anywhere on the internet... also we are not upto this part …

Software Development vb.net visual-studio
Member Avatar for skran
0
151
Member Avatar for riahc3

(So continues the JNI saga....) I currently have this (in C++, this being my native code in C++): (x is a jstring passed thru the header) [code] jdouble res; if (x=="*") { res=a*b; } else if (x=="+") { res=a+b; } else if (x=="-") { res=a-b; } else if (x=="/") { …

Software Development c++ java
Member Avatar for riahc3
0
146
Member Avatar for asif49

I have to make a program where there are employees who are created then can be assigned to multiple jobs, here's how I've done it... MAIN class [CODE] Employee [] e = new Employee[10]; //class to contain/manipulate 10 individual employees Job [] j = new Job[10]; //class contain/manipulate 10 individual …

Software Development java
Member Avatar for JamesCherrill
0
124
Member Avatar for jamal30

can someone help me? i am new to C, i meed to read file which looks like this Month Date Day Activity Repetitions January 1 Monday brushed_teeth 9 January 1 Monday combed_hair 5 Then i need to do calculations in the reps and month

Software Development c
Member Avatar for ashlock
0
98
Member Avatar for khaled_jawaher

i m using mtom feature in jaxws web service to send image from server to client and i m getting the following error pls i apreciate any help. error is Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/x ml/stream/buffer/XMLStreamBuffer at com.sun.xml.ws.api.addressing.AddressingVersion.<init>(AddressingVers ion.java:436) at com.sun.xml.ws.api.addressing.AddressingVersion.<init>(AddressingVers ion.java:67) at com.sun.xml.ws.api.addressing.AddressingVersion$1.<init>(AddressingVe rsion.java:146) code is [CODE]package services; …

Software Development api client-server image java java-swing
Member Avatar for ~s.o.s~
0
568
Member Avatar for jdm3

Hello everyone, I'm working on an assignment that requires a game that drops multiple objects that need to be caught. I'm using multiple classes and the current one is raising a type error. " File "C:/Users/Joe/Documents/School/I-210/Final/game.py", line 118, in main gift = Present() TypeError: __init__() takes at least 2 arguments …

Software Development gui python
Member Avatar for jdm3
0
833
Member Avatar for theCompiler

i have a 6x6 array . a certain object randomly moves within the boxes , i need to count the steps he makes for him to able to step all the boxes , i dont know what to do nxt with my code . the dot represents the boxes : …

Software Development c
Member Avatar for WaltP
0
119
Member Avatar for vammy

Hi All, Please help me..i wanted to transfer control to a different form when one form is minimized..,how do i achieve this?vb.net...please help

Software Development vb.net
Member Avatar for vammy
0
99
Member Avatar for jeevsmyd

Suppose I have a simple program to find the largest of two numbers of different datatypes and return the largest.I'm implementing it as a template to support generic datatypes [code] template<class T,class U> T max(T t,U u) return (t>u?t:u); int main() { int x=70; float y=100.5; max(x,y); return 0 } …

Software Development c++
Member Avatar for mike_2000_17
0
225
Member Avatar for haanjae

hello, i want to show the client's ip and machine name in ListView. Please help, Thank you. i also created code the collection for the listview collection [CODE] class ClientCollection { public string userIpadd { get; set; } public string userPcname { get; set; } public ClientCollection() { } } …

Software Development client-server lan-wan listview
Member Avatar for haanjae
0
1K
Member Avatar for effBlam

How am I able to open the contents of a text file into a GUI with each character in the text being an individual button. Say the text file contains 25 characters that are either "A" or "B" in random order. The text file also have 5 rows with which …

Software Development file-system gui python tkinter
Member Avatar for bawakrbs
0
196
Member Avatar for eshalmj

[I]Could somebody please help me in this C++ program? I'm a beginner and have no idea doing this tutorial. anyone who could help me would be greatly appreciated. here is the question: [/I] Create an inheritance hierarchy that a bank might use to represent customers’ bank accounts. All customers at …

Software Development c c# c++
Member Avatar for divyakiran
0
888
Member Avatar for phorce

Hello, I have a map that contains the alphabet (key) and a double (value) and I would like to sort the list so that the highest value is at the top but it still keeps it's key.. E.g. [code] #include <iostream> #include <map> int main() { map<char, double> alphabet; alphabet['a'] …

Software Development c++
Member Avatar for vijayan121
0
135
Member Avatar for sirlink99

I would like to make a kind of archiver that can uncompress rar files. This project will evolve into a program that will guess the password until it unlocks the file. How would I be able to unzip the file using java, and submit a password if it asks for …

Software Development java
Member Avatar for sirlink99
0
1K
Member Avatar for bellarc

I am attempting to remove instances of a character from a txt file with python using the following code: [CODE]import fileinput for line in fileinput.FileInput("test.txt",inplace=1): line = line.replace("^M","") print line[/CODE] and get the following error: File "par.py", line 6 line = line.replace(" ^ SyntaxError: EOL while scanning string literal I …

Software Development file-system python
Member Avatar for woooee
0
333
Member Avatar for Mike Tyson

How do I write a guess method so that the user can guess the word in hangman?

Software Development java
Member Avatar for hfx642
0
54
Member Avatar for hovestar

I have a problem calling up my compturn() function. Here is my code: [CODE]import random def compturn(): print 'Computer turn:' comp = str(random.randint(1, 9)) if comp == a: compturn() elif comp == b: compturn() elif comp == c: compturn() elif comp == d: compturn() elif comp == e: compturn() elif …

Software Development python
Member Avatar for woooee
0
205
Member Avatar for javabeg123

hello i have problem creating a Sequence application that generates a series of random numbers from 0 to 9 until a 0 is generated and then displays the length of the sequence of numbers. the output should look similar to this 3 6 7 8 9 0 Length of the …

Software Development java
Member Avatar for jazz_vill
0
110
Member Avatar for Daigan

Hi, I need help with arrays. Here's what I have so far.... [CODE]// The "Prefixes123" class. import java.awt.*; import hsa.Console; public class Prefixes123 { static Console c; public static void main (String[] args) { c = new Console (); String prefix; String word; String sentences; c.print ("Enter the prefix: "); …

Software Development java
Member Avatar for Daigan
0
147
Member Avatar for Sarcasm

Hi, I am starting out with python coding and was looking for some feedback. Constructive Criticism please. Here is my code for game "Word Guess". [CODE] # Word Guess # # Word guess, is a game where the user has five chances to ask # the computer if a certain …

Software Development python
Member Avatar for Sarcasm
0
214
Member Avatar for mrkm1188

Is there a way to improve the below Selection Sort code to make it more efficient? [ICODE] int a, b, smallest, temp; for(a = 0; a < numIntegers - 1; a++) { smallest = a;; numComp++; for(b = a+1; b < numIntegers; b++) { if(Integer.parseInt(list[b].toString()) < Integer.parseInt(list[smallest].toString())) { smallest = …

Software Development java
Member Avatar for mrkm1188
0
153
Member Avatar for biojet

Hi all, I try to find the average of colum with perl. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/328723[/url]. [CODE]use 5.010; my (@arr, %arr, $row); while(<DATA>){ @arr=split(/\s+/, $_); for (my $i=1; $i<=$#arr; $i++){ $arr{$i}+=$arr[$i]; } $row++; } say ("total of column $_ is $arr{$_} and average is \t", …

Software Development perl
Member Avatar for biojet
0
187
Member Avatar for nuclear

Theres this thing that i dont fully understand. Im using this tutorial: [url]http://lazyfoo.net/SDL_tutorials/lesson08/index.php[/url] and i in here we first set up some surfaces with text and then asign their value to the message and then for some reason we have to reset the message value to 0 in order for …

Software Development c++
Member Avatar for raptr_dflo
0
489
Member Avatar for grako84

Hi folks! I'm trying to wire simple code and so far I'm stuck on ActionListener. My program should contain (JMenu) Menu called SELECT and two options InnerFrame 1 and InnerFrame 2. To debug it I've started using System.EXIT , unfortunately I cant compile my program, I'm receiving an error: "java:48: …

Software Development gui java java-swing
0
123
Member Avatar for dennysimon

hi all, Is there simple example out there where image is made by drawing lines on the panel ,and then print it on paper thank you denny

Software Development image java
Member Avatar for dennysimon
0
127
Member Avatar for Daigan

Here's what I have so far.. [CODE] // The "AddingPrefixes" class. import hsa.*; import javax.swing.JOptionPane; public class AddingPrefixes { static Console c; // The output console static char proc; static String prefix; static String word; static String sentences; private void title () { c.print (' ', 32); c.println ("Adding a …

Software Development java java-swing
Member Avatar for NormR1
0
181
Member Avatar for fsefsef23

I'm finding myself stuck trying to simply get a userInfo class's sets to work, but every time I try and compile with simple code like this in my application file: userInfo stuff; stuff.setId("test"); It gives me one of those 'undefined symbol' errors and references to the userInfo::setId function: Undefined first …

Software Development c++
Member Avatar for Moschops
0
167
Member Avatar for Murugavel B

[CODE]class point { private double pi; public double PI { get{ return pi; } set{ pi = value;} } } class Program { static void Main(string[] args) { point p1=new point(); p1.PI = 3.14; Console.WriteLine("The value is {0}",p1.PI); Console.ReadLine(); } }[/CODE] Actually i couldn't understand the use of PROPERTIES concept.... …

Software Development
Member Avatar for skatamatic
0
111
Member Avatar for farshadak2004

Hi everyone: I am building a dictionary(translator) . My dictionary is completed, now I want to add some feature to it. I want to add a feature that once the user highlight a word in any application, afte 2 seconds which the mouse is IDLE my dictionary automatically COPY and …

Software Development api c c# c++
Member Avatar for skatamatic
0
314
Member Avatar for sagar_wordlife

please any professional out there can suggest me with project ideas . . for my final year project work . . plz. .plz. .

Software Development vb.net
Member Avatar for bluehangook629
0
249
Member Avatar for bwilson1

I know its bad to wait last minute ,but I have been working on the code the last couple of days with no result ,and now I'm finally starting to panic.I am having trouble with my program. I have been working on it for the last couple of days. I …

Software Development c++
Member Avatar for Schol-R-LEA
0
183
Member Avatar for otreblag

Hi, First post here. I need to scan a file (NC milling output) with, potentially, tens of thousands of lines of text, looking for keywords. Every time I find a keyword, say, a tool change command, I want to print out twenty lines - the ten lines above this line, …

Software Development c++ unix
Member Avatar for otreblag
0
132
Member Avatar for jazz_vill

I have a Java Desktop Application I made and I am now on the process of deploying the application. I tried to use Java Web Start but came up with certain problems. My application is fully working when I start it locally or inside my IDE. But when I try …

Software Development gui ide java java-netbeans java-swing
0
136
Member Avatar for pxndx

Ok so i have a little problem which i cant seem to figure out this is what i have: The constructor loads my method that loads a list of employee to show in jTable, but when i place that method in my button it doesn't do anything This is my …

Software Development java postgresql
Member Avatar for jazz_vill
0
160
Member Avatar for IT FRESH

WHT!!!! [u][b]i dont know whats wrong but i tried to to Merge both codes the if - statement dont show ...[/b][/u] [code] #include <iostream> #include<cstdlib> #include<stdio.h> using namespace std; /** Showing the introduction screen and the user maual... */ void splash(void) { cout << " ********************************************************\n"; cout << " * …

Software Development c++
Member Avatar for Schol-R-LEA
0
133
Member Avatar for javabeginner1

Can somebody please help me figure out where I went wrong? This is the problem and I have attached my code. Write a class with a main() method and two static methods. Your program should prompt the user for a single-digit integer. Your program should print out to the screen …

Software Development java
Member Avatar for javabeginner1
0
228
Member Avatar for Begginnerdev

A co-worker and I are trying to compile a VB.Net / ASP.Net application on another machine. We are getting two different sets of errors. One set of errors lists 103 undefined statements with no library missing. The other error is, " It is an error to use a section registered …

Software Development vb.net
0
84
Member Avatar for mrar85

i have a formview which show the data from a database.. in another page, i have a datalist that also display data from the database.. in the datalist, i have a hyperlink that when click will navigate to the page that have the formview which display data that suppose to …

Software Development asp vb.net visual-basic
Member Avatar for mrar85
0
138
Member Avatar for slim1_1

Design and implement a stringed musical instrument class using the following guidelines: a. Data fields for your instrument should include number of strings, variables for string names (e.g. E, A, D, G), and boolean fields to determine if the instrument is tuned, and if the instrument is currently playing. You …

Software Development
Member Avatar for thines01
0
90
Member Avatar for th3b3n

First the gui question Right now I have: [CODE]class ExportGUI extends JFrame implements ActionListener{ JTextField fileIN; //Text Field Bull //JLabel fInHelp;//Labels time JFileChooser BpsFile = new JFileChooser(); //File Chooser JCheckBox Check; JButton expButton; //reference button object JButton opnButton; JButton reset; JButton all; //Panels List<JCheckBox> checkList = new ArrayList<JCheckBox>(); JPanel inOut …

Software Development gui java window-manager
Member Avatar for stultuske
0
236
Member Avatar for peter20

Hi all, I have a problem with my code. I use in a struct variable type time_t with name tt like [CODE] typedef struct{ time_t tt; } [/CODE] then I initialise in the main function of my server [CODE] time_t timer; timer=time(NULL); [/CODE] I pass the timer in my shared …

Software Development c client-server
Member Avatar for Narue
0
243
Member Avatar for cacofonix

Hi, i am trying to write some data into the text file using PERL . In that file ^M is appeared on each line . Since i am new to PERL , i couldn't figure it out . Guys please help me to fix this problem.

Software Development perl
Member Avatar for thines01
0
181
Member Avatar for compulove

Hello! I need code that will allow the user to do the following: 1. Select a browse button and choose the folder they want to save a file once the exe file at the end of the program runs 2. Display the folder location the user selected in the textbox …

Software Development asp.net gui vb.net visual-basic
Member Avatar for thines01
0
207
Member Avatar for pendo826

In this .cpp i have an error saying member function cannot be redeclared. I dont know what it needs to get rid of the error obviously it needs a declaration somewhere but where? [CODE]#include <iostream> #include <ctime> using namespace std; Monster::Monster(std::string Name, int health, int hitPoints, int miss, int damage,const …

Software Development c c# c++
Member Avatar for Moschops
0
117
Member Avatar for modesto916

Hi everybody, I have a project to do for the college, which has to insert, read, delete and modify records in a binary file (a address book or something else). I don't know yet how I'll do to alter the records. Let's suppose the I have the program below: program …

Software Development pascal
Member Avatar for thines01
0
504
Member Avatar for chuyauchi

I have a difficulty for saving a file in C++. I have an existing file which is opened by my program. The program should save the changes to the existing file (Example: D:\A4.txt) when I select 4 (as known as the menu). However, the program does not save the changes. …

Software Development c++ file-system
Member Avatar for thines01
0
217
Member Avatar for PF2G

Can someone tell me what's wrong: Imports MySql.Data.MySqlClient Public Class Login Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Dim da As New MySqlDataAdapter Dim sql As String Dim cmd As New MySqlCommand(sql, con) Dim dr As MySqlDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Software Development mysql vb.net
Member Avatar for bluehangook629
0
126
Member Avatar for jainjayesh1681

Hi Friends, I am working on Project(Window Application in VB.NET) and unfortunately i am getting out of time,Need ur help. Theres one situation in which application to accept Five Email Address but the condtion is that during form load only one textbox need to display first and a button adjacent …

Software Development gui vb.net
Member Avatar for Reverend Jim
0
172
Member Avatar for pendo826

Can anyone see the problem with my method ATTACK [CODE]#include "Monster.h" #include "Player.h" #include "Weapon.h" #include <iostream> using namespace std; Monster::Monster(std::string Name, int health, int hitPoints, int miss, int damage,const std::string& weaponName) { Name = Name; hitPoints = hitPoints; Weapon weapon; miss = miss; damage = damage; weapon.Name = weaponName; …

Software Development c c# c++
Member Avatar for pendo826
0
138

The End.