Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Learning C++

  • 21-10-2005 12:01AM
    #1
    Closed Accounts Posts: 1,299 ✭✭✭


    Hello, I have just started a C++ course in TCD its my onely computery module, and I am hoping to learn it well, hopefully to get ahead of the class.

    My lecturer is using a mac, I would like to know if it is possible and I am sure it is to legaly download a free programm for making C++ programmes,
    also are there any online tutorials aimed at beginners,
    your help much appreciated in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    MS have a free compiler you can download. Do a search on this forum or check the C++ FAQ (in the stickies).


  • Closed Accounts Posts: 3,773 ✭✭✭Binomate


    Sandals wrote:
    Hello, I have just started a C++ course in TCD its my onely computery module, and I am hoping to learn it well, hopefully to get ahead of the class.

    My lecturer is using a mac, I would like to know if it is possible and I am sure it is to legaly download a free programm for making C++ programmes,
    also are there any online tutorials aimed at beginners,
    your help much appreciated in advance.
    Dev C++ is a C/C++ compiler and it's free. Just give it an aul google search. Also check out http://www.cprogramming.com


  • Closed Accounts Posts: 1,299 ✭✭✭Sandals


    ok thanks a million now i have just made my first program in dev c it is this

    // sumsthe numbers from 1 to //
    #include <iostream>
    using namespace std;

    int main() {
    int i, n, sum;
    cout << "Enter No"\n";
    cin >> n;
    sum = 0;
    for (i=1;
    i<=n;
    i++n)
    {
    sum = sum + i;
    }
    cout << " The sum of numbers to " << n;
    cout << "is" << sum << " \n;

    return 0;

    now how do i get into the terminal where i enter: make and filename?
    thansk


  • Registered Users, Registered Users 2 Posts: 6,344 ✭✭✭OfflerCrocGod


    You don't DevC++ handles al that rubbish for you :) The buttons at the top of Dev are for compiling (make etc..) and running your program. Press f9.


  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    I'm very fond of the CPlusPlus.com tutorials, they're extremely easy to follow.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,546 ✭✭✭BrokenArrows


    I have become a big fan of using Textpad and then adding the compile options to the tools menu. Its very handy as you can develop all sorts of code using the same program.

    I surrently have Textpad set up to compile Java, C/C++, ASM.


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    As you're using a mac, it's likely you're using the GNU toolchain. So may want to look at MinGW or Cygwin for a Windows equivalent.


Advertisement