+ 4

Request to sololearn

#include <iostream> using namespace std; int main() { char choice; string reason; int date; cout << " Are You Going To Add Bash Language In This Course \n. "; cin>>choice; if (choice == 'y'){ cout << "when?"; cin>> date; cout << "waiting for"<< date; } else{ cout << "why"; cin>> reason; } } I know it's c++ 😋

19th Jan 2018, 4:48 AM
O_o
O_o - avatar
2 Answers
+ 14
#include "User.h" #include "Email.h" void sendFeedback(User fromUser) { Email newEmail; newEmail.to("info@sololearn.com"); newEmail.from(fromUser.email()); newEmail.subject("Suggestion"); newEmail.text("I have a suggestion for a new scripting language to be added."); newEmail.send(); } int main() { User user("*_‱"); //sorry if that's wrong if(user.hasSuggestion()) { sendFeedback(user); } }
19th Jan 2018, 5:31 AM
jay
jay - avatar
+ 3
cool
19th Jan 2018, 5:19 AM
James Schleppegrell
James Schleppegrell - avatar