132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lassy85

Can anyone assist me with the GUI for this program. I have tried several times will little luck. Here is the source code. Any help would be greatly appreciated. [CODE]import java.text.DecimalFormat; import javax.swing.JFrame; public class Inventory1 { public static void main(String[] args) { // Information on the Cds used Cd …

Software Development gui java java-swing
Member Avatar for lassy85
0
177
Member Avatar for java_programmer

I am trying to write a shell script which will read a file and counts the number of vowels in the file. The code which read the file is as follows - [CODE]while read -n 1 c do l=$(echo $c | tr [:upper:] [:lower:]) [[ "$l" == "a" || "$l" …

Software Development shell-scripting
Member Avatar for java_programmer
0
193
Member Avatar for jeffrey o

when i compiple this using rmiregistry, javac for HelloServer2 and HelloClient it says: I've attached all files as well java.rmi.NotBoundException: ReceiveMessageInterface <<No stacktrace available>> [CODE] import java.rmi.*; import java.rmi.registry.*; import java.rmi.server.*; import java.net.*; import java.util.Random; public class HelloServer2 extends java.rmi.server.UnicastRemoteObject implements ReceiveMessageInterface { String address; Registry registry; int a[]=new int[6]; …

Software Development java
0
140
Member Avatar for delgadough

Hey all, I am working on my first C++ prog and I'm having an issue on my output. I compiled the code ok but when i try to execute, the output comes up with weird numbers and letters where it is supposed to display the "photos in"[CODE]// Name: Danny Delgado …

Software Development c++ ios
Member Avatar for delgadough
0
114
Member Avatar for MrEARTHSHAcKER

Hi, I am learning templates so I have one question for this code: [CODE]template<typename T, int Number> class Data{ T Array[Number]; public: T& operator[](int); }; template <typename T,int Number> T& Data<T,Number>::operator[](int element){ return Array[element]; }[/CODE] I wish to create specialization for that class template, for any random data type, but …

Software Development c++
Member Avatar for MrEARTHSHAcKER
0
924
Member Avatar for mfcdoubt

I have following header file defines test2.h ----------> header file template<class T> class temp2 { public: temp2(); virtual ~temp2(); }; test1.h ----------> header file template<class T> class temp1 { public: temp1(temp2<T> (temp2<T> *temp2ptr); ~temp1(temp2<T> (); protected: temp2<T> *tempptr; }; test3.h -------------> header file class test3 { public: test3(); virtual ~test3(); …

Software Development c++
Member Avatar for huda_7978
0
3K
Member Avatar for RFID

Hey, So I'm working on a pretty basic program to help me get accustomed to classes, private variables and arrays. I need to hold the data for 5 individuals such as name address email etc. These are held in my PersonClass and are private strings. I access these strings using …

Software Development
Member Avatar for dwarvenassassin
0
194
Member Avatar for Syrne

Hi there, so I'm currently studying Java at my University and as of right now we're working on Linked Lists, Array lists, Array Deques, etc. As part of this lesson, we're being told to write our own versions, both recursive and iterative, of the predefined java functions for its corresponding …

Software Development data-structure java
Member Avatar for hfx642
0
226
Member Avatar for ads1188

Hi all, I am new to programming and having been experimenting various codes recently. I have managed to link 2 form so that when i click a button on Form1, Form2 opens. I am using the code [CODE]Form2^open2 = gcnew Form2(); open2->Show();[/CODE] This codes work fine. Is there a way …

Software Development c++ seo
Member Avatar for ads1188
0
113
Member Avatar for Murphyv10

Hello all. Can i get some help with my homework please. Im quite literally staring at a blan screen with very little done. Ive been quite sick recently and lost ground with the class. Ive watched You Tube videos and read oop books but to avail. I have to make …

Software Development java oop
Member Avatar for hfx642
0
84
Member Avatar for AbdullahJava

I don't know why it doesn't compile ! ! [CODE] import java.util.Scanner; public class Beach { public static void main (String [] args) { Scanner input = new Scanner (System.in); System.out.println("Enter the weather Hot or Cold"); String A; A = input.next(); System.out.println("Enter the type of day Sunny or Windy or …

Software Development java
Member Avatar for Philippe.Lahaie
0
87
Member Avatar for infamous1987

One way to measure the amount of energy that is expended during exercise is to use metabolic equivalents (MET). Here are some METS for various activities; Running 6 MPH: 10 METS Basketball: 8 METS Sleeping: MET The number of calories burned per minute may be estimated using the formula Calories/Minute= …

Software Development c++
Member Avatar for Software guy
0
1K
Member Avatar for moone009

I've been putzing around with this for awhile but I need to delete column B (minus the header) when ever it is empty. Does anyone have any idea on how to do this. If xlWorkSheet.Range("B2:B65565").Value = "" Then Dim rg As Excel.Range = xlWorkSheet.Columns("B") rg.Select() rg.Delete() End If

Software Development vb.net
Member Avatar for moone009
0
212
Member Avatar for Kanoisa

Hi all, I have started finding lots of uses for abstract classes to define interfaces for common functionality using polymorphism and i know that using polymorphism and virtual functions incurrs some additional call cost of functions. So what im wondering is can i get the best of both worlds? consider …

Software Development c++ oop
Member Avatar for Kanoisa
0
197
Member Avatar for manoj_93

I am trying to calculate the number of code points that are present in a file, but it always showing me the number of characters being used. I am using string buffer to read the file, so I come to this part f d code [code]while ((sCurrentLine = br.readLine()) != …

Software Development java
Member Avatar for ~s.o.s~
0
121
Member Avatar for Awah Mohamed

Hi guys, how are you? Well, i have my science fair soon and i want to build a software that can copy any given file to any removable device that gets connected to the computer it is running on.. But the problem is i dont know how to do this... …

Software Development c++ pdf
Member Avatar for BobS0327
0
996
Member Avatar for nilay84

Can anyone figure out why the following code is not showing the menubar when it is run in eclipse. import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class MenuExample { Display display; Shell shell; Menu menu, fileMenu, editMenu,viewMenu; public MenuExample() { display = new Display(); shell = new Shell(display); shell.setText("Menu Example"); shell.setSize(300, 400); …

Software Development java
Member Avatar for FALL3N
0
380
Member Avatar for minimee120

Hi all. I have an up and coming midterm, and this is one of the practice problems. All's I need to do is draw a Tic-Tac-Toe board in TURTLE. However, it has to be in a loop, or something, and I am having a difficult time putting it into one. …

Software Development python
Member Avatar for minimee120
0
164
Member Avatar for nuclear

I'm trying to use Box2D lib with SDL lib. NOTE that I only get the errors below after I link in SDL too. I think i link everything accordingly but in the end when I write up some code i get errors like: 1>------ Build started: Project: box2d test2, Configuration: …

Software Development c++ seo visual-studio
Member Avatar for Ab000dy_85
0
546
Member Avatar for D19ERY

write, compile and test a short program to read in a list of 10 positive numbers which also determines and prints out the largest number. here's what i've got so far. but how do i change it in order for it to accept a positive number only? [CODE]using System; using …

Software Development c#
Member Avatar for skatamatic
0
143
Member Avatar for clapton

Hi. I'm a student and I need write a programe bank application in java . I must write a program that the customer could withdraw and deposit from his account.I need a few class? my professor said me that it's very simple but it's dificullte for me. you can help …

Software Development java
Member Avatar for stultuske
0
201
Member Avatar for doublebond

Hi Guys, I have an issue with my program. I am trying to implement bitonic sort parallel algorithm using MPI. The issue is like i am able to sort upto 1000000 array elements.. but, if i increase it to 10000000 or 100000000 the processors are not able to handle it. …

Software Development algorithm c
Member Avatar for giomal
0
1K
Member Avatar for svbs

hi friends i have following code to stop resizing windows form. lStyle = GetWindowLong(Form1.hwnd, GWL_STYLE) lStyle = lStyle And Not WS_THICKFRAME Call SetWindowLong(Form1.hwnd, GWL_STYLE, lStyle) i have a image on form as background. this code i ok, but the problem is when is when i click on the title bar …

Software Development visual-basic
Member Avatar for abelingaw
0
69
Member Avatar for jarograv

I currently have this code: [CODE]import java.util.Random; import java.io.*; public class randomdwarf { public static void main(String[]args)throws IOException { String dwarves[]= {"Dopey", "Sneezy", "Happy", "Sleepy", "Grumpy", "Bashful", "Doc"}; Random generator = new Random(); int randomIndex = generator.nextInt( 7 ); System.out.println(dwarves[randomIndex]); Runtime.getRuntime().exec("H:\\Profile\\Desktop\\dwarves\\Doc.jpeg"); } }[/CODE] It is a very simple code that …

Software Development image java
Member Avatar for Philippe.Lahaie
0
191
Member Avatar for rutwvu

I am currently working on implementing an operating system in turbo c which uses c as the programming language. For this project we must implement pagination. I have absolutely no idea how to do this in c and most web results are for web pages using mySQL or java or …

Software Development c c++ ui-ux
Member Avatar for rubberman
0
207
Member Avatar for geojia

Hi gurus, this is a homework assignment on finding all closest pairs. I used a quad tree for my algorithm and its running time is compared to the naive algorithm. (I didn't use the java quad tree because I didn't know it existed...) My problem right now is that after …

Software Development algorithm java
Member Avatar for rubberman
0
218
Member Avatar for herious89

Hi im trying to calculate the constant e, this is my codes, the program doesnt output correct value, im new to java, please help [CODE]import java.util.Scanner; public class calculateE { public static long factorial( int n ) { if( n <= 1 ) // base case return 1; else return …

Software Development java
Member Avatar for rubberman
0
364
Member Avatar for Suzie999

Hi all, hope you are well. I'm having some trouble trying to convert the literal value of a hex number to int. I say literal but I'm not sure if that is the correct term, but my code will explain better I hope. I have simplified the code down to …

Software Development c++
Member Avatar for Moschops
0
433
Member Avatar for freedomflyer

Hello everyone. I have a TreeSet<State> that I want to iterator over in order to change the States within the TreeSet (more specifically, a private subclass within each state). However, I will most likely run into problems as I do something like this, or something to this effect: [CODE]for(State s …

Software Development java programming-construct
Member Avatar for freedomflyer
0
1K
Member Avatar for nine9hours

Hi. I have made a simple testing program which I'll use in another program later. I create the items of the QListWidget through looping and now I want to make changes in one of the items of the list, which the user clicks. But when I call a fucntion to …

Software Development c++ qt
Member Avatar for nine9hours
0
996
Member Avatar for SAM2012

I am new to this forum. I need help in defining the same kind of function according to my requirements. as [url]http://www.codeproject.com/Articles/1088/Wildcard-string-compare-globbing[/url] I hope, I 'll get good response. Words are strings which are separated by dots. Two additional characters are also valid i.e:The *, which matches 1 word and …

Software Development c++
Member Avatar for deceptikon
0
202
Member Avatar for seslie

Hello Everyone, Hi, just started learning c# recently although i've known the basics for a while now. I am required to start creating plugins for a particular program. Please, i need help, materials sources, exercises and projects that would help me get familiar with developing plugins as soon as possible. …

Software Development
Member Avatar for seslie
0
94
Member Avatar for ali.alipanahi

hi i want to bind data form data set into datagird view columns but i can't is there some one to help me pleaaaaaaaaaaaaaaaasssssssssssssssssseeeee

Software Development
Member Avatar for ali.alipanahi
0
159
Member Avatar for bcain2121

Hello there. I am writing a game in java for a class of mine but i am getting this bugger ass error and i cant find it. Can someone help me? The whole project including all classes and such is located in the .zip you can download. I swear it …

Software Development java
Member Avatar for JamesCherrill
0
288
Member Avatar for riahc3

Hey I am having problems making a exact copy of a file. It seems that it changes the headers of the file. I tried using the Apache fileutils copyfile method but it seems to change the header completely. The rest of the file looks pretty much OK. I think it …

Software Development apache java
Member Avatar for riahc3
0
238
Member Avatar for riahc3

Hey I have a FTP server with this [url]ftp://192.168.100.2/folder/[/url] And I have something like anotherfolder: afolderinsidethatone: file1.bin file2.bin file.txt I want to pass all of that to the ftp server so it takes this form: [url]ftp://192.168.100.2/folder/anotherfolder/[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/file1.bin[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/file2.bin[/url] [url]ftp://192.168.100.2/folder/anotherfolder/file.txt[/url] I have this code: [code] public void subidaftp(String ip, String …

Software Development client-server java
Member Avatar for riahc3
0
217
Member Avatar for mkaynutty

So basically this is suppose to be a grade calculator and the program works, I now just have to put it into a do-while loop so it can work for more than one student. My professor wants it to say Y for another student and N to quit at the …

Software Development c++ programming-construct
Member Avatar for doma18
0
202
Member Avatar for doma18

[CODE] #include <iostream> #include <string.h> #include <ctype.h> using namespace std; int main() { system("Color 1A"); char clear[200]; char cipher[200]; int x,i; cout << "what do you want to do with your password " << endl; cout << "1 Encrypt your password " << endl; cout << "2 Decrypt your password …

Software Development c++ encryption
Member Avatar for doma18
0
884
Member Avatar for yongj

So I have a file that has contents that need to be stored into a growing object. By growing I mean that it'll explicitly concatenate the new line it reads into the growing object, pBuff, each time every line is read from the file. I only get the last line …

Software Development c++ file-system
Member Avatar for histrungalot
0
282
Member Avatar for hurrycart

Hello people. I'm designing a little app, and due to my lack of XP, I hope for some advices on how to deploy it. The App: It's simple Java app. There are many sub-functionalities" like: logging, sending a log via email, error handling, and others about XML technology. But to …

Software Development java
Member Avatar for stultuske
0
129
Member Avatar for prethum

Hi i am making a combobox multi search. I have a table and coloums like studentid,Fullname,lastname which i have populated into the combobox. Beside the combobox i have textbox. The function i am trying to create is the user selects the colums he wants and enter the search text in …

Software Development
Member Avatar for prethum
0
120
Member Avatar for xopenex

Hello all, I found a thread similar, but it was closed... so here is the code and my question... I am wondering how to change the code from creating files to creating variables? this is the code from the thread on here.... and below it is the code that i …

Software Development python
Member Avatar for TrustyTony
0
201
Member Avatar for acepeda

Hey guys! I have managed to fix a previous problem but now I have a new one!The "Details" fields keeps repeating itself for example its showing it 4 times instead of one!this is my code [CODE]Dim crptdoc As New CrystalReport1 Dim mystr As String Dim myDS As New DataSet1 crptdoc.Load("C:\Users\ACP\Documents\Visual …

Software Development vb.net visual-studio
Member Avatar for acepeda
0
151
Member Avatar for 1bung100

I have an xml having same tags (<value> tag) as given below: [CODE]<number> <type>decimal</type> <value>12</value> <value>14</value> </number>[/CODE] I am trying to parse using either Digester or JAXB (without Schema). What I have done is I have created a java class that will map with the given xml. For this I …

Software Development java xml
Member Avatar for 1bung100
0
2K
Member Avatar for 47pirates

HOw can i private chat with logged in users from a group chat? HOw can i begin the proces?

Software Development java
Member Avatar for dantinkakkar
0
146
Member Avatar for itsvineethpv

dear friends, I am stucked with checkbox. i have a dynamically adding gridview with checkbox column. in which saving all datas in View state. But when page load check box status are lost. How to fix it. how to check the status of check box in datatable Ex: chkbox is …

Software Development
Member Avatar for itsvineethpv
0
121
Member Avatar for G_Waddell

Hi, I'm writing a routine to import salesorders from an Excel sheet into Sage. The Sheet is broken down by product rather than by order so I want to use OLEDB to connect and run a query against it sorting by Order Number to get the items back per order. …

Software Development vb.net
Member Avatar for G_Waddell
0
1K
Member Avatar for wildplace

[CODE]struct Information { ifstream* in; ofstream* out; ... }; ..... ((*info).in)->eof() //this one (*(*info).in).eof() // and this one[/CODE] so, info is a Information struct, is there any different between the two shown above? my guess is they are the same. and what is "->" and "." called?

Software Development c++
Member Avatar for ejosiah
0
126
Member Avatar for jone kim

I want to explain my code to you. 1. this code is to search for the given number whether it is present in the list or not. 2. first if statement returns the value of row if the i/p number is in the first column 3. if the given number …

Software Development python
Member Avatar for jone kim
0
242
Member Avatar for liphoso

with integer arrays when i add them i can have code that looks like this result[0] = array[0] + array2[0] all the arrays being of integer type now if my arrays are of Huge type and i would like to get their sum, how would i do that? this is …

Software Development java
Member Avatar for stultuske
0
245

The End.