132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DrApe1

I realize this is an extremely low level java problem, but I've been searching and searching and I can't figure out a way to take two characters and combine them into one string. Particularly, I have a char array and I need to take two particular elements out of it …

Software Development java
Member Avatar for DrApe1
0
123
Member Avatar for Wikedshorty

I have to write two arrays of 10 random numbers betwwen 1 and 25 then sort those two arrays in increasing order then make a third array that has all the numbers of the first two arrays in sorted order but no duplicate numbers in the third array. Here are …

Software Development c++
Member Avatar for Wikedshorty
0
2K
Member Avatar for jackman05

hi, i hv to do the inverse of a matrix by row elimination plz help

Software Development c++
Member Avatar for mrnutty
0
317
Member Avatar for pyprog

Let's say I want to create two classes Owner and Pet [CODE]class Owner(object): def __init__(first_name, last_name, address, phone): self.first_name = first_name self.last_name = last_name self.address = address self.phone = phone class Pet(object): def __init__(name, owner) self.name = name self.owner = Owner.__init__(first_name, last_name, address, phone)[/CODE] Did I pass the class Owner …

Software Development python
Member Avatar for pyprog
0
109
Member Avatar for BLKelsey

Hi fellas, This week in class (2nd week), we are learning about classes. Our professor has asked us just to complete one simple class with separate files. My problem is when I go to compile, I get errors stating my variables aren't "declared in this scope." As far as I …

Software Development c++ oop
Member Avatar for Agni
0
4K
Member Avatar for GAME

I need to copy 160 textbox's text and put it onto the clipboard. Here is what I have so far: [code] List<TextBox> boxes = new List<TextBox>() { textBoxX1, textBoxX2, textBoxX3, textBoxX4, textBoxX5, textBoxX4, textBoxX4, textBoxX5, textBoxX6, textBoxX7, textBoxX8, textBoxX9, textBoxX10, textBoxX11, textBoxX12, textBoxX13, textBoxX14, textBoxX15, textBoxX16, textBoxX17, textBoxX18, textBoxX19, textBoxX20, …

Software Development
Member Avatar for bbman
0
95
Member Avatar for n30h4x

So my goal for a project of mine, is to output the values of variables into their respected locations in PDF file. Where would I need to look to get started on this? Are there any library's anyone would recommend?

Software Development c c# c++ pdf
Member Avatar for n30h4x
0
127
Member Avatar for abcdabid

[CODE]<Security> - <User> <Username>jon</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> - <User> <Username>bob</Username> <Password>khan</Password> <UserFolder>aliHomeDIR</UserFolder> </User> </Security>[/CODE] I have xml file and i want to remove specific element having username jon [CODE] foreach (XmlNode parentNode in parentNodes) { for (int i = 0; i <= parentNode.ChildNodes.Count - 1; i++) { XmlNode childNode = …

Software Development c c# c++ xml
Member Avatar for papanyquiL
0
91
Member Avatar for GAME

Anyone know how to open a form inside of a form, that way it doesn't open a new process/ a new bar at the bottom? How would I do this?

Software Development
Member Avatar for GAME
0
93
Member Avatar for san_fran_crisko

Hi, I'm trying to get Java to remove a JLabel from a JPanel whenever a button is clicked. Unfortunately it won't do this. I've tested my code and the button click is working for sure, so its the code to remove the component that is acting up. If anyone could …

Software Development java java-swing
Member Avatar for peter_budo
0
5K
Member Avatar for gameon

hey do u know how to create shortcut for a file using c programming.

Software Development c
Member Avatar for Radical Edward
0
203
Member Avatar for mithunp

Trying to implement a stack using dynamic array. The Problem which i am facing is that if i a pushing 60 or 90 elements then the program is running fine but on inserting say 600 elements while printing the first two elements are showing junk value. Compiled the code using …

Software Development c
Member Avatar for Radical Edward
0
156
Member Avatar for Kesarion

How would I draw something on the screen ? not the console window but the entire screen, preferably with the console minimised. Also, would it show up on a printscreen ? It better not :P What I want to do is create something like a layer on top of the …

Software Development c++
Member Avatar for Kesarion
0
125
Member Avatar for hondros

Here is my issue: I have a program, that downloads roms off the internet. Everything works fine, but I would like to show an indefinite progress bar while it is downloading. I have that with the following code: [code] # -*- coding: utf-8 -*- # Form implementation generated from reading …

Software Development gui python qt
Member Avatar for woooee
0
525
Member Avatar for miac09

Hi, I have the following files and can match but, am having trouble with getting the output to write correctly to a data matrix format that I need and would appreciate any help with getting the code right. File 1 has a list of numbers and Files 2, 3 and …

Software Development matrix-multiplication os-x python
Member Avatar for woooee
0
200
Member Avatar for wraph

On the bill gates biography it says "Gates developed a version of the programming language BASIC for the first microcomputer" but did he use this language to make windows?

Software Development
Member Avatar for jwenting
0
636
Member Avatar for bsse007

-[B]Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design a class bookType that defines the book as an ADT. 1. Each object of the class bookType can hold the following information about a book: title, up to four authors, publisher, …

Software Development c++
Member Avatar for NP-complete
0
186
Member Avatar for mayank.15

Im trying to run my java application, but after some time it automatically stops and throws OutOfMemoryException: Java heap space. Now when i try to run it using (say) (-Xmx allocates the maximum heap memory) java -Xmx2000m [AppName] then it says Error occured during initialization of VM Could not reserve …

Software Development java
Member Avatar for mayank.15
0
180
Member Avatar for leiger

Basically I've got a text editor which revolves around a jTextArea. There are some settings (e.g. whether line wrap is enabled) that I'd like to save to a file when the application closes, and then load up again when it runs next. I've spent a few hours trying to get …

Software Development html-css java
Member Avatar for leiger
0
201
Member Avatar for GAME

I need to be able to count the textbox characters on a keypress, how would I do that?

Software Development
Member Avatar for ereruh
0
123
Member Avatar for sdhawan

Hi Guys i want to know how to access one method from another. i have two buttons.one method is button1_click and second button2_click.What i want to do is to put a if condintion in button2, something like if(button1.click = true).Can anyone help me with this.Thanks

Software Development
Member Avatar for sdhawan
0
219
Member Avatar for Fr33t

I don't normally post in these kinds of forums and prefer to just google my way through problems, but after 3 hours of trying to solve this, I am beat. I am working on a program that uses a linked list and can add/delete/print out nodes (orbs in this program) …

Software Development c linked-list
Member Avatar for Banfa
0
223
Member Avatar for simon126

Hi all, I am a first year student at northeastern and my VB professor assigned me a project that i am just stuck on. This is my first programming course and i honestly am a newbie at it so i hope you guys can help. Here is my situation. A …

Software Development display email gui visual-basic
Member Avatar for rex24
0
398
Member Avatar for c++_fem

Does anyone know how to list all variations of vector elements in C++ ? Is there a function like for permutations (next_permutation) ? tnx

Software Development c++
Member Avatar for c++_fem
0
2K
Member Avatar for DeadSoul

[QUOTE] Hello friends i have tried my code to get the values from the database n display it in JTables but i am getting two errors.please help me. [/QUOTE] [CODE] import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JButton; import javax.swing.table.AbstractTableModel; import java.awt.Dimension; import java.awt.Component; import javax.swing.BoxLayout; import java.text.MessageFormat; …

Software Development display gui java java-swing
Member Avatar for DeadSoul
0
7K
Member Avatar for eng hassan

[CODE]// Project !!!.cpp : Defines the entry point for the console application. // #include<windows.h> #include <iostream> #include <conio.h> using namespace std; class Predator {private: int x; int y; char z; char board[20][20]; int count1; int count2; public: Predator(){ for (int j=0; j<20; j++) { board[0][j] = '@'; board[19][j] = '@'; …

Software Development c++
Member Avatar for eng hassan
0
134
Member Avatar for jp071

Hello, I would like to display result in form window. The result is changes every 5 seconds. The form is only close when i stop program. I am using console application in visual c++ 2008. Anybody could help me, how can i display data in form view when i use …

Software Development c++ display
Member Avatar for nbaztec
0
160
Member Avatar for zango

So my coding is a temperature converter. I have gotten everything down the way that it is wanted by the assignment except for one part. When I run the program, put in a value and select the radio button for conversion, no output ever shows up. Was hoping that someone …

Software Development java java-swing
Member Avatar for zango
0
743
Member Avatar for pasido

Im an extreme newbie at VB and newbie to OO programming, and would like to make a basic text based RPG to start off (I made an RPG on my TI-84 calculator and would like to recreate it on VB) I don't know how to do these things: How do …

Software Development visual-basic
Member Avatar for pasido
0
167
Member Avatar for rmsagar

Hello, I have a code which has public void run() and I have no problems compile the code. When I try to execute the class file I get an error Exception in thread "main" java.lang.NoSuchMethodError: main. Does the command line execution needs main() ? Is there a way to execute …

Software Development java
Member Avatar for JamesCherrill
0
217
Member Avatar for rexins

Hallo, I have to develop a SPIM/MIPS programm, which read an integer from the user and change this integer into binary system (like for example 00011000) My idea was this one, but it doesn't work: I think the problem is the space segment. maybe somebody see the problem and can …

Software Development assembly
Member Avatar for wildgoose
0
438
Member Avatar for pritesh2010

hello everyone i'm creating one Small D.j.software.in this i got three problem 1} how to mearge one .mp3 file with onther .mp3 file 2}how to drop .mp file directly to form's list box 3} how to save that merger .mp3 file. please help

Software Development file-system vb.net
0
100
Member Avatar for litchi

Hello :) I am working on a CRUD app to directly change a MySQL database on a remote server. I have a section where I can edit or delete entries. I choose an entry from a JList (populated by a ResultSet in a loop), and a JTextArea populates with the …

Software Development java
Member Avatar for litchi
0
164
Member Avatar for frag

Hello all. I'm currently studying computer science, and I need some insight concerning data structures. i'm asked to create the necessary data structure to hold the population and saving factor of all cities. CITY: Population: Saving factor: Nicosia 200 0.4 Limassol 120 0.6 Larnaka 65 0.7 Paphos 30 0.75 Paralimni …

Software Development c++ data-science data-structure
Member Avatar for JohnSmith12
0
133
Member Avatar for Brandon515

[CODE]#include <fstream> #include <string> using namespace std; typedef struct blook { char* name; int hour; char* day; char* month; char* year; char* alive; char* sick; char* pregnant; char* adult; char* elderly; char* child; char* water; char* meat; char* wood; char* seeds; char* vegtables; }info; info load(string name1) { info black; …

Software Development c++ visual-studio
Member Avatar for jonsca
0
148
Member Avatar for ca_eric

hi: want to replace all elements with the number of its depth in the difference list in prolog. such as: ?- deepList([a, [b]], L). L = [0, [1]]. ?- deepList([a, [b, c, [d, e]], f], L). L = [0, [1, 1, [2, 2]], 0]. Thank!

Software Development
Member Avatar for ca_eric
0
156
Member Avatar for WildBamaBoy

This is a section of a program I made that keeps track of some money I'm saving. :cool: When I enter how much I want to add it saves what I enter to a file and updates the current amount I have saved, also in the file. When I enter …

Software Development python
Member Avatar for WildBamaBoy
0
159
Member Avatar for iamchamith

Hi i am using c# as my language & sql server as my database .. My question is there is no key ward called [CODE]limit[/CODE] in sqlserver....how i solve this type of question... the example is ---> the sql server data table has 25 rows & i want to retrieve …

Software Development sql
Member Avatar for iamchamith
0
139
Member Avatar for shayankhan

Hello guys ... can anyone help me or guide me if i am thinking wrong, can we copy character array into character array. like char names[250]; cin>>names; names=names+names; like we do with int a; cin>>a; a=a+a; can we do this with character array i want to store 7 names into …

Software Development c++
Member Avatar for shayankhan
0
95
Member Avatar for Lordson60

So i am working on a game, and i have a string value, and 3 integer vales, that i would like to save, so when you close the program, and then re open it, if you type in the string value, you will have you integer values. How do i …

Software Development java
Member Avatar for jwenting
0
91
Member Avatar for lcfc12

I need to get this program to display the most expensive value and the most taxed value in text form from the names stored in the array. The following code works out everything apart from displaying the most expensive and most taxed items on the screen. This needs to be …

Software Development c++ visual-studio
Member Avatar for daviddoria
0
103
Member Avatar for mohamed mo'men

there is Inheritance mean subtype polymorphism or there not have same job ??

Software Development java
Member Avatar for xonglennao
0
63
Member Avatar for lich

i need to lock a label positions so that it wont move during a event. when there is a event happens that label is moving from that particular position. is there any solution for this

Software Development java
Member Avatar for xonglennao
0
413
Member Avatar for notdoppler

Hello Community i am using Linux (fedora) gcc compiler. Normally i use Java but for the Interprocess communication part we got C. My problem specifically is that when I read from a file with the fread() function and save it in a char buff[somesize] I cant use printf() to display …

Software Development c file-stream
Member Avatar for abhimanipal
0
286
Member Avatar for MarkJoel60

I am trying to find a way to create a transparent overlay that I can put anywhere on the screen, but that does not stop keystrokes and mouse events from passing through. If you have ever seen the program Camtasia, they do it... when you define a portion of the …

Software Development image
Member Avatar for MarkJoel60
0
2K
Member Avatar for lse123

I think my jar to work needs mail.jar plus the others class files what to do? subject:javax.mail.Message I used jar cmf SMTPClient.mf SMTPClient.jar SMTPClient.class SMTPClient$SendAction.class SMTPClient$UpdateListener.class [B]mail.jar [/B]SMTPClient.java but gives (how include another jar in my jar and keep package structure?) [CODE] C:\Users\User\Documents\TextBooksDataFiles\Java Network Programming, 3rd Edition\jnp3examples\examples\19&gt;jar cmf SMTPClient.mf SMTPClient.jar …

Software Development java
Member Avatar for lse123
0
241
Member Avatar for skybomb0

I am trying to create my own menu (and practice a little c#) and I am almost done. I have the menu and the context menu that will be shown created. I also have the context menu showing at the correct time. My problem comes when the menu disappears when …

Software Development pc-peripheral
Member Avatar for skybomb0
0
200
Member Avatar for TrustyTony

I have been thinking about order operations and generalized * in Python recently. I want to share some of my thinking here, even the topic is quite theoretical, considering the beauty and orthogonality of the language. [B]Point one[/B] You can do comparison with tuples of numbers in Python [CODE]>>> (0,0)<(1,1)<(2,2) …

Software Development python
Member Avatar for TrustyTony
0
338
Member Avatar for Eng.muslima

I have a program code deal with a drug data in pharmacy ...the program is running without syntax error but I have a problem in search code ..it apply search on the first record only but didn't apply on other records..I have tomorrow an exam ..please help me..I'm sorry for …

Software Development c++ ios
Member Avatar for Eng.muslima
0
127
Member Avatar for cgage22

[CODE]string name; char gender; string address; cout << "Enter the name : "; getline(cin,name); cout << "Enter the gender (M/F) : "; cin >> gender; cout << "Enter the address : "; getline(cin,address);[/CODE] I don't understand why this skips the input action for the address.

Software Development c++
Member Avatar for NathanOliver
0
122

The End.