132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
[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 | |
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 | |
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; … | |
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++ | |
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 = "****"; … | |
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++ | |
![]() | 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 |
[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++ | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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, … | |
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 | |
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 | |
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, … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 ![]() |
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 | |
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) … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 … |
The End.