Thread: Learning C or C++

  1. #31
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by std10093 View Post
    because you could use C++ and don't take advantage of anything that this language provides to you
    Really ?
    You could use template functions, metaprogramming and the huge C++ standard library(including the STL (implementations of several data structures and algorithms), threads and RTTI utilities), exception handling and still have a procedural program.
    Adding to that, ranged for loops, lambda functions, and the new C++11 features.
    And all of the above can be used very well and naturally in procedural programming.
    Based on your statement, it is easy to assume that you have not used most of the above.
    Last edited by manasij7479; 06-30-2012 at 04:58 PM. Reason: typo

  2. #32
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Quote Originally Posted by manasij7479 View Post
    Really ?
    You could use template functions, metaprogramming and the huge C++ standard library(inclusing the STL (implementations of several data structures and algorithms), threads and RTII utilities), exception handling and still have a procedural program.
    Adding to that, ranged for loops, lambda functions, and the new C++11 features.
    And all of the above can be used very well and naturally in procedural programming.
    Based on your statement, it is easy to assume that you have not used most of the above.
    Altough knowing all the above,i have not used them much. Thanks for the information

  3. #33
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    You seem to tie notions of design to a programming language.

    That's not a beneficial way to approach learning or design concepts.

    As a matter of interest, you aren't likely to find any modern code in any language that doesn't borrow some techniques from the "OOP" umbrella.

    "Abstraction" and "Inheritance" in the form of opaque references and vanilla interfaces are ubiquitous in C API.

    Certainly facilities like "Factories" have their use in virtually every language.

    These are tools you learn to use in approaching the implementation of a solution to a problem.

    They are not solutions in and of themselves nor are the majority of such tools isolated to a specific language.

    Soma

  4. #34
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Thank you for your infos too

  5. #35
    young grasshopper jwroblewski44's Avatar
    Join Date
    May 2012
    Location
    Where the sidewalk ends
    Posts
    294
    You are using a linux OS, yes? (Most) Modern *nix OS's come with gcc already installed and has fairly basic and easy usage. Since you are starting with C++ (smart choice), you will need the C++ derivitive, g++. Install that using your system's package management system (debian = apt-get install gcc g++) (fedora = yum install gcc g++). The g++ compiler - Cprogramming.com <--- Here is a link on basic command line usage. As far as code::block is concerned, that is an IDE, or development environment, that is essentially the *nix alternative to VS for Win. I use code::lite, which is a lighter version of code::blocks that i prefer. Try using known-working source code from this website to get yourself comfortable with compiling code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Dos and learning Windows
    By blankstare77 in forum C++ Programming
    Replies: 8
    Last Post: 07-31-2005, 03:48 PM
  2. I'm learning C++, but need an example..
    By akrocks in forum Windows Programming
    Replies: 3
    Last Post: 03-15-2004, 08:04 PM
  3. Learning COM
    By minesweeper in forum Windows Programming
    Replies: 5
    Last Post: 03-03-2003, 03:30 AM
  4. learning C++ from C
    By gratyklz in forum C++ Programming
    Replies: 2
    Last Post: 02-23-2003, 02:09 PM