answersLogoWhite

0


Best Answer

It would be easier to manipulate the stack in assembly language rather than C++.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How you use stack in c plus plus classes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Representation of stack data structure in c plus plus?

Stack is an abstract data type that allows you to input and output data in a way that the first data which was placed in the stack will be the last one to get out. We use physical examples of stack in our daily lives such as the stack of dishes or stack of coins where you only add or remove objects from the top of the stack. You can see the implementation in c++ in related links, below.


The application where c language can't implemented but it is done by c plus plus language?

Any C++ application that makes use of classes cannot be compiled in C since C is not an object-oriented programming language. The code may be altered to eliminate the classes, but if the classes are designed with complex hierarchies then the transition could prove quite difficult to implement.


What is expansion of mfc in c plus plus?

The term "expansion of MFC" is meaningless. Note that the Microsoft Foundation Classes (MFC) library has nothing to do with C++. The MFC is a library designed by Microsoft for use in Microsoft Visual C++.


What are filestream classes in c plus plus?

The file stream classes (ifstream and ofstream) are derivatives of the I/O stream classes (istream and ostream) that are specific to file input and output.


How do you determine when a stack is empty in c plus plus?

#include<iostream> #include<stack> #include<cassert> int main () { std::stack<unsigned> s; assert (s.empty()==true); s.push (42); assert (s.empty()==false); s.pop (); assert (s.empty()==true); }

Related questions

Represent a stack in c plus plus?

Use a vector with a base class type. Any objects derived from the base class can be pushed and popped from the vector just as you would from a stack.


Drawbacks of c plus plus?

Not as commonly used. More schools are replacing their c++ classes with java classes.


Are all C plus plus classes subtypes?

no


Representation of stack data structure in c plus plus?

Stack is an abstract data type that allows you to input and output data in a way that the first data which was placed in the stack will be the last one to get out. We use physical examples of stack in our daily lives such as the stack of dishes or stack of coins where you only add or remove objects from the top of the stack. You can see the implementation in c++ in related links, below.


The application where c language can't implemented but it is done by c plus plus language?

Any C++ application that makes use of classes cannot be compiled in C since C is not an object-oriented programming language. The code may be altered to eliminate the classes, but if the classes are designed with complex hierarchies then the transition could prove quite difficult to implement.


Why do you need c plus plus?

For programming. C++ is better than C because it is object-oriented and has classes.


What year c plus plus was developed?

Developed in 1979 by the name of C with classes. Renamed to C++ in 1983.


What is diffence between c and c plus plus?

main difference b/w c and c++ is that c is procedural language whereas c++ is object oriented language also classes are not used in c but in c++ classes are used.


What was c plus plus previously called?

'C with Classes' began development in 1979. The name changed to 'C++' in 1983.


How does c plus plus endeavor to represent the object oriented paradigm?

C++ endeavours to represent the object oriented programming paradigm through the use of classes. The four main pillars of OOP are encapsulation, inheritance, polymorphism and abstraction, which C++ primarily achieves through the use of classes, class hierarchies, virtual methods and templates.


Programming codes under classes in c plus plus?

Are called methods.


What is expansion of mfc in c plus plus?

The term "expansion of MFC" is meaningless. Note that the Microsoft Foundation Classes (MFC) library has nothing to do with C++. The MFC is a library designed by Microsoft for use in Microsoft Visual C++.