Borland 4.5 -> 5.5

This is a discussion on Borland 4.5 -> 5.5 within the C++ Programming forums, part of the General Programming Boards category; At uni we have been using Borland 4.5 and at home I have .net and Borland 4.5. and now 5.5. ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    32

    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
    Posts
    2,787
    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:

    Code:
    #include<iostream>
    
    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:

    Code:
    #include<iostream>
    using std::cin;
    using std::cout;
    using std::endl;
    using std::ios;
    using std::flush;
    
    #include<fstream>
    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:

    Code:
    #include<iostream>
    
    int main()
    {
         std::cout<<"Hello World"<<std::endl;
         std::cin.get();
         return 0;
    }
    here's a few of the things in the standard namespace: http://www.cppreference.com/cppio_flags.html
    Last edited by major_small; 04-19-2004 at 12:11 PM.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    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 Cprogramming.com
    Replies: 9
    Last Post: 03-11-2009, 01:12 PM
  2. Dev-C++ -> Tools - > Editor -> Syntax
    By Yuri2 in forum C++ Programming
    Replies: 19
    Last Post: 07-03-2006, 08: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, 10:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21