Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using namespace std;"in the code can we compile the codes
#1
with out using "using namespace std;"in the code can we compile the codes are taught in previous lectures? in your prefered Dev-C++ 4.9.9.2?

if This thing is mentioned in any previous lecture please let me know.
Reply
#2
Dear student!
There are two ways to do this thing.
Method 1:
#include<iostream>
using namespace std;

Method 2: #include<iostream.h>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ASCII code is binary numbers of 0 and 1 in C++ 2012 Vuhelper 0 2,278 01-04-2012, 10:41 PM
Last Post: Vuhelper
  int x[10]; x[0]= 1; x[1]=2; if following code is executable in C++ 2012 Vuhelper 0 1,935 01-04-2012, 10:17 PM
Last Post: Vuhelper
  array project code c++ 2011 Vuhelper 0 1,273 12-10-2011, 06:32 PM
Last Post: Vuhelper
  factorial in C++ code 2011 Vuhelper 0 943 12-10-2011, 06:31 PM
Last Post: Vuhelper
  ASCII to char conversion code in C++ 2011 Vuhelper 0 1,721 11-05-2011, 05:01 PM
Last Post: Vuhelper
  C++ with loop code 2011-12 Vuhelper 0 978 09-18-2011, 07:09 PM
Last Post: Vuhelper
  Revised Student Record Code written in C++ 2011-12 Vuhelper 0 1,478 09-04-2011, 07:18 AM
Last Post: Vuhelper
  c++ code check this code 2011-12 Vuhelper 0 1,097 09-04-2011, 07:17 AM
Last Post: Vuhelper
  Sorting code in c++ Vuhelper 0 1,004 06-09-2011, 10:03 PM
Last Post: Vuhelper
  ASCII code of c++ Vuhelper 0 1,223 06-07-2011, 07:01 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)