No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[B][/B] I face the problem when i key in 5 5+ the result is 10. But i key in 5 6+ he give the result 12. Some equation can give me true result some give me false result. Anyone can help me toubleshoot? The following are my program: [CODE][LIST=1] [*]#include … |
|
[B][/B] If the user input a equation something like 2 + 2 * 2 + ( 2 - 2) infix expression. how i collect the data to stack? using string? someone can give the algorithm. I don't have idea to get the input. |
|
void Display(Productptr t) { Productptr g; g=t; if(t==NULL) cout<<"The list is empty."<<endl; else { cout<<"Code\tDescription\tPrice\n"; cout<<"====\t===========\t=====\n"; while(g!= NULL) { cout<<g->code<<"\t" <<g->description<<"\t\t" <<g->price<<endl; } cout<<"End of the list"<<endl; } system("pause"); } This code give me problem. When I show 1st time is ok. After 1st time I add something or delete … |
|
hi all. I have a question need your all help. 1.what is the problem for my delete function,I can't delete the list that i select(but no error in that case) 2.how to build the search function with that prototype? [code=cplusplus] #include <iostream> #include <string> #include <cstdlib> using namespace std; struct … |