132,726 Archived Topics
Remove Filter ![]() | |
Hello, I'm currently a student in college and to get right to the point - I'm having a problem with figuring out the logic of making the program. This is how I want my interface to look TOP - MasterMind : Probably JLabel CENTER - Where you set each guess … Software Development gui java user-interface window-manager | |
Hello, I'd like to get people's opinion on the below. Let's say we want to create a constant mapping between int & String within our application. An obvious solution is to create an Enum with a getter() which returns the String based on a given int. However, we could also … Software Development java | |
when would i ever/when would it be a good idea, to ever explicitly use __int8 nSmall; // Declares 8-bit integer __int16 nMedium; // Declares 16-bit integer __int32 nLarge; // Declares 32-bit integer __int64 nHuge; // Declares 64-bit integer over regular int?? in your program Software Development c++ | |
I am just curious if anyone knows how to BEGIN to start the coding for telling the program to have a GUI with typical fields, labels, buttons, panels, etc in a GUI, and then when a user presses a button, it goes to a complete different GUI with brand new … | |
Well I'll go straight to the point... I'm trying to recursively move through a binary search tree. I'm not really sure what is wrong with my algorithm (and I'm also pretty new to recursion) but this is what I have: [CODE] public boolean contains(BTreeNode<T> node) { return containsItem(root, node); } … | |
Hello, well well, I'm all new with Python, actually I've heard of it for the first time 2 or 3months ago... I have to do a project for my class (I'm not even in Computer Sciences)and I need some help... I start to be familiar with different expressions of the … Software Development python | |
Hello, i am new in c programming it is just the second month i i deal with. I am really confusing about what i have to do with this exercise pls don't lough on me :( I hope for some help. That's what i have to do.. I have to … Software Development c c# c++ file-system | |
Hi All, Say I have two list box listBox1 and listBox2... i have some data loaded in listBox1 which is taken from XML file listBox1Data.xml... and for ex it contains A,B,C,D etc... and listBox2 i need to load data from another XML file which contains data like for A->a,b,c etc.. … Software Development xml | |
I'm just wondering how I can make the program print results right after inputing a guess.[CODE]import java.util.Random; public class Guess { private int z; private int x; private int y; private int toss; public Guess(int a, int b, int c) { z = a; x = b; y = c; … Software Development java | |
Hello world, ok so i need a suggestion for my code. this part of my code i need help [CODE]cout <<"\nEnter Each Sales Person # : "; cin >> salesPerson; while ( salesPerson != -1 ) { cout << "\nPlease Enter the product number: "; cin >> product; sales[ salesPerson … Software Development c++ | |
Hi , I am trying to reverse a string using pointers.I am able to reverse a sting like this: My Reverse Program --> margorp esrever em But I want it word by word. Program Reverse My. [CODE] #include <stdio.h> #include <string.h> char str[50]="Reversing a string using XOR"; char strb[50]; char* … Software Development c | |
Hi guys, I'm having some trouble with my Java homework, and I was wondering if any of you could point me in the right direction. I need to find a loop that will add all the whole numbers from 1 to 1000 and print only the total. I've been spending … Software Development java | |
Hi everyone! Imagine that i have a timer that each 30 seconds it adds 3 to the variable final. Variable final is shown on excel sheet when user press "Export", on cell [5,2]. I added this on the timer: [CODE]numero++; if (numero == 5) { numero = 0; final += … Software Development | |
I am having a problem with my code for an assignment. I am to take the a dice and roll it 100 times, output the random results, and then ask the user if they would like to roll it again. My only problem is the second and subsequent times the … Software Development c++ | |
Hi! My JAVA+MySQL api worked fine yesterday, but today (when I try to connect to MySQL DB from remote machine) the fllowing erro is produced: [ICODE]Java Result: -805306369[/ICODE]. Although there is e.prinstachtrace() in my code, I received only this message. It happens here: [CODE] db = (Connection) DriverManager.getConnection("jdbc:mysql://" + url … | |
How would i go about converting raptor code into python code? Software Development python | |
Hi Guys need a bit of help. I right a c# program that connects to a database and do various things. One of them is to delete a record. currently I can delete a record that i specify but i want it to delete a selected row in the dataset. … Software Development dataset gui microsoft-access open-source | |
i m trying CvRunningAvg() function by passing two IplIMages , alpha value and a NULL mask value. it gives me some runtime terminal error. plz can anyone help me?? Software Development c++ | |
I'm trying to make a memory pool, I've got everything sorted out except for one thing: the allocation. I have no idea how to return a segment of the data in the pool. I have it like this [icode]byte *m_pData;[/icode]. How would I be able to return a segment of … Software Development c++ | |
4 4 33 33 222 222 1111 1111 000000000 1111 1111 222 222 33 33 4 4 Software Development java | |
i have the following code but i can not make the color work. where is the problem? #include <iostream.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <math.h> #include <graphics.h> #include <dos.h> #include <bios.h> #include <ctype.h> float xw[8],yw[8],zw[8]; float xe[8],ye[8],ze[8]; int MR[12][2]={{0,1},{1,2},{2,3},{3,0}, {4,5},{5,6},{6,7},{7,4}, {0,4},{3,5},{2,6},{1,7} }; // ¬ ббЁў ॡҐа int pg[6],pr[12]; int … Software Development c++ | |
Hi everyone, I'm kinda new to this - both to DaniWeb and to C++ programming, so I hope you'll bear with me and my rookie questions. Anyways, I'm trying to build a little C++ program that my daughter can use to practice multiplication. It's supposed to receive two numbers and … Software Development c++ | |
Hello, Do anyone know how to continue the loop to get an average of entered numbers: [code] //Using loop to enter the numbers for (int i = 1; i <= 10; i++) { //Entering ten numbers Console.Write("Enter the number:"); int Number = int.Parse(Console.ReadLine()); /*If user write number 0 in console … Software Development | |
I'm a newbie in assembly Google search was not helping much can some1 tell me how to write %2 in assembly? ps. there might be more question coming up since I'm trying to finish my HW Software Development assembly | |
I'm new to C programming and I am trying to write a simple ID3 tag editor for mp3s. An id3v1 tag is the last 128 bytes of the file, with 30 characters for the artist, 30, for the title, etc... So far I have written this program which saves each … Software Development c file-system | |
Hey guys, I have a question regarding this code I made some days ago.. (works fine) [CODE]#include <stdio.h> /*para printf(),scanf()*/ #include <conio.h> /*para getch(),clrscr()*/ #include <stdlib.h>/*para exit()*/ #include <math.h> //#include <dos.h> //#define NUMEL 20 double f(double x); void _error(int n); enum{INTERVALOS}; enum{SIMPSON1_3=1,SALIR}; int n; float a,b; //float X[NUMEL],Fx[NUMEL]; /*Metodo de … Software Development c | |
I use Visual Basic 2008 I use Datagridview with column "verkoopprijs" I want comma instead of decimalpoint My problem is this 25[COLOR="red"][B].[/B][/COLOR]25 to fill column as decimal point in column "verkoopprijs" the system automatically adjusted to [COLOR="Red"]€ 2,525.00[/COLOR]. This is not okay 25[COLOR="Green"][B],[/B][/COLOR]25 as fill in column with comma in … Software Development vb.net visual-basic | |
Hello, I am more experienced with Java and trying to write a script for a server I have. I need to learn Python anyway, so I am attempting to do it in python. I am not completely lost, but just puzzled why it would do this. Here is the code … Software Development apache python python-django | |
How the computer is not "Random" I want the player can not win! Player only draw! Thank..:yawn: Software Development java | |
I am writing a program that calculates Fibonacci numbers... But I keep getting an error on my code when I try to compile it...: Fibonacci.java:18: illegal start of expression public int calcFib (int n) { ^ 1 error I don't know what I am doing wrong? Someone help? Here's my … Software Development java | |
Yeah I know the usual Palindrome problem, but anyway here it is. Given a number greater than zero and up to 200. Find Palindrome of it by adding its reverse to it and repeating until a Palindrome is reached. If taken more than 10 iterations stop. So here is my … Software Development java | |
Hy guys as mentioned before on my threads I'm a self teaching person learning VB. I' sucessfully created a project fully functional using access database. I've read about SQL connection on VB .net. But I'd apprecite a help to have some one guiding me step by step on how to … | |
Hi, My code is pretty much complete. I just need help in 2 things 1) When the program runs the 0 appears, which is fine, but when I type/write a number the Zero would continue next to the number i type/write 2) When i make an operation, such as add/divide/multiplication … Software Development vb.net visual-basic | |
Hi All, I have a first hashmap with some values and I have a second hashmap with diff values. Question: How can I find the diff between two hash maps and print only the difference. ~Vilas Software Development java | |
OK so I have this homework assignment for a java class that I am taking. with the exception of a couple things not working right(search, delete) ive pretty much got it. The problem I am having now is that I need to implement a controlled break so that my report … | |
Hello, I'm taking a c++ class and I'm very new to this. I have a project due where I'm to change a program from static memory to dynamic memory an help would greatly be appreciated it. #include <iostream> #include<fstream> using namespace std; // Function Prototypes void getArrays(int [], int &, … Software Development c++ | |
I'm trying to write up a little "game" that consists of a U.F.O. that flies in all directions (based on buttons) and explodes when it hits the bottom of the screen. I have 4 classes, 2 of which I'm not allowed to edit. They are: The display window [CODE] import … Software Development java java-swing | |
I'm trying to write a program which asks for the number of animals and then the name and the population of each animal. I want to get it to add the population of each animal but I having trouble getting the variables from the dictionary and adding them. This is … Software Development python | |
After my last project, I passed the finished job onto a friend to test. She reported that when she tried to run it, she was pesented with an error that some dll files were missing (Im sorry I cannot remember them now), I searched while on the phone with her … Software Development c++ | |
Hello, I have a problem with coding circumscribed rectangle in C# [B]console application[/B]. Whith that code i get just filled rectangle which is not correct fot my task: [code] //Entering dimensions of the rectangle Console.Write("Enter the height of the rectangle: "); int Height = int.Parse(Console.ReadLine()); Console.Write("Enter the width of the … Software Development | |
Hello. I'm trying to print some text using printDocument. I've managed to print out the text I need into a pdf. The text is taken from the database which is initially made when the windows form loads. The problem is: Once it prints, it shows the pdf, which is fine … | |
Hi, I'm having trouble displaying the numbers in the file on the screen. The numbers are in the .data files but i cant get them to display. [CODE]//****************************************************************************** // Exercise: Homework 07 Arrays and pointers // This program reads two sets of integers from the text files A.data and B.data. … | |
This is my last resort i have had sleepless nights trying to create this code but have had no luck please can someone help me i need to create a piece of code that fit the requirements below The University wants to make a basic graphical display to show how … Software Development java java-netbeans | |
I saw the same thing I'm about to post on here earlier, but the difference is that I wrote the program, but it doesn't do anything save compile. The code's a bit sloppy, and I'm just not quite sure where to begin with the bugs. The actual assignment is as … Software Development algorithm c c# c++ file-stream linked-list open-source | |
Hi Guys, I've been doing python programming for a few months and I have some code that needs a GUI. All the code does is various print outs to the screen, now in my head this sounds simple enough to convert to a GUI but I can't figure out where … | |
Hi! My JTable is populated from remote DB. I would like to set column names from the DB table column "of_shortTitle". However, if I run query "select * from OrgFolders" then column names are taken from "of_title" by default. The table model is given below. How could I set column … Software Development java | |
Hello Forum, how are you? Okay so, I wish to create a bunch of strings. Simple.... [CODE] string myName = "Usmaan"; string myOccupation = "Engineer"; string myFav = "DaniWeb"; string randomString = ""; [/CODE] Now what I want to do is, make the compiler randomly....I repeat, randomly select one of … Software Development | |
Hello, I am having trouble with this Hangman problem. In line 179, the wrong guesses are supposed to add up. I can't get the 'else' statement (line 176) to work. When i guess a wrong letter, it does not add up the wrongGuesses. What could be the problem? Any help … Software Development c++ | |
Jess is expert system language like clips but based off java instead of c This is my code [CODE](import javax.swing.*) (import java.awt.*) (import java.awt.event.*) (set-reset-globals FALSE) (defglobal ?*crlf* = " ") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Question and answer templates (deftemplate question (slot text) (slot type) (multislot valid) (slot ident)) (deftemplate answer (slot … Software Development gui java-swing |
The End.