acedemic versions are available to teachers and students on showing their credentials. Though many stores sell them to just anyone you're not allowed to use them unless you're a teacher or student, and the license expires when you no longer fall in one of those groups.
The standard version of VB .NET 2003 costs about €140 including taxes, I think I saw it on Amazon for $100 or so.
At those prices I doubt there's an educational license of the standalone product, though there likely is one for the entire Visual Studio (I do know Microsoft sells an educational license to VB in combination with a student guide and I think a language reference, a nice set for about the same price as the standard version).
huh?
You'll need to make sense for people to be able to understand what you're asking.
No, it shows yet again that a large number of computer users don't care to keep their operating systems (whichever they may be) up to date with the latest security updates and will run with full privileges even while not knowing what they are doing.
These same people also blithfully unaware click on email attachments from people saying "I love you" whom they never heard from, fill in webpages with personal information on request from eBay (well...) when they've never used eBay, etc. etc.
As to criminal intent of hardcore Linux users: I never got more virus emails, phishing scams, and other nasties sent to my mailbox than during a short interval I was subscribed to a Linux newbie mailing list, the mail coming through the mailing list...
IE itself is pretty good, IMO it's superior to all the competition.
The problem is not the firewall, the problem is your attitude of making your computer wide open to the world.
when you call by reference you also greatly reduce the overhead of creating the callstack of the function.
The amount of stack memory needed will go down from the size of the struct you pass as a parameter to the size of a pointer to that struct.
If the struct is really large (say several kb) that can greatly increase performance and reduce the memory footprint of your application.
By passing a reference you also remove the need to create (underwater) a copy of your data whenever you call a function, another way in which the overhead of creating your callstack is created.
Therefore passing a const reference is almost always preferable if you're going to pass something that's larger than the size of a pointer in your operating system (usually 32 bits in current operating systems).
Deeply nested conditionals always tick me off. There's always (well, almost) a better (read, cleaner) way of doing things.
Damn shame that. If people used a better browser we wouldn't see so many spyware problems ;)
You mean "a different browser"...
And you're quite wrong, if more people use different browsers that just means the malware authors will target those in addition to (or instead of) IE.
It's economics of scale, when there's 10.000 people using an application there's no money in scamming them or stealing their data.
When there's 10.000.000 things become interesting.
The first malware targeting FireFox was I think already floated some time ago...
And of course most malware doesn't rely on activeX at all. It just tricks the user into downloading and installing some application with promises of something free.
Anyone want to visit Iraq now?
As of "at this time" or "at some point in the future"?
At this time, it's too risky for me.
At some point, I'd love to visit the old sites.
I would love to go to Amsterdam.
Been there, done that, live near the smudge.
Worked in the city for 5 years.
Nice place to visit for a few hours but wouldn't want to live there.
I've been to many places, each has something I liked except New York (sorry Dani).
There's always new horizons, new places to see. Australia, Iceland, Chile, Jamaica, South Africa, many places in Asia.
And there's so many places I haven't seen in countries I've visited.
But with all that, if I got invited to join a one-way mission to the stars I'd not have to think twice before accepting the offer.
get an older one and start taking it apart :)
Then put it back together and try figuring out where the leftover parts go ;)
quote right Alex, but that cracker mentality is exactly what a lot of the hardcare linux people have.
They're religious zealots, and I use that term deliberately.
To them terrorism against their enemies is seen as just and right, everything is allowed (even to be praised) in the fight against Big Corporations.
If you've ever looked at /. discussions you'll see that clearly, everyone who is opposed to that attitude is believed to work for Microsoft (which they of course don't spell out in fear their keyboards will explode) or the CIA.
indeed, the "compared to their other divisions" is required. IBM this year held over 3.5% in volume of the entire world PC sales, in money they probably hold a lot more as their machines are some of the more expensive ones.
I do however question the wisdom of their decision.
They intend to focus more on software and consultancy which sounds logical as they currently make more money from that.
But they are forgetting (and I've seen this time and again) that what appeals to customers is the entire package deal.
They get IBM consultants who bring IBM software running on IBM servers and also configure the company with IBM workstations and then bring in IBM support technicians to form the internal company helpdesk and network administration teams.
Remove one component from that mix and you stand to loose a lot of business to HP (for example) who DO have the entire package.
In that regard the PC production while itself a relatively minor part of the company income is vital in getting or retaining the lucrative contracts for many of the other divisions.
I've been on the receiving end of a similar decision, where a website was shut down for not making money.
Indeed it didn't which is hardly surprising as it didn't sell anything.
What it did do was provide potential customers with just enough information to get them started and then lure them towards local branches of our …
NaN is typically the result of a floating point divide by zero.
So look at what might cause that...
They're not part of the standard installation. Depending on which implementation your course uses you'll have to download it from somewhere.
To get to the core of why you don't get your expected result:
Check what happens in your function triangleShape(int).
Because you are passing your shape variable to the method by value any changes to the shape parameter of the method are not visible outside the method.
To get the shape known outside the method, either give the method a return type int and use that to set your shape variable to the value calculated or make the method parameter a reference (int&). In that case you should also remove the local variable shape from the method.
Do you have to use vector?
If you can use list instead, that has built-in sorting functionality, all you need is to pass the sort function of list a pointer to a boolean function that compares 2 elements.
You're declaring a function int S1(int, int&) but defining it as int S1(int&, int&).
The linker can't find the function it expects to find (S1(int, int&) ) anywhere and throws a fit.
P.S. VC++ 6 is not VC++ .NET...
sounds to me like you have instructions there which detail every single thing your application needs to do and the exact order it needs to do them in.
If that's not enough to create a small program I wonder how you're ever going to write something large based on requirements no more precise than "make a program that does XXX"...
unless you want something pretty special (like an executable jar file) you don't need to create a manifest file, the jar tool itself creates a default which in 90% or more of cases is enough (in over 5 years I've never needed to write my own).
As to the use of jar, there is quite detailed documentation contained in the JDK documentation which you can download separately.
Basically, from anywhere on your system, type "jar -cvf <jarfilename> -C <path from where to include stuff in the jar> ."
Which CPU wins out has everything to do with test conditions.
Apple couldn't get a dual CPU G5 to outperform a single CPU P4 machine even when they used an optimising compiler for the G5 and an non-optimising compiler for the P4 AND turned off hyperthreading on the P4 while finetuning the G5 for maximum performance...
Had they just used Photoshop and told it to perform some expensive manipulation it would likely have been faster but that wouldn't serve Apple's purpose of breaking out of the mold of being specialised graphics workstations :)
You need no sorting at all in this scenario. Just keep an array of 4 ints and 2 ints.
For each int read check if it's larger than the one in which indicates the smallest and smaller than the one that indicates the largest.
If so, insert it into the array.
If not, replace the largest (or smallest) with the new value and put that old largest (or smallest) into the array.
When all are read add up the elements of the array and you're done.
There's no requirement to show the numbers from smallest to largest after all so why go to the trouble of getting them in that order in the first place?
sounds Australian, which I guess makes it weird ;)
And to think I've used one of the first IBM PCs and am typing this on one of the latest (thus last)...
For 20 years of my life IBM has been nearly synonymous with PC (even if I have built all my own from scratch).
and to remain free:
- don't use P2P networks
- don't use pirated software
- don't click on any popup ads
- be very careful about banner ads. Only click them if they're from reputable companies.
- get rid of Norton and get a GOOD virus scanner
- run a firewall
AOL is just a rebranded IE5 yes.
If you've upgraded your machine to IE6 it's a rebranded IE6 :)
Indeed let's not have holy wars. IE is no more vulnerable than is Firefox or anything else, it's just a bigger target and therefore the malware authors can make more money targeting it.
As soon as FF becomes a large enough target to be worth the effort people will start to target that as well.
French programmers? Isn't that an impossibility? ;)
Sorry, but all the French software I've seen wasn't very good at all :)
no, that's not possible.
What I'd do is store the questions with a unique number as a key, then create 50 random numbers and pull the questions with those numbers out of the database.
uh, and what was the question?
>i don't know what to do with this, i don't even know how to start off.
Try: int main() comes to mind.
>this is not homework.
You're being employed to write this? Look for another job.
I'd rather think her employer should look for another programmer and sue her for damages caused by faking her CV.
That's the problem when you pull code from some website or book and submit it as your own... You learn nothing from it.
Learn to make your own code, learn to understand the code of others.
Or you can use a void pointer in the header and cast that in the implementation code.
Dirty, not safe at all, but it works.
Circular references are almost always a sign of bad design btw...
>If performance is this much of an issue, you need to be using inline assembly.
I am, in some cases, but mostly I'm relying on my old faithful GNU-compiler to do the optimization for me. Thank you for your piece of advice all the same.
if you're that concerned about performance you should use a better compiler. The GNU compiler is not known for turning out highly optimised code.
you can't but some compilers will treat a file that has a .c extension as a c++ file if it contains c++ syntax which may make some people think you can.
A for-loop is typically used when the number of passes through the loop is known in advance.
A while loop is typically used when the number of passes is NOT known in advance.
A do-while loop is rarely used but can be useful if the loop is known to have to run at least once and the total number of runs isn't known (or at least not known before the end of that first run).
why can't you use another compiler?
Cost can't be an issue as there are several modern compilers available free of charge.
Or are you stuck on a machine running DOS?
all you need is a loop, a float to hold the result, and a loopcounter :)
I wrote the code in about 3 minutes, including the time to start my editor and the time to compile it.
that is true, also people with the greatest skills also end up behind bar's shortly afterward.
or in front of them, getting staggeringly drunk.
After which they may indeed end up behind bars on DUI charges :lol:
not at all a fetish, just overused by people that read tutorials by other people who abused it :)
There can be good reason to use it, for example if you were creating a fullscreen DOS application in Turbo Vision and wanted to clean up after yourself when terminating it.
and scrap #include "stdafx.h" as it's not needed... Never understand why MSVC adds that to everything.
Also add #include <iomanip> or you'll never get a clean compile. endl is defined there.
no, it's final. There used to be an unformat tool under DOS that could undo some formatting actions IF no data had been written to the disk afterwards but it wasn't very reliable and was scrapped. I guess it worked by having format store a copy of the directory information somewhere safe during formatting whence it could then be read back if needed.
As you may know formatting (unless you specify special flags, and depending on operating system) often doesn't actually delete all data but only overwrites the disk table of contents/directory info/whatever the name for your file system.
have you tried it?
If it doesn't work, what does happen?
My guess is you may be trying to read and write to a text file when you are handling binary data.
x->y is shorthand for x.(*y) which may make more sense if you're not used to the syntax.
the universal answer is 42, who needs to count to 46 or worse 47?
I think (in fact I'm almost positive) you need a 1.4 or later JVM to run Tomcat 4 as it.
You'd better upgrade anyway as 1.3 is way way old.
if you read back a few replies you'll see the answer to that.
Learning to read compiler output can be a bit tricky but is extremely helpful.
Tutorials and teachers should spend time on it (even though different compilers produce different output the principles remain the same), sadly most don't and just expect everything to compile first time...
Look at the big button on your keyboard marked "Caps Lock". Press it until the CAPITAL LETTERS go away.
start by yourself then come back with specific questions.
hmm, I tried it and it looks fine.
I guess you used a different layout manager somewhere, probably a FlowLayout instead of a GridLayout...
By placing a gridlayout in each of the fields of the borderlayout they will line up correctly (as the vertical space taken up by each cell will be identical for all grid layouts in this case).
That will guarantee correct allignment as components are by default centered in a cell (or rather stretched to the entire cell size which in case of components with a fixed height like labels and sliders effectively centers them).
I noticed I forgot a few lines:
jPanel1.setLayout(gridLayout1);
jPanel2.setLayout(gridLayout2);
jPanel3.setLayout(gridLayout3);
gridLayout1.setRows(3);
gridLayout2.setRows(3);
gridLayout3.setRows(3);