No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
this is my struct [CODE] struct CropType { string crop; string farmer; string color; string order; }; CropType myCrop; [/CODE] and this is my tree [CODE] struct TreeNode { CropType info; TreeNode* left; TreeNode* right; }; [/CODE] how do i compare a string within my struct like crop to a … |
|
[CODE] this is my program could somebody help plz #include <iostream.h> #include <string> using namespace std; typedef int ComponentType; struct CropType { string crop; string farmer; string color; }; CropType myCrop; struct TreeNode { CropType info; TreeNode* left; TreeNode* right; }; void Insert ( /* in */ ComponentType item); void … |