132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nonshatter

Hey guys, basically what i'm trying to do is take each line from two text files and store them into two variables, salt and original. I then want to pass these 2 variables to a different method called: crypt(String salt, String original) How would I go about doing this? Many …

Software Development java
Member Avatar for ~s.o.s~
0
113
Member Avatar for adams161

Hi, i've started making a simple breakout game with java swing. This is just for fun and to learn more about java and swing. I got a frame and a panel and a mouse listener. I draw a paddle on the screen and it moves as the mouse moves. I …

Software Development java java-swing
Member Avatar for adams161
0
105
Member Avatar for John-5-

Hi i'm having some trouble getting my head around this assignment... which is : Design, write and test a program to print a table of factorials. The program should read in two values: a maximum factorial value and a minimum factorial value. It must then print a table, as illustrated …

Software Development c
Member Avatar for mrnutty
0
130
Member Avatar for Trekker182

Hello everyone, I'm trying my hand at the strategy design pattern. I've got most of my code working, however, I keep running into two errors "invalid use of undefined type `struct sortStrategy' " strategy->sort(students); "forward declaration of `struct sortStrategy' " strategy = s;} I did a google search on both …

Software Development c++
Member Avatar for Trekker182
0
146
Member Avatar for Darth Vader

I wonder if there is any function that returns the difference in minutes for examples like this: 1300-1515 (135 minutes) 2350-0100 (70 minutes) Is there any timefunction that can have the ability to return the minutedifference ?

Software Development c++
Member Avatar for Excizted
0
85
Member Avatar for LennieKuah

Hi there, VB.Net 2003 Window Application DataGrid Paging. Need your help The users instead of using Vertical ScrollBar in DataGrid1 they requested for NEXT and PREV buttons for paging the display on DataGrid. I have added the NEXT Button and PREV Button but doesn't know how to create the script …

Software Development vb.net
Member Avatar for LennieKuah
0
122
Member Avatar for T-Dogg3030

Part of the assignment I'm working on is to display random letters between my good letters to encode text. Right now I can make it display random numbers. How can I change this to out put random letters? [CODE] #include <iostream> #include <fstream> #include <ctype.h> #include <ctime> #include <cstdlib> #include …

Software Development c++ display
Member Avatar for mrnutty
0
305
Member Avatar for Musafir

The function has two parameters, one giving the side-length and the other giving the length of the shortest line. The function should draw as many lines of the spiral that fit inside the window def spiral(lenght,side): for i in range(1,side+1,5): lenght.forward(i) lenght.right(90) I made a start of the code, please …

Software Development python
Member Avatar for woooee
0
116
Member Avatar for Drpills

Hello, I am new to this community as well as Visual Basic. My class was assigned a project that is to use Panning and Zooming of a Image. However the code the teacher supplied us zooms to the Upper Left corner of the image instead of the Center of the …

Software Development html-css perl vb.net visual-basic
0
108
Member Avatar for ffs82defxp

I'm making a macro in python and I need some help. Basically, it just loads up 4 line entries from a text file and just attaches those 4 things to the end of a URL, and opens firefox to that URL. It then waits a random time between 3min-8min and …

Software Development python
Member Avatar for ffs82defxp
0
307
Member Avatar for T-Dogg3030

I am trying to do a command line switch with an if statement. The problem I am running into is when I am using a letter, it wont recognize it. When I use a number, no problem. I think there are a few different ways to solve this. Can anyone …

Software Development c++
Member Avatar for programmersbook
0
101
Member Avatar for Tech B

I cam up with this when I seen what Johnny Lee can do with a wiimote. Youtube it to check it out, pretty amazing. I realized not everybody has a wiimote or a bluetooth dongle to connect it to the PC, so I used my webcam and python. The webcam …

Software Development python webcam
Member Avatar for Tech B
0
909
Member Avatar for doobiez

[quote] I'm having a problem with constructor. I get an error an error "invalid method declaration; return type required" on line 75 ..here is line 75 TypeOfStudent(int minAge, int maxAge, String name) ..and I've posted my whole code below[/quote] [CODE]import java.util.*; public class Student { private String name; private int …

Software Development java
Member Avatar for masijade
0
151
Member Avatar for anevins

Hi, i'm learning java and I don't know why I'm getting this error. New Error on line 11 - "Cannot find symbol" [code] int first, second; int first, second; double firstcube, secondcube, power = 3, num = 3, pow; Scanner scan = new Scanner(System.in); System.out.println("Enter First Number: "); first = …

Software Development java
Member Avatar for donaldw
0
114
Member Avatar for j_williams18

Can anyone help me. I have a c++ project to do. The program must simulate a vending machine. I will post what i have so far. a data file must be hardcoded into it which provides the different drinks.[code]#include <iostream> #include <fstream> #include <string> using namespace std; const int SIZE=54; …

Software Development c c# c++
Member Avatar for j_williams18
0
610
Member Avatar for Stefano Mtangoo

please help me with this error: [COLOR="Red"]obj\Release\main.o:main.cpp:(.text+0x1c)||undefined reference to `__imp__CreateCWMp3@0'|[/COLOR] what is missing? I'm trying to compile [URL="http://www.inet.hr/~zcindori/libwmp3/index.html"]this[/URL]

Software Development c++
Member Avatar for Stefano Mtangoo
0
242
Member Avatar for timaquerra

Hello, I created a web service to access oracle database. This is my code: [CODE] package mypack; import java.util.List; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import java.sql.*; import java.util.ArrayList; @WebService() public class AutoRepairWS { @WebMethod public List getCustomerId(@WebParam(name = "Cust_Id") String Cust_Id){ String user = "****"; String password = "****"; …

Software Development java oracle
Member Avatar for ~s.o.s~
0
199
Member Avatar for jacline

Hi to all, I have a homework about a banking system. I try to adding a branch in an array and the size of array dynamically increased. Here is my code but it gives run time error. [CODE]#include "BankingSystem.h" #include "Branch.h" #include <iostream> using namespace std; BankingSystem::BankingSystem(){ size=0; branches=NULL; } …

Software Development c++
Member Avatar for jacline
0
12K
Member Avatar for leegeorg07

Hi again, I'm now working on a twitter client and I'm wondering how people update their programs when it needs it, for example when I commit a change. Any help on the subject would be most appreciated thanks

Software Development python
Member Avatar for Stefano Mtangoo
0
200
Member Avatar for Sseeth

[CODE]string lastNames(string name[],int SIZE){ stringstream ss; for(int i = 0; i < SIZE; i++){ ss << '"' << name[i].substr(0) << name[i].erase(name[i].find(',')) << '"' << " "; } return ss.str(); }[/CODE] this is outputting my list of names correctly other than all the names come out twice like "namename" how can …

Software Development c++
Member Avatar for Sseeth
0
101
Member Avatar for asmnewbie3

hey all, I'm just starting out with assembly in college and I wrote a program for an assignment to calculate prime numbers, and it works, however if you comment out the line in the code, it gives out this list of numbers: [CODE] 3 is prime 5 is prime 7 …

Software Development assembly
Member Avatar for NotNull
0
177
Member Avatar for teddy78

I have a code that uses queue in c++ and 3 class Message, MessageSender, and MessageReceiver to express queue content. The program runned but it expressed wrong output as I hope. I inputted 3 message object but queue expressed no messages received. Please help me find errors. I think this …

Software Development c++ queue
Member Avatar for teddy78
0
460
Member Avatar for chrisname

I'm still doing some cpuid code; but now I want to get the brand string. I've sort of got about half of it... If you have a browser that supports it; search for "/* relevant */" to seek straight to the relevant part of the code Important edit: if I …

Software Development assembly data-structure
Member Avatar for gusano79
0
125
Member Avatar for mindgames

Does memory allocated for built-in types (in particular int, float and double) with the new operator initialize them to 0 (or 0.0, as the case may be)? Just trying to remember. (I seem to remember that new invokes a constructor even for the built-in types, but i'm not sure).

Software Development c++
Member Avatar for mindgames
0
82
Member Avatar for jeby

after deleting 2 ,55 and 21 ..am getting only in in-order how do i make other 2 oders package com.eyc.roughworks.binarysearchtree; import java.lang.*; import java.io.*; public class pBSTRemoveNode { public pBSTRemoveNode left, right; public Comparable data; public static pBSTRemoveNode tree_AddNumber(pBSTRemoveNode r, Comparable n) { if (r == null) { r = …

Software Development java
Member Avatar for jeby
0
105
Member Avatar for 9107you

i just started the course but teacher gave me this amazingly hard question for to start with he said it's some sort of challenge question im not just asking you for the answer but i think i need LOTS of // The "Taxesforresidents" class. public class Taxesforresidents // The "Taxesforresidents" …

Software Development java
Member Avatar for javaAddict
0
120
Member Avatar for Stefano Mtangoo

Hi all, I use codeblocks to compile a simple project (actually an example) from [url]http://www.inet.hr/~zcindori/libwmp3/libwmp3.html#playc++[/url]. I have included the .h file and I fail to include .lib/.a I keep getting error[color=red] ld.exe||cannot find -libwmp3|[/color] Is there a missing thing?

Software Development c++
Member Avatar for Stefano Mtangoo
0
105
Member Avatar for NitaB

Just wanted to say thanks to everyone who gave input on that horrid assignment I had a couple of weeks ago! Anyway, I am back with new problems. To start, I just want help correctly writing out one particular void function which I am calling readLetters. Okay, so I wrote …

Software Development c++
Member Avatar for NitaB
0
708
Member Avatar for MRWIGGLES

if i had a data file with html/xhtml tags: Code: <html> <head> <title> data file </title> </head> <body> <center><h1> heading 1 </h1></center> <b>bolded</b> <P>paragraph</P> <P> <br /> how would get a python program to read ONLY the start and end tags and and enqueue them in a queue? for example, …

Software Development python queue
Member Avatar for vegaseat
0
214
Member Avatar for 9868

Hello everyone, Here's my code for making a dynamic array(the user inputs the size of the array). It's working fine but I think that I've not made the best code. Is there any suggestion for improvement or optimization? [code] #include <stdio.h> #include <stdlib.h> int main(void) { int *p; int n,i; …

Software Development c
Member Avatar for Narue
0
94
Member Avatar for dorotalp91

a do-while loop!!! sorry [CODE] import java.io.*; import java.util.*; public class guessing { public static void main (String args[]) { int answer = 22; System.out.print("Enter your guess, if you are correct you will be a winner "); Scanner guessReader = new Scanner(System.in); int Input = guessReader.nextInt(); { if (Input< 1 …

Software Development java
Member Avatar for donaldw
0
109
Member Avatar for StarZ

I'm suppose to do this using sorting algorithm..so it asks to creat a friends database application that maintains a file of friend objects that contain names, telephone numberrs, and email adresses..etc. The friends application should load friend records from a file and then allow the user to add new friends, …

Software Development algorithm java
Member Avatar for javaAddict
0
1K
Member Avatar for T-Dogg3030

I am trying to use an array that can change in length by the number in the command line. Arrays must be constant at the time of declaration. Can anyone help? [CODE] using namespace std; int main (int argc, char *argv[]) { int nulls=atoi(argv[2]); int arry[nulls]; } [/CODE]

Software Development c++
Member Avatar for Narue
0
199
Member Avatar for leoeroy

I'm trying to make a program that will compare the results in calculating the Cosine with powerseries method and Math.cos method. This is what i have. [CODE]import java.util.*; class Cosine{ public static void main(String[] args){ int degrees = 0; Scanner myScanner = new Scanner(System.in); while(true){ System.out.println("Enter some integer value of …

Software Development java
Member Avatar for leoeroy
0
2K
Member Avatar for neosonic

Hi All, Thanks for your continuing helps and supports, I really love this forum. (and somewhat depended on it). I have got program written in vb6, this program provide the calculation and links to microsoft access and microsoft words. This program soon will be integrated with microsoft visio or other …

Software Development microsoft-access vb.net visual-basic
Member Avatar for vb5prgrmr
0
142
Member Avatar for prilton

hi everyone, i'm new here also new in c#.Please help me to re-populate my listview in form1 from the database when i close form2(modal). is is from form2 formClosing event [CODE]private void Client_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = false; ClientInfo a = new ClientInfo(); a.displayClient();//displayClient() is responsible for displaying …

Software Development listview
Member Avatar for Geekitygeek
0
125
Member Avatar for Es Sayen

hello, when user slect an item from combobox, then its corresponding data should be displayed in the textboxes and labels placed on the form. like if i select a rollno then the name, address, age should appear on the form. kindly, let me know the code for this. Thanks in …

Software Development display visual-basic
Member Avatar for abdalla_92
0
1K
Member Avatar for girl.java

hi how are u all this is my program [CODE]import javax.swing.*; public class Qustion2 { public static void main (String args[]){ double x =2/3; double y = (3*x*x)-(8*x)+4; JOptionPane.showMessageDialog(null,"At x= " + x +" the value is " + y); } }[/CODE] Mathematically when i substitute x =2/3 i get …

Software Development java java-swing
Member Avatar for donaldw
0
120
Member Avatar for Clawsy

Please someone help me... why image panel not showing that image in the frame: [code] //image panel class import java.awt.*; import java.awt.image.BufferedImage; import javax.swing.*; public class ImagePanel extends JPanel { private BufferedImage img; public ImagePanel(BufferedImage img) { this.img = img; Dimension size = new Dimension(500,500); setPreferredSize(size); setMinimumSize(size); setMaximumSize(size); setSize(size); setLayout(null); …

Software Development image java java-swing
Member Avatar for Clawsy
0
205
Member Avatar for Peric

Thing is... I'm trying to insert a new records into database, one of those records is a "datetime"...when I type a wrong date, and try to insert those values into database, i get an error (about wrong typed date etc.)...ok, that's fine, things need to work that way. But here …

Software Development vb.net
Member Avatar for Peric
0
217
Member Avatar for Camzie

Hi there Iam busy creating an .ini file for an application, but it is throwing a null pointer exception the whole time and can't seem to figure out what the problem is. Why would it throw such an error and what does it mean? Could you please help me? Will …

Software Development java multimedia office-suite
Member Avatar for JamesCherrill
0
152
Member Avatar for sufi8

Hi i came across a problem with for my GUI project. for my class project i am designing an appointment calendar. for the layout i am using absolute positioning. so when i run my login class, some times the frame pops-up to a weird default Java frame (not re sizable) …

Software Development gui java
Member Avatar for sciwizeh
0
77
Member Avatar for lacompsr

The board game scrabble works by assigning points to wooden tiles arranged in cells on a board. It's described here:[url]http://en.wikipedia.org/wiki/Scrabble[/url]. We'll simplify this considerably, and consider the following question. We begin with the letter-scoring scheme from Scrabble: a = 1, b = 3, c = 3, d = 2, ..., …

Software Development java
Member Avatar for lacompsr
0
618
Member Avatar for P00dle

I have to read through a text file and replace all occurences of [CODE]%%CNT1%%[/CODE] with the value of a counter. The part of my code that does the actuall replacements looks like this: [CODE]for i in range(1, (count1 + 1)): out.writelines(re.sub("%%CNT1%%", str(i), text))[/CODE] This works fine. Now what I need …

Software Development python
Member Avatar for P00dle
0
66
Member Avatar for amr123

Hey guys, i am writing a couple of programs but I have some problem with the basic one... can you please provide me with a 24 hour clock which has hour, minute and second? also it should have the ability to set the time.. your help is highly appreciated...it is …

Software Development c
Member Avatar for Ancient Dragon
0
188
Member Avatar for basilc

Hey there, first time posting. I have a program that is kinda put together from a program to generate polynomials and evaluate them and a program to do bisection to solve for the root. It may be a mess. The problem is, i believe, when I try to use the …

Software Development c++
Member Avatar for programmersbook
0
159
Member Avatar for sidd.

hi i have a graph which i have to zoom in and zoom out dynamically. i have drew the graph in a panel. any ideas plzzzzzz

Software Development
Member Avatar for Geekitygeek
0
97
Member Avatar for sheehab

Hello... I try to do like this.. But I still ther are some errors...... I don't know how I solve them Could healp me.. please This is my code [CODE] import javax.swing.JApplet; import java.awt.Color; import java.awt.Graphics; import java.io.IOException; import java.io.*; import java.util.Scanner; import java.awt.*; import java.io.FileNotFoundException; public class colok__ extends …

Software Development java java-swing
Member Avatar for javaAddict
0
162
Member Avatar for ivanhny

I'm a student having trouble with creating two vectors of objects for a homework assignment. The first vector creates fine, and prints out the values it imports (readM). The program hangs on the second vector(readT). I've checked the text files and they seem ok. I even tried substituting a simple …

Software Development c++
Member Avatar for jonsca
0
155
Member Avatar for UberJoker

Hey guys. I apologize for my sloppy code. But it got a bit longer than i expected so i stopped bothering about giving meaningful names to Variables later on in the program. Below I have a AVL tree(atleast that's what I intended to write). But my approach to it was …

Software Development algorithm c++
Member Avatar for UberJoker
0
115

The End.