c++ basics


SUBMITTED BY: ebitfaucet

DATE: April 3, 2016, 2:39 p.m.

FORMAT: C++

SIZE: 247 Bytes

HITS: 871

  1. #include <iostream>
  2. using namespace std;
  3. int main ()
  4. {
  5. // declare integers
  6. string something;
  7. cout << "Please write something" <<endl;
  8. cin >> something;
  9. cout << "Thanks!" <<endl;
  10. cout << "You just wrote: " <<something <<endl;
  11. return 0;
  12. }

comments powered by Disqus