Thread: Borland 4.5 -> 5.5

  1. #1
    Registered User
    Join Date
    Jan 2004

    Borland 4.5 -> 5.5

    At uni we have been using Borland 4.5 and at home I have .net and Borland 4.5. and now 5.5. Because Borland 4.5 doesnt work with <iostream> and requires <iostream.h>, we have never been shown how to implement our code using the new standards.
    Can anyone tell me a good site or even tell me if it is very different to the old way. I see alot of using namespaces etc, but dont understand how all that is.

    NB: I have been going through FAQ

  2. #2
    Registered User major_small's Avatar
    Join Date
    May 2003
    if you just use the standard namespace the whole way through, alot of it is the same... what's not the same you'll pick up as you do it... just do this at the top:

    using namespace std;
    then you can go on using cin and cout and all that good stuff just like you used to... but you should eventually learn what comes from where, like for example:

    using std::cin;
    using std::cout;
    using std::endl;
    using std::ios;
    using std::flush;
    usning std::ifstream;
    using std::ofstream;
    and later on, if it doesn't comlicate things too much, just tell the compiler what namespace to use when you need it:

    int main()
         std::cout<<"Hello World"<<std::endl;
         return 0;
    here's a few of the things in the standard namespace:
    Last edited by major_small; 04-19-2004 at 11:11 AM.
    Join is in our Unofficial Cprog IRC channel
    Channel: #Tech

    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. small -> big -> bigger -> bigger than bigger -> ?
    By happyclown in forum A Brief History of
    Replies: 9
    Last Post: 03-11-2009, 12:12 PM
  2. Dev-C++ -> Tools - > Editor -> Syntax
    By Yuri2 in forum C++ Programming
    Replies: 19
    Last Post: 07-03-2006, 07:48 AM
  3. > > > Urgent Help < < <
    By CodeCypher in forum C Programming
    Replies: 2
    Last Post: 01-31-2006, 02:06 PM
  4. delay() in Bc++ 5.5
    By Chiki Chiki Chalem in forum C++ Programming
    Replies: 1
    Last Post: 07-07-2002, 09:58 AM