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; }

3rd Mar 2023, 7:03 PM
antex kwiatek
antex kwiatek - avatar
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; }
3rd Mar 2023, 8:17 PM
Jayakrishna 🇮🇳
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; }
3rd Mar 2023, 8:15 PM
SoloProg
SoloProg - avatar