Recent posts

Hi.

I am trying to understand this code:

q.push(start);
        Visit [start] =1;
        while(!q.empty())
        {
            cur=q.front();
            q.pop();
            process(cur);
            adjacents=get_adjacent of(cur);
            fo(i,0,sz(adjacents))
                if(visit[adjacent[i]]==0)
                {
                    visit[adjacent[i]]=1;
                    q.push(adjacent[i]);
                }           
        }

Doing some BFS search. But I don't see anything that matches the text book. As far as I understood the BFS traversing searches the...



Read more

Hi there.

I am just beginning to learn some C++ programming. It is quite interesting and flexible. I think it is a good habit to understand algorithms through implementing them in code. I studied some ways to represent graph in the computer. It seems to me that adjacency matrix is...



Read more

Hi,

Thank you for reading my post. I am making a simple IDE for C++.  I have a compiler installed. I created a IDE like text editor where I can type my code and save it. Now I want a button which can compile the code on click...



Read more

Hi.

I am a student of CSE. I am doing some project using open CV. I need to load a image and save each of the regions predefined in the program, as a separate image. How do i do it in C++?

For example, suppose I have...



Read more

Hi,

I have a vector of objects defined as follows:
 
class items
{
public:
string name;
int cost;
int weight;
};
 
I need to sort it first on the basis of cost. If cost are equal on the basis of weight, if they are equal too. I need them in the alphabetic order.
 
I am doing some brute force...



Read more

I just bought my Core 2 Duo PC past few weeks and have been using it more than one month. I am having a hard time with my mouse because after using it in a few hours it freezes. It is really irritating especially when I am doing my...



Read more

Hey Dear,

I am using Avast Antivirus version 5. Is this a good Antivirus?

I have traveled to some Antivirus's web sites and in the ESET NOD32’s site says that it is the best Antivirus in the world and when I traveled to the Avast website they say that their product is the best...



Read more

Hi all,

I'm using a MacBook 2.4 GHz. I've got a Gmail account. I want to use iChat with a Gmail account on my Mac. I know the instruction, which works only in Tiger, but not with Leopard. I’ve tried the primary steps, but failed to configure it.

I need the iChat to work in my Mac...



Read more


Top 50+ Cloud Computing Providers There are a variety of cloud computing providers all across the world that offers different products and services to the IT users. They cover every walk of life to provide more ease to the network administrators to manage things and to make processes swifter than...

Read more

Hey guys,

I was watching a presentation by a presenter using Power Point with a projector. And I couldn’t help but notice that while the presentation was going on, if the operator wanted to add additional files he / she had to wait until the presenter finished the presentation and...



Read more