Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 2359 points

Koder

Favorite Answers0%
Answers0
  • Print Affinity Mask?

    i want to print out affinitiy mask and how which CPUs are not enabled if there were turn off via task manager. 

    here the sample code it does show when a core is disable but it will still list as 

    1 2 3 4 5 6.. not like if CPU 2 gets turn off it show be 1 3 4 5 6

        HANDLE process = GetCurrentProcess();    DWORD_PTR processAffinityMask;    DWORD_PTR systemAffinityMask;    if (!GetProcessAffinityMask(process, &processAffinityMask, &systemAffinityMask))        return -1;    DWORD_PTR mask=0x1;    for (int bit=0, currentCore=1; bit < 64; bit++)    {        if (mask & processAffinityMask)        {        printf("Core %d \n", currentCore);            currentCore++;        }        mask = mask << 1;    }

    1 AnswerAdd-ons3 weeks ago
  • C left padding?

    {

       double x;

       int incementor = 0;

      

       while( scanf("%lf", &x ) != EOF )

       {

          printf("%.1f %c", (x ),incementor % 3==2 ? '\n' : ' ');

          incementor++;

       }

    Im trying to print a a list of numbers into a "table" ex above code will print 3 numbers then start a new line 

    i.e

    4549.5 4892.1 4588.4

    903.2 350.3 56.4

    5.3 10.2 45.5

    and im trying to format it as

    4549.5 4892.1 4588.4

      903.2   350.3     56.4

          5.3     10.2     45.5

    also the precision can be change so it could be more decimal places but im trying to align all the numbers at the decimal point 

    2 AnswersPersonal Finance4 months ago
  • Visual Studio 2008 upgrade option in Windows 7 help?

    i have Windows 7 build 7100 and when i got the Maintenance mode in Visual Studio 2008 i don't see the Upgrade option only uninstall/repair/features, is there any other solutions for this? or a way to update the product key?

    2 AnswersSoftware1 decade ago
  • 1 = .99 repeating? check this equation?

    is this equation right?

    x = .99 (repeating)

    10x = 9.9

    10x-x= 9.99(repeating) - .99(repeating)

    9x=9

    1 = .99 (repeating)

    1 AnswerMathematics1 decade ago
  • Exponents question on basic rules?

    need a little help on rules

    ------

    x(y-1)=x(y-1)

    can i make it?

    x(y-1)^0=x(y-1)^0

    2 AnswersMathematics1 decade ago