0
What's wrong with it i need help.
#include <iostream> namespace std{{; int main(void) { std::string command; std::string value; std::cout << "(c) Soft Script Corporation copyright.\n"; std::cin >> command >> value; if (command == print(value) cout << value; return 0; }
2 Respuestas
+ 1
#include <iostream>
namespace std{{; // {{ extra unnecessary braces.. and missing 'using', so it's actually using namespace std;
int main(void) {
std::string command;
std::string value;
std::cout << "(c) Soft Script Corporation copyright.\n";
std::cin >> command >> value;
if (command == print(value) // missing close brace ')' and print(value) function is undefined... Where you defined it?
cout << value;
return 0;
}
0
#include <iostream>
using namespace std;
int main() {
cout << "(c) Soft Script Corporation copyright.\n";
string command,value;
cin >> command >> value;
if (command == value) cout << value;
return 0;
}