Thread: Need help with this code

  1. #16
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Although I guess it could be argued that Java references are watered down C++ pointers
    C++ also has references , and you can forget about pointers for most cases.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by TastySauceCode View Post
    Heh, with a program as trivial and on such a small scale as 'Hello World', there isn't much difference granted. However, when things get more larger in scope and C++ introduces memory management, pointers* etc. than the added complexity becomes quite apparent. Obviously though Java pays for this 'advantage' with less performance.

    *Although I guess it could be argued that Java references are watered down C++ pointers...
    If you mean you need to use pointers to keep track of things such as linked lists, then a pointer in C++ is exactly the same as reference in Java except Java only uses the "." syntax, and it doesn't allow you to distinguish between the pointee and pointer.
    If you mean you need to allocate a lot of things on the heap and manually delete them, think again. That's what smart pointers are for.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    Registered User
    Join Date
    Sep 2011
    Posts
    72
    Quote Originally Posted by manasij7479 View Post
    Not if the later somehow depends on the former.
    But C++ dose not, I can spell the words I need: and, for, while, do, #include iostream, ect
    Where on this is my bad spelling going to affect it? Grammar really dose not matter unless your using cout, and even then I can type and spell good, I'll just need to type it up in world and proof read it many times, and yeah there will be mistakes, but its not like it's going to be harder for me to learn then someone who is an English majoir.

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well, I'd say knowing how to read english properly is more important than writing since you are going to be reading a lot of documentation (which is usually going to be in english).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #20
    Registered User
    Join Date
    Sep 2011
    Posts
    72
    And how did you come to the conslusion that I can't read very good? I can read and understand what I read.

  6. #21
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I didn't, and I didn't say you can't read very good. I was just making a statement.
    If you can read english fine, then don't worry. Continue learning C++.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-10-2010, 11:28 AM
  2. Replies: 14
    Last Post: 04-01-2008, 02:23 AM
  3. producing c/c++ code from flowcharts,pseudo code , algorithims
    By rohit83.ken in forum C++ Programming
    Replies: 3
    Last Post: 02-20-2008, 07:09 AM
  4. Having trouble translating psudeo-code to real-code.
    By Lithorien in forum C++ Programming
    Replies: 13
    Last Post: 10-05-2004, 07:51 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM