Forum: XML, XSLT and XPATH 10 Days Ago |
| Replies: 2 Views: 368 That's because minOccurs only indicates how many times that element may appear; it doesn't relax any restrictions on the structure of conforming XML documents.
If you want the root element to... |
Forum: C++ 24 Days Ago |
| Replies: 3 Views: 204 C is notorious for giving you "enough rope to shoot yourself in the foot"--but it doesn't matter what language you're talking about... if it allows you to define a recursive function, you can always... |
Forum: C# 31 Days Ago |
| Replies: 3 Views: 2,345 Simple, yes... but not something I'd allow into production code. See these (http://odetocode.com/Blogs/scott/archive/2004/08/20/401.aspx) links... |
Forum: C# Sep 7th, 2008 |
| Replies: 2 Views: 600 You can't link directly to a COM library; you have to link to a .NET interop library. The VS IDE secretly generates this library for you when you add a COM project reference. Since you're using the... |
Forum: C Sep 8th, 2004 |
| Replies: 5 Views: 3,519 Correct; hardware interrupt 9h is the keyboard interrupt, and it's possible to use that to get keyboard states. But if you're compiling for Win32, then by all means use the API like bdiamond... |
Forum: Java Jul 12th, 2004 |
| Replies: 8 Views: 4,738 With some languages, it may depend on the compiler as well. Shortcutting an operation like that can be considered an optimization; I've heard of compilers (can't think of any off the top of my head... |
Forum: C Jun 17th, 2004 |
| Replies: 5 Views: 2,548 The sprintf function (http://www.cplusplus.com/ref/cstdio/sprintf.html) should work for that:
#include <stdio.h>
void Set(char string_time[])
{
sprintf(meridian, string_time);
}
If you... |
Forum: MS SQL Jun 15th, 2004 |
| Replies: 2 Views: 7,700 You can write a trigger that fires on both insert and update:
CREATE TRIGGER <trigger_name>
ON <table_name>
FOR INSERT, UPDATE
AS
<trigger_body>
Here's the T-SQL reference page:... |
Forum: C++ Jun 10th, 2004 |
| Replies: 6 Views: 15,137 Here's an explanation to complement Abu's code example:
A radix sort works with the digits of a number, working from the least significant digit to the most. Here's a sample set of numbers:
423... |
Forum: Java May 13th, 2004 |
| Replies: 4 Views: 3,153 Try this:
Remove the declaration and definition of th_ciz (first two lines quoted above). Roll it all into the ActionListener:
bt_ciz.addActionListener(new ActionListener(){
public void... |