use explicit std:: qualification.
#include <iostream> int main() { double val; std::cout << "Enter a number: "; std::cin >> val; std::cout << "This is your number: "; std::cout << val; return 0; }