Ow povo, tamu precisanu di algum exercicio que envolva PILHA e de preferencia que seja resolvido, se alguem tiver por favor, mandem pra genti ver se ajuda num trabalho que estamos montando aqui na Universidade…
valew
abraçu pra td mundu ae
fuiz
Ow povo, tamu precisanu di algum exercicio que envolva PILHA e de preferencia que seja resolvido, se alguem tiver por favor, mandem pra genti ver se ajuda num trabalho que estamos montando aqui na Universidade…
valew
abraçu pra td mundu ae
fuiz
[quote=USP]Ow povo, tamu precisanu di algum exercicio que envolva PILHA e de preferencia que seja resolvido, se alguem tiver por favor, mandem pra genti ver se ajuda num trabalho que estamos montando aqui na Universidade…
valew
abraçu pra td mundu ae
fuiz[/quote]
Ei, conselho.:
Vai em algum fórum de C++ e repita essa mensagem, em português!
Se quiser algum lugar que já tenha mastigado: http://www.vivaolinux.com.br/ , na seção de Scripts tem, é só procurar.
Enquete: Qual dos erros abaixos tornam o pedido merecedor de uma bela macumba ou algo do gênero:
a) Pedir trabalho de faculdade no GUJ
b) Pedir trabalho em C++, num forum sobre Java
c) Falar em Miguxês
Fala sério… rsrrs Moderador, pelo amor de Deus, BLOQUEIA!!!
www.google.com.br
Conhece mixugo?
Todas Alternativas ACIMA kkkkkkkkkkkkkkkkkkkkkkk
kkkkkkkkkkkkkkk
miguxes foi foda kkkkkk
Se procurar em msdn.microsoft.com vai achar um monte de exemplos resolvidos. Dê uma olhada rapidinho, que vou bloquear este tópico.
Nem me pergunte se você entendeu alguma coisa.
// StackTopEmpty.cpp
// compile with: /EHsc
// Illustrates how to use the top function to
// retrieve the last element of the controlled
// sequence. It also illustrates how to use the
// empty function to loop though the stack.
//
// Functions:
//
// top : returns the top element of the stack.
// empty : returns true if the stack has 0 elements.
//////////////////////////////////////////////////////////////////////
#pragma warning(disable:4786)
#include <stack>
#include <iostream>
using namespace std ;
typedef stack<int> STACK_INT;
int main()
{
STACK_INT stack1;
cout << "stack1.empty() returned " <<
(stack1.empty()? "true": "false") << endl; // Function 3
cout << "stack1.push(2)" << endl;
stack1.push(2);
if (!stack1.empty()) // Function 3
cout << "stack1.top() returned " <<
stack1.top() << endl; // Function 1
cout << "stack1.push(5)" << endl;
stack1.push(5);
if (!stack1.empty()) // Function 3
cout << "stack1.top() returned " <<
stack1.top() << endl; // Function 1
cout << "stack1.push(11)" << endl;
stack1.push(11);
if (!stack1.empty()) // Function 3
cout << "stack1.top() returned " <<
stack1.top() << endl; // Function 1
// Modify the top item. Set it to 6.
if (!stack1.empty()) { // Function 3
cout << "stack1.top()=6;" << endl;
stack1.top()=6; // Function 1
}
// Repeat until stack is empty
while (!stack1.empty()) { // Function 3
const int& t=stack1.top(); // Function 2
cout << "stack1.top() returned " << t << endl;
cout << "stack1.pop()" << endl;
stack1.pop();
}
}