jwenting 1,905 duckman Team Colleague

1) seet tools->options->text editor->all languages->line numbers

2) using #include <iostream> is the preferred way for C++ for standard library includes, #include <iostream.h> is deprecated.
The major difference is that the first uses namespaces heavily, the second doesn't for backwards compatibility reasons.

3) You can write MFC code, but you won't get "wizards" and "designers" for your screens, you'll have to do them by hand.

jwenting 1,905 duckman Team Colleague

and even if you put the instances in there, if you include all the header files it still won't matter one iota.

jwenting 1,905 duckman Team Colleague

and please use real words, not things like "plz", "u", etc..

At first glance your problem has almost certainly to do with your mathematics.
You THINK you're doing floating point divisions and multiplications, but are you really?
Think about how Java treats the results of a division between 2 numbers.

jwenting 1,905 duckman Team Colleague

One solution you can try is to create seperate header files with each header file containing variables having less than 64K of size. For eg.

That shouldn't matter one bit. The header files are pulled into the source before compilation and therefore splitting them up doesn't influence the footprint of the compilation unit.

It would only matter if for some reason a header file was too complex for the preprocessor to handle, but when split into smaller chunks can be handled.
That however isn't the case here.

jwenting 1,905 duckman Team Colleague

Just because it's not part of your curiculum doesn't mean you shouldn't be allowed to use it if you do so correctly.

But with education being ever more dumbed down (and now teachers being dumbed down as well it seems) maybe teachers no longer know anything except what's in their own textbooks either...

jwenting 1,905 duckman Team Colleague

M$ -> Microsoft(MS) with their only motive explained. :D

Not quite correct a statement about a company that generates billions for charity...
They donate huge amounts of computer equipment and software each year to schools in poor communities for example, and Bill Gates has put a major part of his fortune into the Gates Foundation which he runs with his wife and father that donates hundreds of millions each year to healthcare and education projects all over the world.
Paul Allen also donates a lot to charity.

In fact they're likely to be just about the company that donates the most to charity of any (and just about the highest percentage of revenue of any major company).

jwenting 1,905 duckman Team Colleague

try http://www.wotsit.org/
If anyone has it, they do... It's AFAIK the largest collection of information about file formats on the internet.
Not all of it is accurate, but it should be enough to get you started at least.

jwenting 1,905 duckman Team Colleague

$35 for a decent editor isn't much.
There are far more expensive ones out there...

jwenting 1,905 duckman Team Colleague

The second is easy. Pascal has built in libraries to convert numbers between bases, just use those.
The third is also easy, once you set up the structure of the program correctly.
At the moment you don't do anything to let the user choose what to do. Write that first.

jwenting 1,905 duckman Team Colleague

Eddie, it's always good to learn about things from different perspectives.
One of the best books I have has examples in Java, C++, and Python.
When I got the book I didn't know Python and hadn't used C++ in years, but that should be no problem understanding what the author is trying to tell. In fact it is a good thing as it enables him to get his point across in the best way possible even if any given language is less than perfect for doing so.

And if you end up programming Delphi for real you may well end up doing C++ and/or C# as well. The days of the monolithic application written entirely in one language are pretty much over as more and more applications are delivered on platforms like .NET, COM+, and Java (which is more than a language, it's an entire platform).

jwenting 1,905 duckman Team Colleague

that's a lot of squid (yes, I've heard the term squid used as slang for quid) ;)

jwenting 1,905 duckman Team Colleague

my parents were both excommunicated for wanting to marry a heretic, he was a Catholic, she was Dutch reformed...
But at least Christian churches no longer kill heretics.

jwenting 1,905 duckman Team Colleague

Starting with VB will only teach poor practice, don't do it.
Java is a better option, but will take you as long to master as does C++.
C# seems to be a slightly smaller language to learn.

What language you start with hardly matters as long as it's a good one, which C or C++ certainly is, and you have good teachers and documentation.
"Teach yourself C++ in 24 hours" and similar books don't count, those books aren't worth the paper they're printed on.

When you start, don't get caught up into learning an IDE thinking you're learning the language, which is what happens to a lot of beginners.

Get a good book or two, like "Accellerated C++" and "Objects, Abstraction, Data Structures, and Design using C++" and go through them one step at a time from beginning to end, repeating everything until you understand it.
This won't take 2 weeks, or even 2 months, but you'll soon grasp the basics.
You may also want to get you a copy of Stroustrup's "The C++ Programming Language" in the latest edition (3rd I think by now), which is THE standard reference for the language.

SpS commented: Agree ~~SpS +3
John A commented: Good advice. --joeprogrammer +4
jwenting 1,905 duckman Team Colleague

You should look better, or get more up to date documentation, as it is quite well documented.

jwenting 1,905 duckman Team Colleague

This is much more than a "rumor" ;).

There may be a lot of people believing it, but there's no hard evidence it really happened so I must class it a rumour.
I'm talking historical evidence here, not biblical claims (and yes, I know that for many Christians everything in the bible is to be taken as truth on face value).

I respect every religion that respects my decision not to be a part of it.
That includes most Christians, but that doesn't mean I have to accept their claims as gospel.

jwenting 1,905 duckman Team Colleague

In 16-bit C programs it is often necessary to use globals because of the limited available stack space and Vishesh is not allowed to use pointers. I used to just put global data into its own *.c file and use as many *.c files as necessary.

Just goes to show that homework assignments that are stupidly constructed teach all the wrong things :)
Personally I've never encountered during my studies an assignment where we weren't allowed to use things that hadn't been part of the curiculum (yet).
Teachers encouraged independent study and experimentation, and would at most look a bit miffed if you found a solution that was easier than the one intended using a different (but correct) technique than intended.

jwenting 1,905 duckman Team Colleague

no, the new syntax for loop introduced in 5.0 allows an alternative syntax.

for (SomeObject o: someCollection) {
  // do something with o
}

someCollection MUST be of type Collection<SomeObject> OR an array of SomeObject (so of type SomeObject[]).

It is shorthand for creating an Iterator over the Collection and assigning each value returned from the Iterator in turn.

jwenting 1,905 duckman Team Colleague

so I'm not the only one with a genetically spread disease running in the family.
Luckily it seems in my case I'm only a carrier (as usually it becomes symptomatic at an early age and I'm several decades past that, but then my dad didn't get symptomatic until he was about the age I am now so it's still possible).

http://en.wikipedia.org/wiki/Neurofibromatosis_1

jwenting 1,905 duckman Team Colleague

The maximum limit for globals in any program should be ZERO.
Globals are evil and should not generally be used.

jwenting 1,905 duckman Team Colleague

And here's another classic example of why people should learn the language first instead of the tools.

All the miriad steps required to get something simple like Hello World (or any homework assignment) working using an IDE make it a non-trivial exercise and the student starts learning the tool instead of the language, defeating the very purpose he initially decided to use that tool for.

jwenting 1,905 duckman Team Colleague

His problem is almost certainly not caused by using TC 4.5 (which though old is still somewhat servicable and can produce 32 bit Windows code) but by a bug in his code.

jwenting 1,905 duckman Team Colleague

no spyware, just a part of the normal printer drivers and NOT downloaded separately.
If you need it it will be included in your regular driver installation.

jwenting 1,905 duckman Team Colleague

never heard of them, and I've been in this business for a decade (and as an amateur for a decade before that) so you'd think I'd have encountered them by now...

jwenting 1,905 duckman Team Colleague

VI takes practice, like any complex piece of equipment, to master.
I'm not surprised you couldn't get to grips with it in a few minutes. It may look like notepad but looks are deceptive.

jwenting 1,905 duckman Team Colleague

what do you THINK it should do?

You have of course not created a consumer/producer system here at all.
You just have 2 threads where one sets a value and the other reads it from an object that's accessible to both.

If you get the same output each time that's possible but not certain at all.

jwenting 1,905 duckman Team Colleague

Either extend Thread OR implement Runnable, no need to do both.
And the method you need is simply called "run()", not "threadRun()".
Your threads are running nicely, they're just not doing anything because the empty run() method in Thread (which you tried to override but didn't) doesn't do anything.

jwenting 1,905 duckman Team Colleague

in another thread he declared to be a poor programmer who knows a little bit of C++, Java, PHP, VB, and a score of other buzzwords.

jwenting 1,905 duckman Team Colleague

you could start by reading the manual, it usually contains instructions to do things like use the product.
If you can't read, you might want to have someone sign you up for classes to learn that first.

jwenting 1,905 duckman Team Colleague

there is no company called M$.

jwenting 1,905 duckman Team Colleague

and yes, there is a file format for that and it's called CDR.

Be more precise when asking questions to avoid confusion, CDR can mean many different things to different people.

jwenting 1,905 duckman Team Colleague

I no longer have the specification for Call Detail Record files, sorry.

jwenting 1,905 duckman Team Colleague

we're not here to do peoples' homework for them Walt, as you should know ;)

jwenting 1,905 duckman Team Colleague

is it? I doubt you can say that without giving an appropriate margin for error.
For example if you take that piece of string and cut it in half you're actually removing some molecules which should make it shorter. But the change in bonding might make it longer.

jwenting 1,905 duckman Team Colleague

First learn to be a very GOOD C/C++/Assembly programmer instead of a poor one (which you yourself admit to being).
That should take about 10 years, during which time you might be able to learn a lot of the skills needed to create something that detects malicious code.
Antivirus firms should be able to provide you with the rest when you get a job there.

jwenting 1,905 duckman Team Colleague

That's not Javascript, it's JSP scriptlet code.
And that's something you should NOT use. Learn about proper web application design and put everything except display code in a servlet.

jwenting 1,905 duckman Team Colleague

1) learn to use your chosen technologies independently before trying them in combination.
2) don't use tools like Dreamweaver until you can understand what it is they're putting out.
3) post your questions in the correct place. Moving this to the JSP forum.

jwenting 1,905 duckman Team Colleague

yes, that's what I'm thinking too. He's calling put with the first Vector, creates a new Vector and calls put with that one.

jwenting 1,905 duckman Team Colleague

I wouldn't know, but the documentation for the JDBC driver you need will know.

jwenting 1,905 duckman Team Colleague

never heard of a "VB C++ program".
And no, we're not here to do your homework for you.

jwenting 1,905 duckman Team Colleague

That's the JDBC driver for the database you're planning to talk to.
Read its documentation, it will tell you what to do.
The first is a classname (provided by the driver), the second looks to be the URI for the driver to talk to the actual database (in this case a simple directory on the local filesystem, not something you'd want for a production system).

Do read some basic JDBC tutorials and your driver documentation. It makes life so much easier.

jwenting 1,905 duckman Team Colleague

if you're revising for an exam and still don't know those things you might as well cancel the exam and actually visit your classes the next time the course is taught because you're all but certain to fail (miracles do happen, but don't count on them).

jwenting 1,905 duckman Team Colleague

no, that's no joke.
VI is by far the most productive editor out there once you get to know it for many purposes.

jwenting 1,905 duckman Team Colleague

That's what a Hashtable (you should prefer HashMap over it and ArrayList over Vector, but that's another story) is all about...
Or are you trying to add the content of the Vector to the content of the Vector that's already there?
That's easy enough to accomplish, using code like

map.get(key).addAll(vec);
jwenting 1,905 duckman Team Colleague

and what about different base numbers?
Right now it will reject valid hexadecimal input (for example) while accepting invalid octal and binary input.

jwenting 1,905 duckman Team Colleague

you'd supply that to a PreparedStatement which is executed on a Connection.

jwenting 1,905 duckman Team Colleague

not event taken the time to unzip the assignment and copy the document?
We're not going to do your homework for you, especially as you obviously haven't even looked at it before posting it here (the zipfile has not been opened, I can tell!).

jwenting 1,905 duckman Team Colleague

anyway, I don't see a single questionmark in there so there's no question at all, just a random collection of words that may or may not represent sentences when placed together in random order.

jwenting 1,905 duckman Team Colleague

single signon is certainly possible, but will require the components taking part in it to be coded for it (basically calling the SSO package instead of handling authentication and authorisation themselves).

jwenting 1,905 duckman Team Colleague

I know Jive supports what you're looking for (I coded part of the functionality myself...).

http://www.jivesoftware.com

Mind I've no commercial interest in them, I was a part of the group that coded the initial version before the project leaders went commercial with it (effectively kicking us all out, as we'd have to buy a license to be allowed to get at the sourcecode).

jwenting 1,905 duckman Team Colleague

hmm, as long as you don't start thinking the bad things Dreamweaver (and other wysywyg tools) do are actually good...

While it has improved and is often better than the competition, that says more about the sorry state of the competition and previous versions of Dreamweaver than about the product itself.

None such tools are good for more than rapid prototyping of sites, to get an idea of what the layout will look like, before the real coding effort starts using proper tools like VI.