Results 1 to 23 of 23

Thread: Is C++ free language or U have to buy it

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2001
    Posts
    41

    Is C++ free language or U have to buy it

    Hi everyone I'm trying to learn C++. I've started learning Java but now i wanted to learn C++ at the same time.

    This way I think it going to be faster in learning both language cos they are close to the same language. well that what i heard.


    I don't know anything about C++ and I don't if it free or not.
    I wanted to know the price, the newest version (Not Visual C++) Plz

    Thanks you

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    C++ is free, totally and unequivocally It's just compilers you pay for if you really want to, but you don't need to. See the FAQ for some links, but there's DJGPP, Borland C++ 5.5, Cygwin, and some others. (PS: lots of things use the GNU C++ Compiler although they have different names)
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    If you are looking for i free C++ compiler i would recommend Turbo C++ 3.0, it is great. Otherwise if you have money or you live in some third world country get MS Visual C++ (absolutely the best).
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Isn't TC++3 16-bit? I don't think we want to scare new learners away with near/far pointers...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Yeah, parksie you're right. I use it a lot in the past few months (need to make DOS apps), so i forgot about 32-bit programming.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Can't you use DJGPP to make DOS apps or do they actually have to be 16-bit ones?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    denniswrenn
    Guest
    Ummm, DJGPP compiles console apps...

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Nope, it makes protected-mode DOS programs
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    denniswrenn
    Guest
    Then why are they so big? I thought only console programs were >150kb (The program I made in DJGPP was a "hello world" program, and it was like 175kb)...

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Did you remember to use the -s command line option?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    denniswrenn
    Guest
    I was using RHIDE(the IDE) so I didn't really have a choice of any switches.... what does -s do?

  12. #12
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It strips all the debugging symbols out which GPP uses by default. Also, the C++ RTL is a lot larger than the C one - try a "Hello World" in C and it's about 50K as opposed to about 150K in C++ (just tested now, using the -s option both times).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  13. #13
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    Originally posted by parksie
    near/far pointers...
    I did a tutorial a while ago and it introduced me to the basics of Pointers and how to use them, but it didn't mention this... what does it do and what's if for?

    Thanks!
    -Emo
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  14. #14
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    I don't know anything about them; except i've heard they're quit nasty. i believe they had something too do with segments?
    As far as i know you don't have too worry about them with win98.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  15. #15
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Yep. A near pointer is to memory within the current segment, but a far pointer is a combination of segmentffset One of the nastiest things Intel ever did, but they seem to have got over it

    They're unnecessary in 32-bit programming of any kind.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  16. #16
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Are there any programs that aid in writing C++ files before compling?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  17. #17
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Notepad

    Most compilers come with an IDE now, although the Borland free one doesn't. Denniswrenn made an IDE, you'd have to see him about it.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  18. #18
    denniswrenn
    Guest
    http://www.planetsourcecode.com/xq/A...s/ShowCode.htm


    Note: It does not compile the program in the large edit box, you have to type the path in the Open/Save box....

  19. #19
    wossname
    Guest
    Dennis, in RHIDE, go to Options...Compiler Options and put -s in there. I did that and now my hello world program is 137kb in size (down by half!). Why the hell is it still so big though?

  20. #20
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    How do I get Borland Compiler to work?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  21. #21
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by wossname
    Dennis, in RHIDE, go to Options...Compiler Options and put -s in there. I did that and now my hello world program is 137kb in size (down by half!). Why the hell is it still so big though?
    I think it's because it also includes a DPMI server to enable your program to run 32-bit under DOS. Windows includes a DPMI, so native Windows programs are much smaller. Plus, it includes all the runtime library information it needs - it's larger, but totally independent.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  22. #22
    Zaei
    Guest
    Dont bother trying to look for TC++ 3. It took me a few hours to find it, and the newer 32 bit compilers will work better for most people. Although i really like "graphics.h"... How odd does "256 colors on a monochrome screen" sound?

    From what i can tell, i think they had to separate pointers into near and far because they could only transfer 16 bits per memory access (an int), so it would take 2 memory accesses to get an entire 32 bit address. Nowadays, we grab 32 bits per memory access (a DWORD). Sorta like the reason BOOLs are really one byte long, instead of a bit, because you cant access one bit at a time.

    Z.

  23. #23
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Although on an Intel architecture I believe that although they're a byte, they effectively take 4 bytes because all variables have to lie on a 4-byte boundary or something like that.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width