Sep 24, 2010

resolve multiple numbers from getline string

string datafile = "e:\\reg.txt";
int pos;

ifstream datastream;
datastream.open(datafile.c_str(), ios.binary);

if (!datastream.is_open()) {
cout<< "Data files not opened, end of running!";
exit(0);
}

string myString;
while(getline(datastream,myString)){
vector str;
std::istringstream iss(myString);
while(iss){
iss >> pos;
str.push_back(pos);
}

data.push_back(str);
}

Sep 21, 2010

Percetion

Projection &Knowledge & logic together make our concious

Sep 17, 2010

Heart Disease and its true medicine

Less than a century ago heart disease was an extremely rare disease. However, today it is the cause of death of more people in the world than all other deadly diseases taken together. The most encompassing researches and studies on heart health have indicated that lack of happiness and gratification is by far the biggest risk factor resulting in heart problems. Since happiness is amongst the principal expressions of love, only those medicines that are love-based can truly and completely heal the heart and protect one from disease and ageing. If fear is the motivating factor that compels someone to go for a particular treatment or initiate major changes in life style or diet the chances of disease prevention or recovery are minimized. The current approaches for achieving heart’s health, free from any life threatening condition, are primarily symptom-orientated and do not deal with the underlying causes.

Cited from [http://www.lifepositive.com/body/body-holistic/heart/heart.asp]