hammerhead 19 Posting Whiz in Training

Quote from wikipedia

There are 55 lakh (5.5 million) registered vehicles in the city, which is highest in world among all cities (within municipal limits), while the Delhi metropolitan region (NCT Delhi) has 112 lakh (11.2 million) motor vehicles[1], again highest in the world among all metropolitan regions. This adds significantly to city's traffic and pollution woes. Delhi and NCR lose nearly 42 crore (420 million) man-hour every month while commuting between home and office through public transport, due to the traffic congestion.[2].

there are traffic lights in many places. But at times they do not work because of power failures or some other reason. There are many crossings where traffic lights are yet to be installed, but they are not major ones.

Oh and yes the traffic is hell. The worst I have encountered by car is travelling 3 kms (1.8 miles) in 3 hrs.

scru commented: We don't have traffic lights at all... +3
hammerhead 19 Posting Whiz in Training

right mr hammerhead, getting into the philosophical world are we...define social engineer for us please.
ANd how are the humans weakest link in terms of security as well? Also wouldn't that apply to hackers as well cos they are humans as well arent they?

Raj

Google for the term social engineers or search wikipedia, I did not post a link because I thought it might violate forum rules.

It is the art of fooling someone to believe something you are not. You can pretend to be a bank manager and ask for a huge amount of money from a bank. Consider the case of Stanley Rifkin. Or you could be forgetful and write down the password for your bank account and someone might see it (consider phishing). Of course a little trick with the computers help.

My point is that, no matter how much the technology progresses, firewalls are installed, files are encrypted, passwords are made stronger; there will be one careless user who will write down the encryption key/password on a piece of paper for a hacker to see.
There are countless example of how people/corporations lots tons of money and data because of fault of a careless self/employee.

Being on this topic, I might as well say that humans will remain to play a major role in disasters too. I wrote a report on technological disasters a few weeks back and many of them happened because of careless attitute of humans …

thunderstorm98 commented: Nice info +4
hammerhead 19 Posting Whiz in Training

What is there you cannot understand? If you expect someone to hand out the answers then you are wrong.

hammerhead 19 Posting Whiz in Training

Here are a few errors I can see

int List::sumOfNodes();

remove the ';' at the end.

while( currentPtr ! = null)

null to be written as NULL

sum = sum + currentPtr;

currentPter is of type Listnode not int. You will have to do something like

sum=sum+currentPtr->value;

also the function must return a value.

hammerhead 19 Posting Whiz in Training

That depends on how you want the love percentage to be calculated and if you want it to be the same for a given set of names. For example you can say that the love percentage will be higher if the two names are similar.

Now you can define 'similar' in your own manner, for example two names can be similar if
1. They have the same length or
2. They have same vowels or
3. Their edit distance is minimum

etc etc. After that you can threshold or use a formula to relate probability to the names. For example if the difference in length of the names is 2 then percentage will be between 0-30, if it is 1 then it will be between 30-60 and if the length is same then the percentage will be between 60-100.

majestic0110 commented: Good idea ! +2
hammerhead 19 Posting Whiz in Training

inport() and outport() functions do work if you have opened the port. I use a software called Userport to do the same. Alternatively you could try inportb() and outportb(). Here is a tutorial on parallel port programming in C
Parallel port tutorial

jephthah commented: i like that link you posted. +1
hammerhead 19 Posting Whiz in Training

The only songs that make me angry are the ones people play at middle of the night at high volume.

scru commented: haha nice one +3
hammerhead 19 Posting Whiz in Training

Okay here is another shorter alternative.

#include<iostream.h>

int eig(int num)
{

if(num<10)
{
return num;
}
else
{
return eig(eig(num/10)+(num%10));
}

}

void main()
{
int n,ans=0;
cin>>n;
ans=eig(n);
cout<<"Eigen number is "<<ans<<endl;

}
vijayan121 commented: !! +6