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.
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!
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.
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: http://en.wikipedia.org/wiki/Recursion
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.
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? :-(
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.
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!"
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).
using namespace std;
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;
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.
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)
int MyInt = 5;
//MyInt now == 6