fork download
  1. #include <vector>
  2. #include <string>
  3. using namespace std;
  4.  
  5. struct eMailMsg {
  6. string to; // i.e. "professor@stanford.edu"
  7. string from; // i.e. "student@stanford.edu"
  8. string message; // body of message
  9. string subject; // i.e. "CS106 Rocks!"
  10. int date; // date email was sent
  11. int time; // time email was sent
  12. };
  13.  
  14. int main(){
  15. vector<eMailMsg> mailVector;
  16. mailVector.push_back({"professor@stanford.edu","student@stanford.edu","body of message","SUBJECT WAS MISSING",4,16});
  17. }
  18.  
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
Standard output is empty