132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ProgrammerAl

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
Member Avatar for ProgrammerAl
0
1K
Member Avatar for sid7

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
Member Avatar for sid7
0
2K
Member Avatar for lochnessmonster

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++
Member Avatar for gerard4143
0
194
Member Avatar for musikluver4

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 …

Software Development gui java
Member Avatar for musikluver4
0
5K
Member Avatar for xecure

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); } …

Software Development algorithm java perl
Member Avatar for xecure
0
137
Member Avatar for chiochiosane

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
Member Avatar for woooee
0
74
Member Avatar for garevn

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
Member Avatar for Trentacle
0
344
Member Avatar for pradeepsimhanp

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
Member Avatar for Diamonddrake
0
138
Member Avatar for muncher10

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
Member Avatar for JavaDad
0
98
Member Avatar for 07tr0wa07

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++
Member Avatar for 07tr0wa07
0
179
Member Avatar for techie929

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
Member Avatar for gerard4143
0
135
Member Avatar for jwmollman

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
Member Avatar for kikovi
0
185
Member Avatar for MyPianoSucks

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
Member Avatar for MyPianoSucks
0
124
Member Avatar for ffmwheeler

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++
Member Avatar for ffmwheeler
0
117
Member Avatar for LianaN

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 …

Software Development api java
Member Avatar for LianaN
0
354
Member Avatar for dmurder

How would i go about converting raptor code into python code?

Software Development python
Member Avatar for 15uck
0
95
Member Avatar for ogsirus

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
Member Avatar for ogsirus
0
187
Member Avatar for ayeshakanwal

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++
Member Avatar for jonsca
0
226
Member Avatar for tomtetlaw

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++
Member Avatar for tomtetlaw
0
265
Member Avatar for kondeti ramesh

4 4 33 33 222 222 1111 1111 000000000 1111 1111 222 222 33 33 4 4

Software Development java
Member Avatar for quuba
0
86
Member Avatar for joe00

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++
Member Avatar for jonsca
0
183
Member Avatar for petmol

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++
Member Avatar for petmol
0
130
Member Avatar for bisiii

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
Member Avatar for bisiii
0
147
Member Avatar for zartasha*

HI, I NEED HELP(c++) actually i make a programme through array in which even no.s print.its an integer type.array size is 20. please help me how can i do this!

Software Development c++
Member Avatar for jonsca
0
69
Member Avatar for bigwhiteegg

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
Member Avatar for Goalatio
0
89
Member Avatar for ChEeZeBaLL

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
Member Avatar for Dervish1
0
1K
Member Avatar for danyesu86

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
Member Avatar for myk45
0
104
Member Avatar for dre-logics

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
Member Avatar for GuruJin
0
147
Member Avatar for Democles

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
Member Avatar for Democles
0
276
Member Avatar for chiaig12345

How the computer is not "Random" I want the player can not win! Player only draw! Thank..:yawn:

Software Development java
Member Avatar for chiaig12345
0
64
Member Avatar for Crono

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
Member Avatar for sincerelibran
0
263
Member Avatar for kchadek

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
Member Avatar for kchadek
0
105
Member Avatar for Leodumbi

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 …

Software Development sql vb.net
Member Avatar for kvprajapati
0
283
Member Avatar for DCYPHER

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
Member Avatar for kvprajapati
0
193
Member Avatar for vilas_tadoori

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
Member Avatar for vilas_tadoori
0
7K
Member Avatar for ThomasNeedsHelp

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 …

Software Development java seo
Member Avatar for seanbp
0
163
Member Avatar for misfit956

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++
Member Avatar for misfit956
0
130
Member Avatar for fengapapitt

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
Member Avatar for IamAuser
0
153
Member Avatar for Boonzo

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
Member Avatar for Gribouillis
0
114
Member Avatar for Suzie999

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++
Member Avatar for Suzie999
0
116
Member Avatar for bisiii

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
Member Avatar for bisiii
0
3K
Member Avatar for shakssage

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 …

Software Development c++ pdf
Member Avatar for shakssage
0
237
Member Avatar for puretnaant

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. …

Software Development c++ display
Member Avatar for misfit956
0
171
Member Avatar for lilacemob99

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
Member Avatar for lilacemob99
0
125
Member Avatar for ELewis08

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 …

Member Avatar for Khaled Qawasmeh
0
340
Member Avatar for 15uck

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 …

Software Development gui python
Member Avatar for 15uck
0
367
Member Avatar for LianaN

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
Member Avatar for quuba
0
591
Member Avatar for UsSy

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
Member Avatar for ddanbe
0
119
Member Avatar for ScreamingPsycho

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++
Member Avatar for ScreamingPsycho
0
155
Member Avatar for hannon565

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
0
108

The End.