• Lucid Dreaming - Dream Views




    Results 1 to 25 of 31

    Hybrid View

    1. #1
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      'Using namespace std/ w/e' saves time writing out std:: and minimizes the chance you'll mistype std::cout or cin or whatever you are using.

    2. #2
      Member Serith's Avatar
      Join Date
      Feb 2007
      Gender
      Location
      Minnesota
      Posts
      435
      Likes
      1
      I'm trying to learn C++, and I'm figuring out the basics without much trouble. The only problem is, I'm not very interested in creating text-only programs, but the tutorial I'm using gives no information about going beyond just using terminal. Where's the best place to find out how to do that?

      Also, right now I'm using Microsoft Visual C++ Express edition as my compiler. Is this a good program? Is there a better alternative for Windows XP?

    3. #3
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      0That's getting into APIs, and Engines, etc. Graphics, that is.

      The "basics" are pretty much a small part of the STL, and the language itself.

      Everything else is extra.

    4. #4
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      C++ is hard to learn as a first language. Might I suggest regular C first. C++ is just a superset (for the most part) of C.

    5. #5
      Gentlemen. Ladies. slayer's Avatar
      Join Date
      Mar 2007
      Gender
      Location
      Right here... Reputation: 9999
      Posts
      4,902
      Likes
      473
      DJ Entries
      4
      Um...no idea if this falls under the same catagory...

      But you know anything about html? I have a transparent picture and I want to get the google search engine ontop of it.

      I have both the engine and the picture on my webpage but I can only place the engine below, above, or to the sides of the picture. Even if I center it, it doesn't go in the center of the page how I want it. It only centers above or below the picture.

    6. #6
      Emotionally unsatisfied. Sandform's Avatar
      Join Date
      Jul 2007
      Gender
      Location
      Texas
      Posts
      4,298
      Likes
      24
      Quote Originally Posted by slayer View Post
      Um...no idea if this falls under the same catagory...

      But you know anything about html? I have a transparent picture and I want to get the google search engine ontop of it.

      I have both the engine and the picture on my webpage but I can only place the engine below, above, or to the sides of the picture. Even if I center it, it doesn't go in the center of the page how I want it. It only centers above or below the picture.
      Well I took a class that covered this breifly when I was in 6th grade...as a sub category of general computer knowledge. So I might be able to help you lol. It might be helpful if you give us a link to the webpage or the code you're using.

      Other than that all I can say is go here. http://www.w3schools.com/HTML/html_examples.asp

    7. #7
      Your cat ate my baby Pyrofan1's Avatar
      Join Date
      Nov 2006
      Gender
      Posts
      720
      Likes
      3
      The only problem is, I'm not very interested in creating text-only programs, but the tutorial I'm using gives no information about going beyond just using terminal. Where's the best place to find out how to do that?
      http://nehe.gamedev.net/
      that site has loads of incredible openGL tutorials if you're looking for graphics. If you're looking at GUI programs i'm sure there are tons of tutorials online about how to use the windows API.
      Last edited by Pyrofan1; 07-31-2008 at 09:59 AM.

    8. #8
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by ninja9578 View Post
      I like "using namespace std" rather than using std::
      Quote Originally Posted by Seismosaur View Post
      'Using namespace std/ w/e' saves time writing out std:: and minimizes the chance you'll mistype std::cout or cin or whatever you are using.
      that's all fine and everything,
      but as I said, it *can* bite you in the arse

      I can quite happily do:

      Code:
      #include <yada>
      
      namespace my_app
      {
          class cout
          {
              if ( ! check_permissions() )
              {
                  throw new exeption::permission_failure;
              }
      
              if ( ! sanity_checks() )
              {
                  throw new exception::unknown;
              }
      
              log_important_stuff();
      
              std::cout << cout_value;
          }
      }
      
      
      .......
      .......
      
      int main()
      {
          #include <standard stuff>
          #include <my_app/cout>
      
          my_app::cout << "hello";
      }

      using "using", this will fail horribly

    Bookmarks

    Posting Permissions

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