Memory Address

This is a discussion on Memory Address within the C++ Programming forums, part of the General Programming Boards category; Wow...nevermind...im so stupid...Thank you. Wow...i feel really bad...hahha......

  1. #16
    kevinawad
    Guest
    Wow...nevermind...im so stupid...Thank you.

    Wow...i feel really bad...hahha...

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    21,169
    Due to the stupid newlines being left in the buffer. But you realize that, don't you?
    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.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  3. #18
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    6,833
    operator >> eats whitespace. That wasn't his problem. He likely did something like
    Code:
    #include <iostream>
    #include <fstream>
    #include <ostream>
    
    int main ()
    {
      std::ifstream hexin( "foo.txt" );
    
      if ( hexin.is_open() ) {
        unsigned long foo;
    
        std::ios_base::fmtflags originalfmt = hexin.flags();
        hexin >> std::hex >> std::fixed;
        
        while ( hexin >> foo ) {
          std::cout << foo << std::endl;
        }
    
        hexin.flags( originalfmt );
      }
    }
    But I'm not going to compile that.
    Quote Originally Posted by phantomotap
    Can you write code while blindfolded only with the blind covering your brain? Can you code while brainfolded?

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    21,169
    Hmm. So it does. News to me.
    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.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. tools for finding memory leaks
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2009, 11:41 AM
  2. Pointer to specific memory address
    By elnerdo in forum C++ Programming
    Replies: 10
    Last Post: 05-19-2006, 07:35 AM
  3. Memory Address
    By Stack Overflow in forum C Programming
    Replies: 5
    Last Post: 05-25-2004, 11:43 AM
  4. Memory address?
    By Munkey01 in forum C++ Programming
    Replies: 4
    Last Post: 02-01-2003, 08:04 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM

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