132,726 Archived Topics
Remove Filter ![]() | |
I want to add a selectable image to a PadDraw() of a JFrame container. So how can I do it? I've got a idea that it can be done by JLabel, but I think it's not selectable. So, how can I add that? | |
Hi I've been trying to code a bst based upon this link below: [url]http://www.stanford.edu/~blp/avl/libavl.html/BST_operations.c.txt[/url] I've adopted a similar strategy, whilst making some modifications, however for me I'm having a problem in that every time I go to add a new node to the bst, the root is always null, and … | |
I am confused about how to make a button able to clear the text in all textboxes. I know in c# I can just say textbox1.Clear(); but this won't work in this case. Please someone help please! thank you! | |
The book I'm using says it should look something like this [CODE] import java.io.*; public class main { public static void main(String[] argv) { String fil = "CormeOn.bat"; FileWriter fw = null; try { fw = new FileWriter(fil); } catch(FileNotFoundException fnf) { System.out.println("Yea...."+fnf); } catch (IOException e) { e.printStackTrace(); } … Software Development java | |
I have a file of name PROFILES.DAT in which several records are stored. I want to create some new fields in those records so I made a new program to read the file, store records in a structure, copy the structure elements into a new structure and finally write the … Software Development c file-system open-source | |
I am stuck in this code. I have to print results every 30 tosses for 500 total tosses. I made the 30 but in the loops. And also percentages are showing as 0 Help or hints would be much appreciated. [CODE]import java.util.Random;// program uses class Random public class CoinTossing { … Software Development java | |
how can i check a given string to form a palindrome or not for(i=0;i<str.length();i++) { if(str.charAt(i)==str1.charAt(i) } } Software Development java | |
I would like to know when NullPointerException comes in java. any help would be appreciated. Software Development java ![]() | |
Please, please explain to me why this is giving me an error: [CODE]class bvo: C = 'Hello' def getC(self): return self.C bvo.getC()[/CODE] Software Development python | |
Hello there! I'm working at a new game and i have a little problem.. [ICODE]program MousTestProgram; uses Crt, Dos, Graph; var graphicsdriver,graphicsmode,errcode:integer; procedure ResetMouse; var regs : registers; begin FillChar (regs, SizeOf(regs), 0); regs.ax := $0000; Intr ($33, regs); if regs.ax <> $FFFF then begin writeln ('hardware/driver not installed'); halt; … Software Development pascal | |
Hi All, im pretty new to c#. Im trying to use this class from codeproject ([url]http://pastebin.com/ZdVGf0wd[/url]) to save a struc to file. This is my *short& test code ([url]http://pastebin.com/bARaBe7a[/url]). I am able to write and read a file as long as it only contains one struc. as soon as i … Software Development | |
In high school I learned Pascal and C++. Everything from hello world to search trees, to graphical battleship with AI. Now I'm a freshman in college and in my CS1 class we are using Java, but after 2 months we are just now on arrays. Basically I was just hoping … | |
Hello, I have a weird problem while running my project. I use netbeans and here's my code and the problem is explained after the code. [CODE]/* * NetworkingView.java */ package networking; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import … Software Development gui java java-netbeans java-swing | |
lets say i have 8 deck of cards how to put all of that inside a array do i have to make a multidimensional array for each deck??? Software Development java | |
Hello everyone, I have a question about list boxes I want to know how to test the 1st list box if it has items more than the other list box but by one item, here is what i have: [CODE]If lstInvisibleTv.Items.Count > lstInvisiblePc.Items.Count Then[/CODE] it works good if the lstInvisibleTv … Software Development vb.net | |
hello, anybody help me please, i want to know "delete a folder" code.If you know please help me. Thanks for your read. Thanks all Software Development visual-basic | |
Hi, I am trying to work on creating a linked list of player in a game, but I have not written code in a while and have no idea what I am doing wrong, can you please help with suggestion of what I did wrong or idea of how can … Software Development c++ linked-list visual-studio ![]() | |
In an earlier post, Tech-B stated that, other then dialogs, there wasn't 'any "real" GUI support' in Python that uses the Android SDK or SL4A/SAE. Has anyone tried Jython with the Android SDK? | |
If i try to store character in an integer variable...the programs shows error...it repeats certain statements indefinitely... i want that if i try to store character in an integer variable...it should prompt the user to enter integer again...lz help Software Development c++ | |
Hello, I want to put all my events in one class file and call them in a main window following is my code in mainwindow.xaml file [CODE] <Window x:Class="WPF123.MainWindow" xmlns:Local="clr-namespace:WPF123"> <Window.CommandBindings > <CommandBinding Command="Local:MyCommands.Print" Executed="PrintCommandHandler" CanExecute="CommandBinding_CanExecute" /> </Window.CommandBindings> ... <Button SmallImageSource="Images\Print.png" ToolTipTitle="Print" Command="Local:MyCommands.Print" /> </Window>[/CODE] mainwindow.xaml.cs [CODE] public MainWindow() { … | |
hi plz help me how to simple displaying 1 to 20 prime numbers with for loop plz help me Software Development c# | |
Hi, I would like to know the code used for java to clear the screen as we do in c# using [COLOR="red"]Console.clear();[/COLOR] is it possible in Java aswell? If yes, what code should i use? Software Development java | |
hi i started coding battle ship when i was done i noticed that the user and computer always misses, even if they hit, i dont know what i did wrong [CODE]import java.util.Scanner; public class Battleship { public final static String USER = "user"; public final static String COMPUTER ="computer"; public … Software Development gui hard-drive java | |
Hi, I have an undirected graph, I wish to find 3 shortest paths, my code below gives me all possible paths, can anyone give me some advice to find 3 shortest paths ? my idea of finding 3 shortest path is 1) since i have all possible path, i can … Software Development algorithm | |
Good morning folks...I have a pseudo concept question. I have a trio of unix text files that I need to load into an Access database, and then do a comparison for matches (knowing one field will never match). My original idea was to create a VB application to parse the … Software Development unix visual-basic | |
Hi Everyone, i have recently started learning assembly and so far i do enjoy it , however my recent problem has me stumped ... The question is : ask the user to enter a keystroke and then determine whether its a decimal # or lower case char or printable symbol, … Software Development assembly | |
Good day to everybody! I just want to know on is there any function/solution in vb6 that offers the best/most fastest way to autocomplete listview when type in a textbox.The data should be from SQL Server using ADO connection...Ive seen this function(I've not tested it yet) from [URL="http://www.vbforums.com/showthread.php?t=438622."]http://www.vbforums.com/showthread.php?t=438622.[/URL] [code=vb] Private … Software Development listview visual-basic | |
Last year I built a generic list, everything was good. This year I'm adding classes to the list. These classes have lists. Everything is okay until the program ends, then it crashes. If I comment out my list destructor the crash doesn't happen. So I'm assuming the destructors aren't unraveling … Software Development c++ ![]() | |
I have two forms Login and Main Menu. I want to retrieve the username from the textbox1 from login and put it in the status strip in the main menu. However, when i change the modifier of textbox1 with this code [CODE]TextBox textBox1; public Login(TextBox txtBox);[/CODE] or any other code … Software Development | |
Hi everyone. I have a problem. I need to write a program where I can draw elements just by pressing the buttons on the form and I can do some operations with figures which I drew like (spin, delete, maximize/minimize). The task was given to me: use keys on keyboard … | |
i need help in making the size of the array to n size in queues.i have made a program help me in it. [CODE]////##############///// #include <iostream> using namespace std; #define MAX 5 class queue { private: int t[MAX]; int al; int dl; public: queue() { dl=-1; al=-1; } void remove() … | |
[CODE]#include <iostream> #include <string> using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void displayInventory(); void inventory(); void exitGame(); int playGame(); int main() { //Menu Text. cout<< "\t******Menu******\n\n"; cout<< "Please choose one of the following:\n"; cout<< "1 -Play Game.\n"; cout<< "2 -Exit.\n"; int choice; cout<< "Choice: "; cin>> choice; string … Software Development c++ | |
Below is my code. My assignment is to write a code to ask the user to enter the amount of people in the class between 1 and 25. Then enter that many names and it will list the first and last name alphabetically. ex. jon matt kate = jon matt … Software Development c++ | |
Greetings, I'm hoping that i can get some help on an exercise I'm doing dealing with multidimensional arrays. I want to move around a board and calculate how many steps I've taken on the board. Input asks for the seed number and how many steps to take. I just don't … Software Development c++ | |
Hello All, Not sure this is the right forum, but I have a Visual Studio question. I am used to using code::blocks as an IDE. My current instructor likes to use Visual Studio 2008, so I am trying to adjust. One big difference I have found is that when a … Software Development c++ ide visual-studio | |
I'm a C++ student, and I'm almost there on this assignment, except I can't get the search function to work correctly. The search function should accept a search input from the user, then list all the items related to that input. In this case, its all the tasks related to … Software Development c++ | |
Hey all, I'm fairly new to C++ and am trying to write a program that continues asking the user for a number until "0" is entered. I am supposed to count the number of positive, negative, odd, and even numbers that the user has entered once the program is terminated(0 … Software Development c++ | |
who has a program of grading system in visual basic? thanks for your concern!!! Software Development visual-basic | |
I am having some basic compile issues defining a BorderBrush. [url]http://msdn.microsoft.com/en-us/library/system.windows.controls.border.borderbrush.aspx[/url] states that you define a borderbrush like this: myBorder1 = new Border(); myBorder1.BorderBrush = Brushes.SlateBlue; but in my code, when I try border1.BorderBrush = Brushes.SlateBlue; I get Error 1 The name 'Brushes' does not exist in the current context … Software Development | |
Here are 2 simple files I am unsucessfully trying to combine and make the .exe. The errors i get are: Multiple definition of '_fun1' and '_fun2'. I am using the Cygwin gcc compiler. Please advice, Thanks. [CODE]#include <stdio.h> #include "functions.c" int i = 35; int fun1(); int fun2(); int main() … Software Development c | |
Hi, I don't understand how to write unix shell commands in python. I have this txt file were I want to delete duplicates. It looks something like this: RTGR.txt FRTO.txt RTGR.txt SDOP.txt QWJL.txt SDOP.txt FRTO.txt FRTO.txt ...etcetc... I think I'm suppose to import os and then I want to use … | |
Hello! Im writing a program that outputs some triangles and such. And I want to count the written *s. If anyone would help i would really appreciate it. Code: [CODE]#include <iostream> #include <string> using namespace std; int main() { char znak; znak = '*'; int st_vrst = 0; int ploscina_trikotnika, … | |
I got this error, when the bullet collides with the enemy. [CODE] 341, 458 null 341, 458 null 341, 458 null 341, 456 java.awt.Rectangle[x=340,y=75,width=50,height=50] 341, 456 java.awt.Rectangle[x=325,y=45,width=50,height=50] 341, 456 java.awt.Rectangle[x=479,y=15,width=50,height=50] 341, 454 java.awt.Rectangle[x=340,y=76,width=50,height=50] <CUT THIS OUT. ABOUT 1000 LINES LIKE THE ONES ABOVE> 305, 352 java.awt.Rectangle[x=222,y=36,width=50,height=50] 305, 352 java.awt.Rectangle[x=299,y=6,width=50,height=50] 341, … Software Development java java-swing | |
[CODE]private void rbWeek_CheckedChanged(object sender, EventArgs e) { if (rbWeek.Enabled == true) { DialogResult dChangeCycle = MessageBox.Show("Yes to start new billing cycle from today's date. No will make no changes to next billing Date.", "Next Billing Date Change", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dChangeCycle == DialogResult.No) { } else if (dChangeCycle == DialogResult.Yes) … Software Development first-post | |
Hello once again. Ive been tasked with writing a program the calculates the number of legos needed to create a pyramid. I have to do this in an array for a specific level ie...level 4 requires 16 legos to complete, as well as the total number of legos to complete … Software Development vb.net | |
Okay so I have figured out a simple solution but the problem is it might not always work; so I want to combine it with something else to make sure my applications only run on the computer that ran the application first. Basically I retrieved the host name of the … Software Development | |
I am a newbie who just graduated. I found my first job and begin to review some legacy codes And I find out there are a lot of macros which could be replaced by function (somebody especially c coders may think macro is a better choice) Not even that, I … Software Development c++ | |
I have the following code to generate an array of random numbers. How can I get it to print the array like [5,89,76,34,2] instead of printing down. I don't think it is actually printing the array just the numbers. [code] import java.util.Random; public class RandomIntArray { private int[] numbers; public … Software Development java | |
i have this code for adding a node after the previous node, but valgrind is saying that there is a memory leak of 16 bytes, can someone please help me identify where the leak is? i think i didnt assign a null pointer somewhere but im not sure exactly where … Software Development c linked-list | |
In writing a logging program for a SDK Engine, I have come across some problems. The logging function works fine when called with test programs, but when I run it in a full test of the SDK Engine, no file is ever created. I added some testing lines to make … Software Development c++ file-system ubuntu |
The End.