Cygwin "using: command not found" for C++ program -


hoping free myself eclipse , not wanting keep using online cpp.sh, wrote small program in cygwin in nano , tried run it. code included clarity.

#include <iostream> #include <string>  using namespace std;  int main() {   int i;   string mystr;    cout << "enter number: ";   cin >> i;   cout << "you entered: " << i;   cout << " , double: << i*2 << ".\n";   cin.ignore();   cout << "name: ";   getline(cin, mystr);   cout << "hello " << mystr << ".\n";   cout << "team? ";   getline(cin, mystr);   cout << "go " << mystr << "! \n";   return 0; } 

trying run returns series of errors, seen in picture. right now, i'm trying understand why "using" not recognized. checking google found many similar complaints, never command "using," because "using" common enough word using in different context.

you can't run source code directly. must compile first.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -