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)

        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);   
            printf("Zeitdiffernz (in s):\n");      
            scanf("%lf", &t);   
            (v = s / t);
            printf("Ergebnis:\n Geschwindigkeit: %lf m/s", &v);

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

        else if (w = 3)
            printf("Geschwindigkeit (in m/s):\n");  
            scanf("%lf", &v);   
            printf("Wegdiffernz (in m):\n");        
            scanf("%lf", &s);   
            (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


"Description"="Loads files to memory for later printing."
"DisplayName"="Print Spooler"


"Collect Timeout"=dword:000007d0
"Object List"="1450"
"Open Timeout"=dword:00000fa0


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.

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++?

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++)
        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);