To change the stacking order of the object toward the top of the stack you use command

Whenever you have more than one object on a PowerPoint 2013 slide, the potential exists for objects to overlap one another. Like most drawing programs, PowerPoint handles this problem by layering objects like a stack of plates. The first object that you draw is at the bottom of the stack; the second object is on top of the first; the third is atop the second object; and so on.

If two objects overlap, the one that’s at the highest layer wins; objects below it are partially covered. (Note that PowerPoint’s layers aren’t nearly as powerful as layers in other programs, such as Adobe Illustrator or AutoCAD. All they really do is set the stacking order when objects are placed on top of one another.)

So far, so good — but what if you don’t remember to draw the objects in the correct order? What if you draw a shape that you want to tuck behind a shape that you’ve already drawn, or what if you want to bring an existing shape to the top of the pecking order?

No problem. PowerPoint enables you to change the stacking order by moving objects toward the front or back so that they overlap just the way you want.

The Drawing Tools tab provides two controls that let you move an object forward or backward in the layer order:

  • Bring to Front: Brings the chosen object to the top of the stack. Note that this button has a down arrow next to it. If you click this down arrow, you reveal a menu with two subcommands: Bring to Front and Bring Forward. The Bring Forward command moves the object just one step closer to the top of the heap, whereas the Bring to Front command moves the object all the way to the top.

  • Send to Back: Sends the chosen object to the back of the stack. Again, this button has a down arrow next to it. You can click this down arrow to access the Send Backward subcommand, which sends the object one level down in the layer order.

Layering problems are most obvious when objects have a fill color. If an object has no fill color, objects behind it are allowed to show through. In this case, the layering doesn’t matter much.

To bring an object to the top of another, you might have to use the Bring Forward command several times. The reason is that even though the two objects appear to be adjacent, other objects might occupy the layers between them.

About This Article

This article is from the book:

  • PowerPoint 2013 For Dummies ,

About the book author:

Doug Lowe is the bestselling author of more than 40 For Dummies books. He's covered everything from Microsoft Office to creating web pages to technologies such as Java and ASP.NET, and has written several editions of both PowerPoint For Dummies and Networking For Dummies.

This article can be found in the category:

  • PowerPoint ,

A stack is a linear data structure, collection of items of the same type.

Stack follows the Last In First Out (LIFO) fashion wherein the last element entered is the first one to be popped out.

In stacks, the insertion and deletion of elements happen only at one endpoint of it.


1. Operations performed on Stacks

The following are the basic operations served by the Stacks.

  • Push: This function adds an element to the top of the Stack.
  • Pop: This function removes the topmost element from the stack.
  • IsEmpty: Checks whether the stack is empty.
  • IsFull: Checks whether the stack is full.
  • Top: Displays the topmost element of the stack.

2. Working of Stacks

Initially, we set a pointer Peek/Top to keep the track of the topmost item in the stack.

Initialize the stack to -1. Then, we check whether the stack is empty through the comparison of Peek to -1 i.e. Top == -1

As we add the elements to the stack, the position of the Peek element keeps updating every time.

As soon as we pop or delete an item from the set of inputs, the top-most element gets deleted and thus the value of Peek/Top gets reduced.


3. Implementing Stack in C

Stacks can be represented using structures, pointers, arrays or linked lists.

Here, We have implemented stacks using arrays in C.

#include<stdio.h>

#include<stdlib.h>
 
#define Size 4 
 
int Top=-1, inp_array[Size];
void Push();
void Pop();
void show();
 
int main()
{
	int choice;
	
	while(1)	
	{
		printf("\nOperations performed by Stack");
		printf("\n1.Push the element\n2.Pop the element\n3.Show\n4.End");
		printf("\n\nEnter the choice:");
		scanf("%d",&choice);
		
		switch(choice)
		{
			case 1: Push();
					break;
			case 2: Pop();
					break;
			case 3: show();
					break;
			case 4: exit(0);
			
			default: printf("\nInvalid choice!!");
		}
	}
}
 
void Push()
{
	int x;
	
	if(Top==Size-1)
	{
		printf("\nOverflow!!");
	}
	else
	{
		printf("\nEnter element to be inserted to the stack:");
		scanf("%d",&x);
		Top=Top+1;
		inp_array[Top]=x;
	}
}
 
void Pop()
{
	if(Top==-1)
	{
		printf("\nUnderflow!!");
	}
	else
	{
		printf("\nPopped element:  %d",inp_array[Top]);
		Top=Top-1;
	}
}
 
void show()
{
	
	
	if(Top==-1)
	{
		printf("\nUnderflow!!");
	}
	else
	{
		printf("\nElements present in the stack: \n");
		for(int i=Top;i>=0;--i)
			printf("%d\n",inp_array[i]);
	}
}

Output:

Operations performed by Stack
1.Push the element
2.Pop the element
3.Show
4.End

Enter the choice:1

Enter element to be inserted to the stack:10

Operations performed by Stack
1.Push the element
2.Pop the element
3.Show
4.End

Enter the choice:3

Elements present in the stack: 
10

Operations performed by Stack
1.Push the element
2.Pop the element
3.Show
4.End

Enter the choice:2
Popped element:  10

Operations performed by Stack
1.Push the element
2.Pop the element
3.Show
4.End

Enter the choice:3
Underflow!!

4. Time Complexity of Stack Operations

As mentioned above, only a single element can be accessed at a time in Stacks.

While performing push() and pop() operations on the stack, it takes O(1) time.


5. Applications of Stack

As soon as the compiler encounters a function call, it gets pushed into the stack.

In the case of nested functions, the inner functions get executed before the outer functions. This is totally managed by stacks.

The Stack is used to solve a few of the general problems like:

  1. Tower of Hanoi
  2. N queens problem
  3. Infix to prefix conversion, etc.

6. Conclusion

Thus, in this article, we have understood the concept of Stack data structure and its implementation using Arrays in C.


7. References

Official Documentation of C++ Stacks

How do you change the order of stacking objects?

Move an object.
Select the object..
Right-click and select an option: Direction. Select this option. Bring to Front > Bring to Front to move the object to the top layer of the stack. Bring Forward to move the object up one layer in the stack. Send to Back > Send to Back to move the object to the bottom layer of the stack..

Which commands are used to change stacking order?

Stacking order is the order of objects in the stack. The order of the objects in the stack is typically determined by when they're created or placed in the document, although you can change this order by using an Object→Arrange command.

How do I change the order of my items in PowerPoint?

Change the order of animation effects On the slide, select an animated object. On the Animation tab of the ribbon, in the Timing group, click Move Earlier or Move Later. Each click changes the object's position in the order by one increment.

How do you change the order of light in a presentation?

How to change the order of Slides in Presentation?.
A. On Slide Sorter View, click on the Soft Slides..
B. On Slide Sorter View, click on the slide and drag to required position..
C. On Slide Thumbnail view, click on the slide and drag to required position..
D. Slides order cannot be changed once it created..