TECH GUIDE BLOG

Tech Guide Programming Tutorial Tips Tricks

Archive for April, 2009

Linear Single Linked List C++ part II

Posted by Admin On April - 15 - 2009

This part of Linear Single Linked List will tell you how to delete a node at any index. It’s simple like adding a data, you just have to change the node pointer to other that next to the node that you want to delete. If you want to delete the most front data, you have to set the head onto the next node and delete the first node. Looks like front, when we want to delete the last node, we have to set the 2nd node from the last to tail and delete the last data/ node.

Delete any index in Single Linked List

Delete any index in Single Linked List

Delete first data on Single Linked List

Delete first data on Single Linked List

Delete the last index of Single Linked List

Delete the last index of Single Linked List

The code is quite simple rather than add code, I think. Human kind is rather destroying than creating and managing these days.

void DeleteLastIndex()
{
node *temp;
temp=head;
while(temp->nget()!=tail)
{
temp=temp->nget();
}
delete tail;
tail = temp;
tail->nset(NULL);
}

void DeleteAnyIndex(int index)
{
node *temp,*dnew;
temp=head;
dnew=head;
int i=0;
for(i=0;i<index;i++)
{
temp=temp->nget();
}
for(i=0;i<x+1;i++)
{
dnew=dnew->nget();
}
temp->nset(dnew->nget());
delete dnew;
}

void DeleteFront()
{
node *temp;
temp=head;
head=head->nget();
delete temp;
}

I think this code should works fine…. I think, LoL.

Popularity: 51% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter

AMD Cool’n'Quiet™ 2.0 only works under Windows Vista?

Posted by Admin On April - 8 - 2009

Just a month ago, I decided to buy a new rig. I bought AMD Phenom X4 9650 with 2.3 GHz, Biostar TA790GX XE, DDR2 Kingston 2GB PC 6400, and a HDD WDC with 640GB capacity. I installed Windows XP Professional with Service Pack 2 and it’s ran smoothly. Then, I installed AMD Over Drive and Everest 5.0, just want to make sure I had no problem with temperature. I saw the processor clock at 2300.x MHz at that moment. I saw it at idle and do nothing. Just a week after that, I decided to install Vista, with service pack 1. So, I installed it. Run faster, smooth, and no problem. But, I just got shocked to see my Phenom clock at 1150 Mhz, cut by half.

cpu-z

CPU-Z

Well, AMD Cool’n'Quiet™ tehcnology can not be enabled in Windows XP or below, just try it. I’m glad now I can see the AMD Cool’n'Quiet™ tehcnology runs in my desktop, make my home more light and energy-saving. This problem probably XP doesn’t support this feature, you have to change the power scheme in XP to activate it. Open the Power Options from Control Panel and choose ‘Minimal Power Management’ and click OK. If this still not working,  just try to update your processor driver and try to look at the BIOS. Hope this information helpful.

Popularity: 24% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • MySpace
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter