   simple cout/cin question
  Should I be using..using std::cout;using std::endl;cout << "hello" << endl;or...main(){std::cout << "Hello" << std::endl;}And are they both equal for efficiancy?   http://phil.webula.netAIM: wuZZup189 
  They''re both acceptable. For runtime efficiancy, they''re the same. In terms of coding time, the first example is probably better. Choose whichever you prefer. ;  Strictly identical efficiency. Feel free to add using declarations in source files unless you have a name collision. Preferably, put them at the minimum possible scope. And avoid both using declarations and using directives in header files (use the fully qualified name instead).   “Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”    — Brian W. Kernighan (C programming language co-inventor) [edited by - Fruny on February 16, 2004 3:44:57 AM];  yeah, what fruny said to the tee..orgasms ;  Ok thanks  http://phil.webula.netAIM: wuZZup189 