English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - August 2006

[Selected]: All categories Computers & Internet Programming & Design

For my assignment I need to make a class for a program. In the test program I see an "i". Does it stand for int, or is it an instance or something, that stands for invalid?

//***********************************************
// Month Class Demo Program 1 *
//***********************************************

public class MonthDemo1
{
public static void main(String[] args)
{
// Use the default constructor.
Month m = new Month();
System.out.println("Month " + m.getMonthNumber() +
" is " + m);
// Set the month number to the values 0 through 12
// (0 is invalid), and display the resulting month name.
for (int i = 0; i <= 12; i++)
{
m.setMonthNumber(i);
System.out.println("Month " + m.getMonthNumber() +
" is " + m);
}
}
}

2006-08-03 06:41:51 · 7 answers · asked by quackerjackets 1

On yahoo site it comes up as host is in the black?

2006-08-03 06:41:19 · 4 answers · asked by Shirley J 1

I don't think I have publisher but what other kind of software can you use? Powerpoint?

2006-08-03 06:25:40 · 5 answers · asked by Scott_Shrute2008 2

windows xp

2006-08-03 06:21:25 · 6 answers · asked by mikebarb1 1

Now that it is in peak..how long can we expect it to be the same?

2006-08-03 06:02:08 · 8 answers · asked by Preethikrish 1

The problem I have is that I want to create a 2D array that has a variable size. I see that I can not do the following:

int m, n;
double testarray[m][n];

as c++ will not let me declare variables for the size. How would I get around this? Perhaps you could write a little code for me to illistrate this?

Thank you,

Brian

2006-08-03 05:58:14 · 4 answers · asked by Brian D 1

I have a large text file with thousands of entries on it (each on a new line) which were copied and pasted from different sources, but the problem is that hundreds of the entries are likely to be there more than once. So I would like a batch program to look at this file (let's call it list.txt) and remove anything that appears twice (or more times) leaving only one of every entry. For example:

a
b
c
a
a
b

would become:

a
b
c

(Any duplicates have been removed, leaving only one of each unique entry in the list.)

Could answerers please leave the code in their answer, I will create a batch file from this. For a better chance of best answer, explanations of what different commands are doing should be included. Thanks.

2006-08-03 05:10:44 · 10 answers · asked by Rich 5

EXCUSE ME!! I NEED HELP!! (not a whore. promess!)
i HAVE THAT PROGRAM, A TYPING PROGRAM AND i WANT TO GiVE iT TO SUM1 ELSE BUT i DONT WANT TO GiVE THE PERSON THE 'ACTUAL' CD OF THE PROGRAM, iS iT POSSiBLE TO GET iT ON ANOTHER CD, TO LIKE.. MAKE A COPY OF iT LiKE WE DO FOR MUSiC AMD MOViES??
-iF SO HOW?
-i HAVE WiNDOWS MEDiA PLAYER.

2006-08-03 05:02:56 · 6 answers · asked by ¤AFTERN00N L0VAH¤ 2

And is it really free- serious answers only please

2006-08-03 04:44:07 · 16 answers · asked by Anonymous

ok...in vb.net i have a button called btnAdd..with the text Add, when clicked the text changes to Save..i want the button to be able to click again,saves data,and change back the text...wat is the code to use when click it again...

2006-08-03 04:13:43 · 1 answers · asked by braich_gal 3

2006-08-03 04:07:05 · 20 answers · asked by Anonymous

My husband runs his own consulting business and as a perk to his business clients, we would like to offer to set up a web-site for each client he signs on.

I'm very creative and internet savvy, but web-site development is something I have never explored.

Any tips or resources on how I can start something like this would be greatly appreciated!

2006-08-03 04:05:08 · 18 answers · asked by sweets 2

i want to insert a record in a table with ADO ,and i wrote this code:
------------------------------------------------------------------------
Private Sub Command1_Click()
ado1.recordsource="insert into table1 values('a','b')"
ado1.refresh
End Sub
------------------------------------------------------------------------
but in run_time i see this error:
operation is not allowed when
the object is closed.
what can i do.

2006-08-03 03:53:46 · 3 answers · asked by Hossein 1

2006-08-03 03:32:17 · 2 answers · asked by Anonymous

2006-08-03 03:30:12 · 2 answers · asked by pa69oldfart 4

write a c program to print n natural numbersusing

i dont need explanation

write it like
#include stdio.h
..........................
..........................
..........................
}

2006-08-03 03:10:06 · 5 answers · asked by Anonymous

this is a code to add data in the datagrid:

Private Sub btnAddSupplier_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddSupplier.Click
btnAddSupplier.Text = "Update Suppliers"
Dim ds As DataSet
If btnAddSupplier.Text = "Update Suppliers" Then
DataGrid1.ReadOnly = False
OleDbSuppliers.TableMappings.Add("Table", "SuppliersInfo")
OleDbSuppliers.Fill(ds, "SuppliersInfo")
DataGrid1.SetDataBinding(ds, "SuppliersInfo")
End If
End Sub

An unhandled exception of type 'System.ArgumentException' occurred in system.data.dll

Additional information: The DataTableMapping.SourceTable is required to be unique, 'Table' already exists in the collection.

How to correct this??

2006-08-03 03:08:15 · 2 answers · asked by braich_gal 3

What's BEST!!!!

2006-08-03 03:07:09 · 9 answers · asked by Anonymous

Can somebody help me?
I have to add good quality of image in custom toolbar of Excel 2000 using VBA. I tried msoComtrolbuton method but could not get success..........

2006-08-03 03:02:28 · 1 answers · asked by padam_india 1

how the code becomes complexity,? give me some examples

2006-08-03 02:43:02 · 1 answers · asked by sree 1

2006-08-03 02:36:28 · 5 answers · asked by mojawoja 2

2006-08-03 02:36:23 · 7 answers · asked by ramey_jan 2

i am trying to create an executable on my desktop using a foxpro form. can someone help? step by step process will help a lot

2006-08-03 02:15:35 · 1 answers · asked by daniel e 3

AMOS supports a 48-bit floating point format consisting of a 40-bit mantissa, 8-bit exponent, and a signbit.
Because a normalized mantissa always starts with a binary one in the high-order bit, this bit is not
stored in the floating point number but is always assumed to be present. This allows us to represent the
40-bit mantissa in only 39 bits.

2006-08-03 01:59:20 · 3 answers · asked by skett1978 1

2006-08-03 01:54:11 · 5 answers · asked by groundgurlz_85 1

pls tell me what is meant by plugin in java.
pls give me a smaill example how to develop
a plug in.

2006-08-03 01:52:14 · 1 answers · asked by Aslam 1

fedest.com, questions and answers