In line 21, you are printing the string 'y' as an integer (%d). Change it to %s as follows

printf("My first name is %s \n my last name is %s \n and I am %d years old\n", x, y, z);

Attached gif image via Firefox

I get value answer 21 which looked like not the smallest integer

If you used 10000 instead of 1000 you would get 21.

rproffitt commented: Jackpot or Blackjack. +14

What does the function next return if n <= 1?
Have it return 0 and then you can test for zero in your count loop.
Something like:

void hailstone_Sequence(int n)
{
    int count, value = n;

    for (count = 0; ; count++)
    {
        if (value <= 0)
            break;

        std::cout << value << " ";

        value = next(value);
    }
    std::cout << "count: " << count << std::endl;
}

Hooray! :)

Yes, why one directory / file must be deleted.

If you mean the link source, it would be so that an empty directory or file can be created with the correct reparse attributes.

The target directory with files can exist, but the link directory must not initially exist as an on disk directory.

To achieve what you are wanting to do, you need to move all the files from C:\Custom Program Settings\Sublime-Packages to C:\Users\<name>\AppData\Roaming\Sublime Text 2\Packages and then Delete C:\Custom Program Settings\Sublime-Packages.

Once you've done that the mklink command will work.
i.e. All files destined for C:\Custom Program Settings\Sublime-Packages will be directed to C:\Users\<name>\AppData\Roaming\Sublime Text 2\Packages

Or is it the other way around?

mklink /j
( must not already exist)

mklink /j "C:\Users\<name>\AppData\Roaming\Sublime Text 2\Packages" "C:\Custom Program Settings\Sublime-Packages"
Where "C:\Users\\AppData\Roaming\Sublime Text 2\Packages" must not already exist.

The operator for cin should be >>

std::cin >> n;
std::cin >> x;

As ddanbe pointed out, the byte value is being converted to an integer - BitArray(int32).
Effectively what you have written is:

BitArray bitArray = new BitArray(255);

255 bits all set to 0 (false).

AdwCleaner should take care of Snapdo and search safe.finder.
It requires no installation.

Have you tried running Malwarebytes Anti-Malware?
There's usually an executable that auto starts with Windows that keeps installing the addon each time it's removed.

Minimalist commented: worked well, thanks +5

Try using this.Controls.Add(ribbon1);

Try EM_LINEINDEX message, specifying -1 for the wParam

cambalinho commented: thanks for all +3

Checking code tool - please delete.

Test, following Dani's directions:

LRESULT CALLBACK KeyboardProc(int Code, WPARAM wParam, LPARAM lParam)
{
    if(lParam & 0x40000000)
    {
        GetKeyNameText(lParam, szKey, 32);
        SendMessage(hWndMain, WM_USER, 0, 0);
    }
    return CallNextHookEx(hHook, Code, wParam, lParam);
}

That all seems OK, so I'll blame it on the late night gremlins :)

Yes that was pasted straight into the Code editor and seemed OK.

I've just noticed some anomalies when I try to paste code that aren't consistent with how things previously operated.
I can't recall exactly what it was, but I ended up with the code being double tabbed.

Here's your code, formatted and with curly braces as ddanbe explained.

    #include <stdio.h>

    int main(void)
    {
        int w;
        double v, s, t;

        printf("Dieses Programm berechnet Geschwindigkeiten, Wegdifferenzen und\n"
        "Zeitdifferenzen fuer eine gleichfoermige Translation.\n"
        "1 ... Berechnung der Geschwindigkeit\n"
        "2 ... Berechnung der Wegdifferenz\n"
        "3 ... Berechnung der Zeitdifferenz\n");
        printf("Bitte waehlen Sie aus:"); scanf("%d", &w); getchar();

        if (w = 1)
        {    
            printf("Wegdiffernz (in m):\n");        
            scanf("%lf", &s);   
            getchar(); 
            printf("Zeitdiffernz (in s):\n");      
            scanf("%lf", &t);   
            getchar(); 
            (v = s / t);
            printf("Ergebnis:\n Geschwindigkeit: %lf m/s", &v);
        }

        else if (w = 2)
        {    
            printf("Geschwindigkeit (in m/s):\n");  
            scanf("%lf", &v);   
            getchar();
            printf("Zeitdiffernz (in s):\n");       
            scanf("%lf", &t);   
            getchar();
            (s = v * t);
            printf("Ergebnis:\n Wegdifferenz: %lf m", &s);
        }

        else if (w = 3)
        {    
            printf("Geschwindigkeit (in m/s):\n");  
            scanf("%lf", &v);   
            getchar();
            printf("Wegdiffernz (in m):\n");        
            scanf("%lf", &s);   
            getchar();
            (t = v * s);
            printf("Ergebnis:\n Zeitdifferenz: %lf s", &t);
        }

        return 0;
    }

It would be worthwhile slipstreaming service pack 3 into your installation disk. The guide here is comprehensive and relatively easy to follow.

If you like, I can get you to run SystemLook to see if the correct copy of the problem files is stored anywhere on your computer. Let me know if you wish to pursue this.

I'd recommend also running AdwCleaner (click the Download Now @ BleepingComputer button.) just to remove any dregs of all the junkware removed.

DDoerschuk commented: Another 2-for-2 correct suggestions! +1

It appears that the Eset scan found a lot of PUAs.
Is your installation disk one for XP service pack 3?
Have you tried running SFC from safe mode?

For the print spooler, open notepad and copy/paste the content of the following code box:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler]
"DependOnService"=hex(7):52,00,50,00,43,00,53,00,53,00,00,00,00,00
"Description"="Loads files to memory for later printing."
"DisplayName"="Print Spooler"
"ErrorControl"=dword:00000001
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,e8,47,0c,\
  00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00
"Group"="SpoolerGroup"
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,70,00,6f,00,6f,00,6c,00,73,00,76,00,2e,00,65,00,78,00,65,00,00,00
"ObjectName"="LocalSystem"
"Start"=dword:00000002
"Type"=dword:00000110

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler\Parameters]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler\Performance]
"Close"="PerfClose"
"Collect"="PerfCollect"
"Collect Timeout"=dword:000007d0
"Library"="winspool.drv"
"Object List"="1450"
"Open"="PerfOpen"
"Open Timeout"=dword:00000fa0
"WbemAdapFileSignature"=hex:bd,83,ab,a6,1e,8a,cc,c8,d9,ff,b8,69,f2,94,18,ce
"WbemAdapFileTime"=hex:00,64,e9,f6,f8,9d,c8,01
"WbemAdapFileSize"=dword:00023c00
"WbemAdapStatus"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,02,00,60,00,04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,\
  05,0b,00,00,00,00,00,18,00,9d,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,\
  23,02,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,\
  02,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,\
  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

Save as type: All Files (*.*)
File name: SpoolFix.reg

Double click and allow it to merge with the registry.
If the merge is successful, reboot the computer and check whether the print spooler is listed in services.

DDoerschuk commented: You've just got to love somebody who can dash off 40 lines of registry script and fix your problem! +1

Scan your system with Eset's online scanner. If Ramnit is detected, repeat the scan until it's no longer detected.
http://www.eset.com/us/online-scanner/

Post back with the results.

DDoerschuk commented: Great new tool, new to me. Found a LOT of viruses! +1

You have too many arguments as indicated. You could use:
transform(theReadMessage.begin(), theReadMessage.end(), theReadMessage.begin(), ::tolower);

Using a lambda:

transform(theReadMessage.begin(), theReadMessage.end(), theReadMessage.begin(), [](char ch)
{
    return tolower(ch);
});

I'm using Dev-Cpp 5.11 TDM-GCC 4.9.2.
What do you think about this?

That's the latest Orwell build, so that should be fine.

Are you using the Orwell fork of Dev-c++?
http://orwelldevcpp.blogspot.com.au/

If not, then I'd recommend updating.

The random 7 letter file extension is indicative of a CTB Locker aka Critroni variant. If so, there's no way to recover the private key needed to decrypt the files other than paying the ransom (playing ransom roulette).

For WinDbg, !peb or dt nt!_PEB to get the structure.

Are you passing flower, water and path by reference in the execute function.
This should work:

void execute(int array[ROWS][COLS], int& flower, int& water, int& path)
{
    for (int i = 0; i < 20; i++)
    {
        initializeArray(array);
        int row = 6, col = 1; // reset position
        int position = array[row][col]; // places Harvey in the correct spot

        while (position != 3 && position != -1)
        {
            position = move(array, row, col, position);
            update(array, row, col, position, flower, water, path);
        }
    }
}

You may also wish to seed the random number generator using srand.

at lines 78. 79

int row = 6, col = 0;
int position = array[row][col]; 
// at this point position value = 3

Therefore lines 81 - 85 won't do anything.

while(position != 3 && position != -1)
{
    position = move(array, row, col, position);
    update(array, row, col, position, flower, water, path);
}