132,729 Archived Topics
Remove Filter ![]() | |
What is the component called in a GUI ? I am designing an application where I need to show certain usernames besides along with the points they have scored in a game.I don't want to do it in a table.I want to use the component shown in the picture below.But … | |
Hello my question how can I split array of string to another string using for loop for example if i have this array of string joe,DE2300,A sam,RM4901,B allay,SM9800,D << name, course, grade I want to split the array to another array so the output will be //I want this list … Software Development java | |
It is still a little scattered, but when debugging I can pick a letter, but it does not compare it to the wordArray/wordBank. So I am not able to "pick a letter" and it replace the * with the correct letter picked. I can't seem to figure out the code … Software Development | |
the program is to print a bill using two classes-customer and item.... in class customer, members are itemname and customer name.in item, members are itemname itemcode,itemprice,noof items...and functions to calculate bill and update stock. iam in confusion with the logic.....i think that it can be done by using nested class??? Software Development c++ | |
Define an integer array ‘arr’ with size 2 in the main method and initialize the two elements in ‘arr’ to be 1 and 2 Write a method ‘swap’ and pass the ‘arr’ into the method, swap two elements of the ‘arr’ in the method Print out all elements in ‘arr’ … Software Development java | |
Details and download from http://python.org/download/releases/3.3.0/#download Software Development python | |
Hello I am trying to build a function that i can use in to search for an object or item from its name, Here is what I have in **sfind.py** def findobj(searchTxt,items): """ This function will help you find an object or an item from list of items passed to … | |
PART 1 of my Project:Using turbo c++ 4.5, and I'm very new to Programming, i'm not good 1. I made a program which stores 100 records please check if it's right. 2. I want to read each line into an array. I want to use a struct or what they … Software Development c++ | |
Hi all, I have come across the class JDatePicker which allows user to pick the date from the calender. But, I actually don't know how to use it. I have searched on the Google but didn't find much helpful information. Can anybody help me on this? Any help(e.g. examples) will … Software Development java | |
I need to create a Point and Rectangle class for a homework assignment and I'm unsure if I have the right idea with what im trying to do. In my Point class it much have a accesor and mutator, and also a distance method which is what im haveing trouble … Software Development java | |
So I'm trying to right a code to output some simple data using classes. Everything works accept the retail price function. It's suppose to calculate and output the retail price but it only outputs 0 no matter what numbers I eneter. Can anyone give me some suggestions on how to … | |
....do not exist really,they are just the registers in the Programming architectutre and there are more processors on a CPU physically. those cx,ax etc... are there to simplify programming as there are a lot of other real registers in the processor???? I thought those places were real! Software Development assembly | |
I have a vb programme.there I link it to a access database.In the database I have a table with 3 fields code,description,amount.I used primary indexing for code field.so codes are as 1,2,3,4,...when I enter the code number in vb program I can extract related description and amount.but what I want … Software Development apple visual-basic | |
I was trying to understand how BITWISE OR works in C, and while looking on the web I found an explanation on msdn http://msdn.microsoft.com/en-us/library/17zwb64t.aspx But there I found this short i = 0xAB00; And I really don't know what this code does. I saw it for the first time and … Software Development c | |
I'm not sure. This the right way to calculate percentage ? Here's my method public class percent extends Operation { @Override public Value calculate(Value key, Value value) { //BigDecimal result = key.getValue().divide(Value.hundred, Value.SCALE, BigDecimal.ROUND_UP); return new Value((key.getValue().divide(value.getValue()).multiply(Value.hundred))); // return new Value(result); } @Override public String getSymbol() { return "%"; } … Software Development java | |
Hey guys avtually i have a registration form ( a table of 3 columns, the name, textbox and the validations ). Everthing is working fine but i would like to do something which i am unable to do.. Actually in one row there is 2 validations (RequiredFieldVal and CompareVal), the … | |
import java.util.Arrays; import java.util.List; import java.util.Random; class DynamicArrayOfInts { private int[] storage; private int size; private final int INITIAL_CAPACITY = 8; private final int GROW_FACTOR = 2; public DynamicArrayOfInts() { storage = new int[INITIAL_CAPACITY]; size = 0; } private void rangeCheck(int index){ } private void ensureCapacity(int size_wanted) { int max_capacity … | |
I am having a really weird problem. In my program I am using a tab widget and two pages on that tab widget. Both pages contain a wxListBox widget on them. I am using wxLB_EXTENDED with both of the List boxes. The problem is that the the ListBox on first … Software Development python | |
**Hello :) can somebody help me how to put the quantity and adding a receipt also the a1, a2, a3, a4 (for example i chose the a1 and it will ask me how many order and do you want to order more? if not it will go to the payment … Software Development c++ | |
I can't figure out how I can change the font style/color of a specific bookmark. Every time I try something, I keep getting the null exception error and and I can't figure out where I'm going wrong in referencing the bookmark itself. Here's what I've got so far in creating … Software Development vb.net | |
the procedure entry part 1stractI could not be located in the dynamic link library MSDART.dll ??? how i can fix this ?? Software Development visual-basic | |
I would like to make my own youtube application, that pulls all the latest videos (in order) from my channel, or anyone elses (Maybe a textbox to the channel?) I would like it to display the latest video in a large WMP Control (Unless you think theres a beter way) … Software Development vb.net | |
Hi all, I am creating one GUI application in java. I need to make menubar visible when particular panel is made invisible. Is it possible by creating an event which will be triggered when panel is made invisible? Can anybody help me? Thanks in advance!!! | |
MY requirement is here to print all values of <item name="BrowseVideoFile"> from below xml but if foreach loop runs and according to the position of for-each loop, then for that position video should not print and all others video should print. when for-each run then every video should print except … Software Development xml | |
I'm trying to read a DBF file into a DataSet and then write a selected number of columns to a MDB. I've been successful reading the DBF into the Dataset with this code; Public Sub sReadDbf(ByVal dbffile As String) mydbfConn = New System.Data.OleDb.OleDbConnection mydbfConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ sAlohaPath … Software Development dataset open-source vb.net | |
i need some help/ having trouble in making this program for homework: Create a C++ program which calculates student fees for those attending Santa Monica College. IN ORDER TO RECEIVE FULL CREDIT, YOU MUST CREATE FUNCTIONS TO SOLVE THIS PROBLEM WITH BOTH PASS-BY-VALUE AND PASS-BY-REFERENCE PARAMETER (No, main() doesn't count). … Software Development c++ | |
#include <stdio.h> #include <stdlib.h> int main() { int i,n,a=0,b=0,sum=0; printf("enter the limit of amstrong number: "); scanf("%d",n); for(i=1;i<=n;i++) { a=i; while(a>0) { b=n%10; sum=sum+ b*b*b; a=a/10; } if(sum==i) { printf("%d",sum); } } return 0; } it prints no errors but doest not work properly Software Development c | |
I have an array of structs that contains an account number and a balance. I open a file which contains an account number and an amount that needs to be either added or subracted from the correct account. My problem is it is adding and subracting to the first account … Software Development c++ | |
i'm just curious, can we make scrolling text without using a Timer? (like scrolling text for news in television) Software Development vb.net | |
0001 Bread Bakery 35.00 0002 Soap Hygiene 20.00 0003 Milk Dairy 40.00 0004 Apples Fruit 30.00 0005 Gelatin Snacks 15.00 0006 Candy Snacks 25.00 0007 Catsup Condiments 40.00 and so im trying to read this grocery.txt file...i'm thinking of using an array...the code ive done would read the first line … Software Development c++ | |
Hi guys, Needing some help here please. I have a 'Save button' setup on my form which seems to be working perfectly. It allows vales to be taken from text boxes and then presented on a datagrid view and also saved to the underlying databse. **The Code for this save … | |
after i add all the reference on my vb6 project and everything loaded successfully when i press on report button to view the report i face this error msg: Logon failed Details: ADO error code ox80004005 Source: Microsoft OLEDB Provider for SQL Server Description: [DBNETLIB][Connectionopen] sql server doesnt exist or … Software Development microsoft-access visual-basic | |
I need to fix the code. Once a war event takes place, no points are assigned however in the next deal whoever wins (be it the player or computer) should get double points. One point for the war and the second point for the next deal that was won as … | |
Hi all, I have a form on my program, and I have two comboboxes that I want to fill with data from columns in my database. I've tried three or four different ways that I've found searching around the web, but none of them seem to be working. They don't … Software Development microsoft-access vb.net | |
Hi, This is my first post, I usually find solution by searching this forums However, I been working on my problem for 6 hours with no solution. Here what I'm trying to do I have a class that extends as JPanle also it implements ActionListener I'm trying to add JScrollPane … Software Development java | |
As a first part of really using Windows Azure I'd like to use C# running on Azure to verify the license code of a program I'm about to issue the upgrade for. I'm planning on porting the whole thing to the cloud, but to gain experience I'd like to license … Software Development c# microsoft microsoft-azure | |
Define a class called ‘twoInt’ with two public integer fields a and b In the constructor of ‘twoInt’, initialize the a and b to be 1 and 2 Create an instance ‘mytwoInt’ in the main method Write a method ‘swap’ (not the method of the class ‘twoInt’) and pass the … Software Development java | |
hi. i have some questions..howtowrite a program that convert numbers to their equivalent words? example. 123 become one hundred twenty-three in 3 different language. Software Development java | |
i was watching [this video](http://www.youtube.com/watch?v=jTSvthW34GU&list=EC9D558D49CA734A02&index=2&feature=plpp_video) about type conversion and what the compiler does while converting from small byte formats to large byte formats(and vice versa) etc etc, and tried to write a code for it... but seems that function calls in my code are getting completely bypassed... once again, here … Software Development c | |
hi, i need help with bubble sort. i am not sure what are variable j and variable sort are for? public static void bubble_sort(int unsorted[]) { int i = 0; int j = 0; int sort = 0; while(sort == 0) { sort = 1; j++; for(i = 0; i … Software Development java | |
I am new to Vb.net and I'me trying to store data to the sql databse using text fields. Everything seems ok but i've tried several connection strings but they wont work.Could somebody give a hand, please? [COLOR=green]Private[/COLOR] [COLOR=green]Sub[/COLOR] btnSubmit_Click([COLOR=green]ByVal[/COLOR] sender [COLOR=green]As[/COLOR] System.Object, [COLOR=green]ByVal[/COLOR] e [COLOR=green]As[/COLOR] System.EventArgs) [COLOR=green]Handles[/COLOR] btnSubmit.Click [COLOR=green]Dim[/COLOR] conn … Software Development open-source vb.net | |
if im doing a dll in dev c++ ..... and doing a dll in c++ but using visual studio 2010 is both of them gonna be the same?? i mean..ermm..if the computer doesnt have the visual studio will they be able to run my dll project which using c++ language... … Software Development c++ visual-studio | |
I have a project to create a pointer based linked list. I am having a problem with the contains() indexOf() and lastIndexOf() methods. I am not able to compare iter->item!=o. This is my ArrayList.cpp. I will follow it with ArrayList.h and Country.h (the ArrayList uses a typedef of the Country … Software Development c++ linked-list | |
I am trying to implement a function sameMonth from a class to compare two user entered months. My class is declared in a header file "Date.h": #include <iostream> using namespace std; class Date { private: string month; int day; int year; public: Date(); Date(string aMonth, int aDay, int aYear); void … | |
Can anyone help me with this constructor problem? In main: instantiate one date object (date1) using the default constructor just to see that the constructor works, print the month, day, and year of date1 using the getters get input from the user and use the setters to set the values … | |
Trying to write a for loop to insert buttons into the array. This is the code to create an array that can hold 7 values: JButton[] buttons = new JButton[7]; String[] buttonText = {"Circle", "Square", "Oval", "Smiley", "Swirl", "Start", "Stop"}; This is the for loop I'm not sure about to … Software Development java | |
When we define a variable name using #define in macro like: #define BUFFER_SIZE buff 5, and then in our main function declare a variable which has the same name like: int buff=8, Does the second buff overwrite the first one? I mean generally is a macro definition considered related to … Software Development c | |
#include <stdio.h> #include <stdlib.h> int main() { int a=0,b=1,c=1,d=0,e=0,x,n; printf("enter the limit: "); scanf("%d",&n); while(d<=n) { d=a+b+c; a=b; b=c; c=d; e=a+b+c; for(x=d+1;x<d;x++) { if(x<=n) { printf("the non tribonacci series is: "); printf("\n %d",x); } } } return 0; } actually how to do this it doesnot print the values Software Development c | |
Trying to change the size of the shapes over time. Making them bigger as they move upwards and to the right, and making them smaller as they move downwards and to the left. This is the class that contains the move method: import java.awt.*; import javax.swing.*; import java.util.Random; public class … Software Development java java-swing |
The End.