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!


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.

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? :-(

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

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).


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.


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?