+ 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++ 😋
2 Réponses
+ 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);
}
}
+ 3
cool