Monday, April 29, 2013

Function Overloading in C++ Example Problem 2

1 comment

SOURCE CODE

#include "iostream"
using namespace std;
int sum(int,int);
float sum(double,double);
int main()
{
sum(4,4);
sum(4.0,4.0);
return 0;
}

int sum(int a,int b)
{
cout<<"\n int Sum() is "<<(a+b)<<endl;
return 0;
}
float sum(double a, double b)
{
cout<<"\n float Sum is "<<(a+b)<<endl;
return 0;
}

Function Overloading in C++ Example Problem 1

No comments

  Source Code

           #include "iostream"
using namespace std;
int sum(int,int);
float sum(float,float);
int main()
{
int iNumber1,iNumber2;
float fNumber1,fNumber2;
cout<<"\nEnter Two Integer Number ::";
cin>>iNumber1>>iNumber2;
cin>>fNumber1>>fNumber2;
sum(iNumber1,iNumber2);
sum(fNumber1,fNumber2);
return 0;
}

int sum(int a,int b)
{
cout<<"\nSum is "<<(a+b);
}
float sum(float a, float b)
{
cout<<"\nSum is "<<(a+b)<<endl;
}

Sunday, April 14, 2013

Premium Portfolio Layout for Free

No comments

Do you like it If you wanted to get it like this page I will send link to you facebook account within 24 hours.
Like this page  http://www.facebook.com/Lovelycoding

Features

  • Sliding Menu Bar
  • Background Image Animation 
  • Clean layout
  • Fixed Footer
  • SEO Optimized
  • No-JavaScript
  • Timer

Wednesday, April 10, 2013

How to create your own header file in Turbo C

No comments

First tell me what is header file ?

A header file is the file which contain different function for different reason.

So I am creating a file which contain the personal info of my blog,
using that header file I need not to create a all details every time, When I needed at any time, I can add that header file in header section and call that function which is defined inside that header files.


Open Text editor and create a new file by name myinfo.h And write the following code
int info()
{
 cout<<"\nName : Lovely Coding";
 cout<<"\nCoding : Get Project and Program in C and C++ ";
 return 0;

 Save it in include folder now.
And create a new file and save it on bin folder


#include "iostream.h"
#include "myhead.h"
#include "conio.h"
int main()
{
clrscr();
cout<<"\n I am calling a function which is defined in myhead.h header file";
info();
return 0;
}

Saturday, April 6, 2013

How to set goal for 100% success Vadic Method

No comments

Success – Let’s define it !
Success means different things to different people.
Success is a progressive experience of achieving a worthy
Goal thus, it’s a journey not a destination.

There are 10 steps to success. During any setback, check out , are you missing or wrongdoing necessary steps to success.

Step 1
Goal Setting – Giving direction to your life
Goal means destination. It is the road map that guides & navigate your life.
There are two type of goal
·     Realistic
·     Unrealistic
So before choosing your goal make sure that your goal is realistic one. There is nothing more fatal that can kill your motivation quicker than an unrealistic goal.

Organize your goals as follows:
·     Short
·     Mid-term goals
·     Long-term Goals
Step 2:
Passion – Unlimited enthusiasm
Passion means Junoon  ,Pagaalpan. Passion is an urge for something within. Common desires which normally popups on our mind is not passion. Desire is that you want something but passion is that you can’t live without something.

Step 3:
Smart Hard Work – Willing to put an effort
Smart hard work is to put a right effort into a right direction.
Smart hard work is part of hard work means doing work but in proper, Planned and smart way whereas, simply hard work is putting in all your efforts and power to accomplish a task which leads to consumption of more time and effort.
Do not get tensed and worried while doing work. Do your work with full enthusiasm & determination.

Step 4:
Optimism- Living with positive thinking
Optimism is living with positive thinking. Optimism is expecting the best possible outcome form any given situation.
For good things happened to us we never ask god. “Why me?” Then for bad why we say, “Oh God! Why me ?”
Always lead a life as an optimist. Never become a pessimist , who always sees the worst possible outcome from any given situation.


Step 5:
Focus – Keep your eyes upon goals  
Focus means concentration.
If you do not focus on your target then you cannot achieve success. So keep your eyes upon the goal. Stop deviating from your goals. Be focused. Most important is to focus on your positive thoughts instead of negative ones.

Step 6:
Discipline- Gaining Control over life.
Discipline means a set of rules followed to control and guide your mind.
Since to achieve success it’s very important for a person to become the master of his mind.

Step 7:
Ideas – Art of visualization
Idea is a concept made by mental efforts that can be visualized by our mind.
Creative Ideas are the initial step and further innovative ideas are later. Innovative idea is thinking out of the box.

Step 8:
Excel- Sky is limit
Excel or say excellence means perfection .
Excel means to do ordinary things in an extraordinary way.


Step:9
Values – A right action for right reason
One may achieve excellence and success, but without values everything is worthless; everything is meaningless.
Values in life is like the string of the kite that holds and provides stability to life of success and excellence.
Become a man of responsibility and character.

Step 10:
Persistence- Slow and steady wins the race
 Persistence means patience or perseverance
To achieve success patience is a must.
The realistic impossible goal can become possible if your work for it ceaselessly and patiently with determination. Patience generates confidence , decisiveness and a rational outlook.

Meditation – The key to success
Meditation is not merely closing of physical eyes or sitting in a posture ,rather it is activation of the Pineal Gland – The center of human brain.‘Brahm Gyam’ is a systematic, scientific and focused meditation process to activate the Pineal Gland and train mind into fashion of blissful living.

Entries RSS Comments RSS

Sample Text

Pages


Copyright © Lovely Codes
Powered by Blogger
Distributed By Free Blogger Templates | Design by N.Design Studio
Blogger Theme by Lasantha - PremiumBloggerTemplates.com