Results 1 to 2 of 2

Thread: Simplify Code?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Simplify Code?

    Can someone look at this code, and tell me how to simplify it? Also, I am using MSVC++ 6.0 and when I compile this extremely simple program, it ends up to be like 500Kb why?
    Attached Files Attached Files
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    Addicted Member Kal-El's Avatar
    Join Date
    Jun 2007
    Location
    Fortress of solitude
    Posts
    179

    Re: Simplify Code?

    start by removing namespace std, because you dump all the templates of std, you use something like this:
    Code:
    #include <iostream>
    #include <cstring>
    
    // dump the templates and classes we only use
    using std::cout;
    using std::cin;
    using std::endl;

    «Source Code»«plugins»«skin»«fav apps»«Winamp en español»«Nsis en español»
    So what if your signature move is driving a tractor? I think it's adorable. - Lois ("Crimson")
    Don't forget to when your question is resolved ...and the people who help

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