- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
#include<iostream> using namespace std; class product { private: int code; char name[20]; double price; int instock; double soldperyear[12]; public: product(int,char[],double,int); void setproduct(int c , char n[],double p,int i) { setcode(c); setname(n); setprice(p); setinstock(i); } void peryear(int i) { for ( i=1;i<=12;i++) soldperyear[i]=0;} void setcode(int c) { if(c>=2500&&c<=2750) code=c; else code=2500; … |
|
#include<iostream> using namespace std; class product { private: int code; char name[20]; double price; int instock; double soldperyear[12]; public: product(int,char[],double,int); void setproduct(int c , char n[],double p,int i) { setcode(c); setname(n); setprice(p); setinstock(i); } void peryear(int i) { for ( i=1;i<=12;i++) soldperyear[i]=0;} void setcode(int c) { if(c>=2500&&c<=2750) code=c; else code=2500; … |
|
// my problem is in the playerscore and computerscore always gives me 0 or 1 // i cant know who finally won plz i need ur help //at the end of the program it should gives me the score of computer and the user out of 5 of the total … |
|
Re:
Hi I have a little problem. I am having a project and i need to implement Dijkstra for a graph.So far it was ok but i have that problem when run it in g++ The code is where i think i have the error is here i think: if(!graph_list.at(start_Node->id)->path_list.empty()) { … |