Friday, April 11, 2014

Count reapetation number of unique values of an array Sort according higher occurance of values


/* A program to calculate no. of uniqe values of an array
implemented logic can be useful anywhere-
where we required count no. of same rate books in a library
e.g. 250$: 3books 300$: 4books 34$: 5books
Date: 9/3/2013 10:05pm
Author: Mangilal Saraswat */

#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 int i,j,k,done,a[10],b[10],c[10];
 i=0; j=0; k=0; done=0;

 printf("Enter array:
");

 for(i=0;i<10;i++)
 {
  scanf("%d",&a[i]);
  c[i]=0;
 }

 for(i=0; i<10; i++)
 {
  for(j=0;j<k;j++)
  {
   if(a[i]==b[j])
   {
    b[j]=a[i];
    c[j]=c[j]+1;
    done=1;
   }
  }
  if(done==0)
  {
   b[k]=a[i];
   c[k]=c[k]+1;
   k=k+1;
  }
  done=0;
 }

 for(j=0;j<k;j++)
 {
  printf("value: %d ",b[j]);
  printf("times: %d
",c[j]);

 }
 getch();
}

Read More..

The Best Ways To Trace Cell Phone Figures Effectively With The Reverse Cellular Phone Finder

By Ashton Reichenbach


Nuisance calls are enjoyable for the caller and annoying for the one who receives the call particularly, if it happens in the middle of the night. It does not matter whether they talk with you or just hang up on your kids. Fortunately is, you can make it stop. You can end the trouble of having somebody you do not know calling your number by reversing the call after you have actually utilized Cell Number Seek out.

A lot of people feel that without a name you can not find out info on someone so the call keep coming. This use to be the method it worked. Technology the method it is, you can browse for home phone customers and likewise cell phones. You do not have to have a name prior to browsing. Just a phone number is all it takes. You can then discover the name and address of any cell phone number owner, who their supplier is, and a large variety of other info on that individual.

After you find out who is calling you, you can then choose what to do in order to ensure it stops. Knowing that it is a bad number to a business who is requiring you pay them can then be reported to the proper authorities. You can choose or obstruct the number to face them about their calls if it is your next-door neighbor. The option is yours.

Stop hang ups and various other scamming kind call. All you really need is a phone that has caller ID and it does not matter if they talk for 5 minutes or instantly hang up on you when you answer. Is it not a terrific thing to understand that you have the power to make it end before you lose more sleep over it?

Do not worry about the fact that you are discovering individual details about others. It does not make you like the pranksters that call you in the middle of the evening. You simply wish to state, "Greetings" to the crucial individuals from your past. Looking for cell phone numbers can work to safeguard your family and reconnect with your past. That might never be a bad thing.

Prank callers will call to annoy you while you sleep. They do not love your family and how much it might disrupt your sleeping infant. Heavy breathers hire an attempt to make you stress and to frighten your family. Often they are kids who just want to have a good time messing with individuals. Various other times the reason they call you could be much scarier. You need to make it stop if it is ending up being an issue. You have all the devices you need. Why not use it to your advantage?

Legally you can protect exactly what is yours and unfortunately, it is up to you to state you have had enough from the prankster who keeps bothering you. Discover exactly what you have to understand prior to you let this person continue to laugh at you and your household. They do not should keep doing it and could be doing it to various other households also.

For a basic search, there is often no charge. It is cost-download to find out the name of the individual calling you in a lot of situations. , if you require to understand even more about the individual there can be a small cost involved.. Nevertheless, considering your familys need to be prank caller complimentary, do you not think that a little cost would be cash well invested if you put it toward a reverse cell number lookup? All it takes is a desire to be without unknown callers, a computer system and a phone number to get you on your method to learning who is calling you.




About the Author:



Read More..

Thursday, April 10, 2014

STAR PATTERNS

*
**
***
****
*****

for this pattern

    *
   **
  ***
 ****
*****

for this pattern

*****
 ****
  ***
   **
    *

for this pattern

*****
****
***
**
*

for this pattern

    *  
   ***  
  *****
 *******
*********

for this pattern

    *  
   ***  
  *****
 *******
*********
 *******
  *****
   ***  
    *  

for this pattern
Read More..

User Define Function Factorial

Q. Write a function fact to calculate the factorial value of any number.

Ans.

/*c program for make function fact to calculate factorial value of any number*/
#include<stdio.h>
int fact(int );
int main()
{

 int num,f;
 printf("Enter any number : ");
 scanf("%d", &num);
 f = fact(num);
 printf("Factorial value of %d is %d",num,f);
 return 0;
}

int fact(int n)
{
 int z=1;
 for(; n>=1; n--)
    z = z * n;
 return(z);
}

The output of above program would be:


Output of calculating factorial value using user define function C program
Figure: Screenshot for find factorial value using
user define function C program

Read More..

Wednesday, April 9, 2014

The Benefits Of Fibre Optic Cable Installation

By Cornelia White


There are many benefits to the use of fiber optics for the transmission of data. This is a system used for the delivery of cable television and for surfing the Internet. Many businesses can choose to a fibre optic cable installation for an internal network. They offer a great solution to solving problems that can occur with communications in areas where data transfer is lacking.

Most sorts of information that is sent and appropriated by a workstation is going over standard wires. This can incorporate standard Ethernet links and basic copper wires. Information that is sent over these wires will regularly go at a moderate speed. The primary excuse for why filament optics are not utilized as a part of standard requisitions is the expense is too high. A workstation does not have to exchange any information to a local printer at quick speeds.

The expense of adding cables that move knowledge at gentle rate is usually also costly. For this reason several areas however have mainstream wiring thats applied to move data and Net traffic. But, several areas in large filled places may benefit from quickly move rates as gradual rates tend to be perhaps not sufficient. Many instances communications businesses are adding fibre optics.

One of the main benefits of fibers used for optical wires means interference is not an issue. Wiring that is made of copper needs to have a layer of insulation added for protection. Electricity will often be why cabling in certain areas have increased interference. Most times this issue can be addressed by using an assortment of shielding in the form of insulation.

The fundamental cabling that is utilized for telephone lines that convey Internet activity can experience ill effects of downsizing. The paramount component to remember about minimizations is the commotion that exists in the wire. This is the main reason the wire lines in a building or a private home ordinarily need to have a channel. A channel will differentiate commotion in a wire when utilizing a workstation or phone.

Yet another facet of fiber optics which have been fitted in a place that is difficult to tap. Cables that are manufactured from a wire can produce magnetic fields. A magnetic subject thats made by a cable may become simple to intercept the signal. Cables which are visual materials do have no magnetic fields. For this reason a signal cant easily be intercepted by various people.

Copper wires that are used to transmit data need to be thicker and more rigid than optical cables. There is a significant amount of transmission capacity achieved using optical wires that is not available using traditional copper wires. One thing to remember about a thick copper wiring is it can often be difficult when it may need to be installed in a building.

A fundamental fibre optic cable installation is much less demanding than introducing a standard wire. Optical cabling can regularly be introduced in regions that are not pragmatic for copper wires. This will mean the expense for numerous entrepreneurs will be much lower than different results. One purpose behind this is optical links are lightweight and typically adaptable.




About the Author:



Read More..

Finding The Best Reverse Cell Phone Directory

By Jerri Perry


Doing a reverse cell phone directory look-up is now something anybody can do. But this was not always the case as there are noticeable some major benefits of being able confidentially and quickly know unknown mobile numbers. There exists a few drawbacks, as well, loosing privacy is one of them.

If you currently are receiving prank phone calls or have forgotten a person address or name, you can easily access this personal information with a few clicks of the mouse. Just enter the mobile number on the website of the directory and you will quickly learn the pertinent information. Another good feature is that these directories are simple to use.

The only thing you have to do is find the search box on the front page of the website and enter the number. In less than a minute, you can have a full report in your possession. Sorry to say this, but the information you receive from a turnaround wireless handset directories is not download. To limit this, a number of directories provide annual services which make searches to cost less.

Another aspect some people are not thrilled about is the end of complete privacy in connection with their cell handset number. You cannot expect total privacy any longer by just owning a wireless number. Anyone that wants access to the personal information associated with your number now has that option and there is no short cut that will lead you to obtain wireless directories.

It was inevitable that wireless numbers would cease to be completely private. A directory is useful in the sense that is provides you with useful information when you want it. It can help you stop calls from prank callers and also locate people you have lost touch with.

It was not that very long ago when results could not be obtained at all relating to mobile numbers. Fast forward to today and knowing a wireless number is all you need to find out just about all you want to know about a person. In fact, you can find out more about the user of a mobile handset with a turnaround mobile phone service than you can about the user of a land line handset number using download phone directories.

If you have to pay money for these results, you might as well do all you can to protect yourself from receiving outdated or inaccurate information in any report you purchase. There are more than a few very good reverse mobile phone directories that will offer any purchaser all of their money back if he or she is not completely satisfied with the quality of the data contained in any report. When you look for these characteristics in a reverse cell phone directory, you will find a resource you may end up using for years to come.

The bottom line is that turnaround directories is something that is wanted, needed, and a necessary resource for many people. Everyone wants to find out information the very second they think of it. And as more and more people switch from a landline receiver to a wireless handset as their primary form of communication, this directory will only become more wanted, needed, and necessary. For an easy, fast and precise way to find a mobile number, all one has to do is visit the reverse cell phone directory site.




About the Author:



Read More..

Tuesday, April 8, 2014

Destructor Functions in Detail

If you don’t know what destructor functions are, read Introduction to Constructor and Destructor functions of a Class. As the example
programs in this article makes use of the dynamic memory allocation of C++,
so please read Introduction to Dynamic Memory Allocation in C++ , in case you missed it.


When does the destructor function gets invoked


The examples below illustrates when the destructor function gets invoked:


Example 1:


  //Example Program in C++
#include<iostream.h>

class myclass
{
public:

~myclass()
{
cout<<"destructed
";
}
};

void main(void)
{
myclass obj;
cout<<"inside main
";
}

OUTPUT:


   inside main
destructed
Press any key to continue

As I said in the other article, destructors get invoked when the object of
a class goes out of scope. In this case, the object goes out of scope as the
program terminates. So the destructor gets invoked just before the program’s
termination.


Example 2:


  //Example Program in C++
#include<iostream.h>

void myfunc(void);

  class myclass
{
public:

~myclass()
{
cout<<"destructed
";
}
};

void main(void)
{
cout<<"inside main
";
myfunc();
cout<<"again inside main
";
}

void myfunc(void)
{
cout<<"inside myfunc
";
myclass obj;
cout<<"still inside myfunc
";
}

OUTPUT:


   inside main
inside myfunc
still inside myfunc
destructed
again inside main
Press any key to continue

In this case, destructor function is invoked just as the program’s execution
returns from the function, but before executing any further instruction from
where it was called (main).


Example 3: In the following example we are creating a dynamically
allocated object of a class in the same way as we did with the variables.


  //Example Program in C++
#include<iostream.h>

class myclass
{
public:

   ~myclass()
{
cout<<"destructed
";
}
};

void main(void)
{
myclass *obj;
obj=new myclass;
cout<<"inside main
";

delete obj;

cout<<"still inside main
";
}

OUTPUT:


   inside main
destructed
still inside main
Press any key to continue

Here the programmer is explicitly destroying the object, hence the destructor
function is called.


Now that you know some details about the destructor function, let me give you
a practical example of the use of destructor function:


  //Example Program in C++
#include<iostream.h>

class myclass
{
int *number;

public:
myclass(int num)
{
number=new int[num];
}

~myclass()
{
delete []number;
}

void input_num(int index, int num)
{
number[index]=num;
}

int output_num(int index)
{
return number[index];
}
};

void main(void)
{
int size, num;
cout<<"enter number of elments: ";
cin>>size;

myclass obj(size);

for(int i=0;i<size;i++)
{
cout<<"enter element "<<i+1<<":";
cin>>num;
obj.input_num(i,num);
}

cout<<"
elements have the following values

";

for(i=0;i<size;i++)
{
cout<<"element "<<i+1<<":";
cout<<obj.output_num(i);
cout<<"
";
}
}

Good-Bye!


Related Articles:


Read More..
 
Blog Information - Powered By Blogger