Pascal is a defunct language. Even the inventor of it redid it as Modula! If your school is still teaching Pascal, go somewhere else!

My solution for Java programming issues is simple. Don't use Java! Fine for trivial applications, but a pit for system-level applications! Don't be lazy. Learn C++ instead!

In my opinion, Windows is a virus, just waiting to infect your systems! I ONLY use Linux. My wife is an Apple user (iPad and Mac workstations). Neither of us have virus issues, or lost files such as this.

Except on my work Win7 machine, I ONLY run Windoze in a Linux virtual machine! Fortunately, there are few programs I use (and those rarely these days since most vendors are getting pretty savvy about supporting Linux) that require Windows. The one Windows software I can't live without, Sparx Enterprise Architect, runs flawlessly in Wine on Linux. They have spent a lot of cycles making sure of that, because they cannot afford a cross-platform port.

Upgrading from Win7 to Win10 right now? HUGE mistake! Mostly, it doesn't work... :-( Try running the recovery option and revert back to Win7 first.

FWIW, the Win7->Win10 upgrade messed up my brother-in-law's computer and that is what he had to do. He got all of his data back then.

Using the Gregorian calendar for date computations is just so stupid! Any rational date class will use Julian dates (a floating point representation of date + time) which can be used easily in date arithmetic and provide accurate answers, even accounting for leap years, and if done right, leap seconds. No wonder I hate Java and Android (Dalvik)! I like Android devices (I have 3 Android phones, including a Nexus One), but programming them is brain-dead!

Have you really analyzed the original qsort algorithm? Read Knuth's volume 3, Sorting and Searching? If you haven't adsorbed that, then you don't know what the fark you are doing!

XP refuses to die because it is a zombie! You cannot kill a zombie - it is already dead...

What OS are you running? If Linux, try running Alsamixer to adjust your master and other volume controls. If Windows, then see if your system is using the desired channels. On my work Windows system, I have both external speakers as well as a headset, and I need to enable the appropriate one to get output.

Boot into the system. Login as root. Run the commands "lspci" and "lsmod", posting the output here.

commented: I feel this is an inappropriate response to someone whom states that they are 'new at using linux'. +0

Try Googling this on your own. We aren't here to do your homework for you.

I disagree with oricion.

  1. If the card did work at first, but stopped working recently, then the card is likely failing and you should return it for a replacement.
  2. If #1 is not the case, then the problem is likely that you need to access the BIOS and configure it to use the add-on display card instead of the integrated graphics that you are likely using.
  3. Also if #1 and #2 are not relevant, did you move the video cable from the old port to one on the GTX 760? If so, then the card is likely failing and you should return it for a replacement.

Recursion is when a function/method calls itself. This is common for binary search, fibbonacci routines, etc. It is very basic computer science and has nothing to do with Java per se. Read this:

commented: Direct, simple, and correct answer. -1

You can set up a database (MySQL, Oracle, Postgres, etc) in the Amazon cloud that your web site can access, and you can get to from anywhere. They all have command-line tools that let you query the data using standard SQL syntax.

This is why I run Linux - no activations, registrations, other people pwning my system credentials...

Rant finished.

It is possible that either MS "lost" your registration/activiation, or someone (malware) has tried to activate a Windows system with your key (possible). What happens when you actually try to re-activate your license?

There are a number of good discussions on the internet about this - try a google search on the terms "java operator overloading". The short answer is that java does copy-by-reference vs. C++ (and I assume C#) using copy-by-value. Here is one link for you that tries to explain it:

So, you post a bunch of code and fail to say anything about what your specific problem may be... So, what IS your problem?

Just listing the components isn't helpful. When you turn it on, does ANYTHING work, such as fans and such? Have you verified that you plugged the power supply into the correct headers/plugs? If it doesn't even turn on the power supply fan, have you checked if the power supply circuit breaker / fuse hasn't tripped / blown?

I have built a lot of systems from components, but many people have problems doing so because they don't utilize due dilligence in making sure that all the i's are dotted and t's are crossed properly.

C# is NOT cross platform! Yes there is Mono for Linux, but it is not really ready for prime time... Consider it a Windows-only tool. If working in the Windows environment is what you want, then fine, but realize that even on Windows phone systems, Java is still the language of choice.

So, ss125 writes keyloggers? Is he a blackhat hacker, works for the NSA, or just someone who likes to see what others are doing, behind their back? :-(

commented: Any rules stating that only NSA can code for keyloggers? Because I am programmer with interest in learning of all sort of things. +0

Actually, to modify my earlier post, rather than a loop, you can use the C "strcpy()" or "memmove()" functions instead, eliminating the inner loop. It will also be faster, especially since x86 processors have very efficient string handling primitives that gcc (or Visual Studio) will hopefully utilize.

It depends upon what you want to do. In bash scripts you can assign the output of any other executable to a variable using the back-quote character, as in:

varname=`md5sum filename`

You want a java method that can do that? RTFM! Java docs for all of this stuff is readily available on the web. Try a visit to the Oracle java language pages...

To both arpha16 and exsoft: we don't do people's homework here. If they post their best effort code and describe where they are having problems, we might help them. However, the terms of service for this forum is that we DO NOT do your homework for you! So exsoft, please don't do this in future! :-)

Ok, dope-slap over - you (exsoft) gave a good hint that arpha16 should take from here, though it REALLY isn't pseudo code. That would be more on the order of:

while password is not correct
    print "too bad, you lose!"
    print "ok, you win!"
end while

IE, pseudo code is JUST a description of the steps to take to solve the problem. Your code is way too close to correct C++ source code (with some issues - not to discuss here).

Make a backup copy, install directly, and see how it works. If you have a problem with it, then you still have the original to import from.

Try this:

#include <iostream>
#include <conio.h>
using namespace std;
int main()
    int maxArray[10];
    int maxValue=0;
    for(int j=0; j<4; j++)
        cout<<"Enter a number: ";
    for (int j = 0; j < 4; j++)
    cout << "The highest value is: " << maxValue << endl;
    return 0;

Yes, you could evaluate the maxvalue in the first loop, but I like to keep my input, evaluation, and output loops separate. Just personal preference, and it helps me to keep "domains of responsibility" distinct.

AND you need to implement all of the methods specified in the Serializable class.

Your system is running Windows? If so, then you probably are part of a bot-net... :-(

One last suggestion is that instead of shutting the system down, just hibernate it when you aren't using it. It will start up much faster than a cold boot.

commented: thanks rubberman. that's works! +0

Ah! Serious beginner C++ programmer errors. Reference variables are much like pointers, but you can declare them as const, and thus refuse the called funtion from modifying them without going through some contortions (such as explicitly casting them as non-const). The issue is your intention. If you WANT the called function to be able to modify the contents of the object, then pass them as non-const, otherwise, a const reference is preferable. For C++, passing variables as pointers is usually not recommended. Example (from your source):

void class::b(int& MyIntRef)

void class::a()
    int MyInt = 5;
    //MyInt now == 6

Clearer now?

Personally, I only run Windows in a Linux virtual machine. I create a snapshot of the Windows "disc", and when I get a virus, I just restore the snapshot. Virus - gone!