cplusplus.com

Hello all,

Wanted to tell you that cplusplus.com is a wonderful resource for C++ (and C) needs. Their site is clear, concise, and quite simple. Make sure you post in detail, use the code tags for code, make sure to also post in a way that makes you look somewhat literate. That is key to getting your question answered. I am fairly active on that site, mostly with questions, but I will (sometimes) give help where I can and when I can.

Anyways, be on the look out for more helpful links. (A dedicated page soon to come ;) )

stopclock.h/.cpp

I made this for my other projects on the 13th (September). What it does is stops the message for specified time. Default is 3 seconds. NOTE: you need both .cpp and .h for this to work. Please leave the comments in it.

STOPCLOCK.H

  • //////////////////////////////////////////////////
    //////// StopClock.h /////////////////////////////
    //////// Put together by: Hunter Huttger /////////
    //////// Aliases: prototype, hhuttger ////////////
    //////// Date Created: Sep 13, 2009 //////////////
    /************************************************/
    //////// Used for: call the function to stop /////
    //////// the text being shown for specified //////
    //////// time. NOTE: This is only used in ////////
    //////// Windows. Linux users have no use ////////
    //////// for this. Please use responsibly. ///////
    /************************************************/
    //////// Used with: StopClock.cpp ////////////////
    //////////////////////////////////////////////////

    #ifndef STOPCLOCK_H
    #define STOPCLOCK_H

    void StopClock();

    #endif

  • STOPCLOCK.CPP

  • //////////////////////////////////////////////////
    //////// StopClock.cpp ///////////////////////////
    //////// Put together by: Hunter Huttger /////////
    //////// Aliases: prototype, hhuttger ////////////
    //////// Date Created: Sep 13, 2009 //////////////
    /************************************************/
    //////// Used for: call the function to stop /////
    //////// the text being shown for specified //////
    //////// time. NOTE: This is cross platform //////
    //////// so all you Linux and Windows users //////
    //////// can use this too. :-) ///////////////////
    /************************************************/
    //////// Used with: StopClock.h //////////////////
    //////////////////////////////////////////////////

    #include
    #include
    #include

    void StopClock()
    {
    int seconds = 1;
    #ifdef WIN32
    Sleep(seconds*3000); // Change the 3000 to whatever you want (hint: 3000 == 3 seconds)
    #else
    sleep(seconds);
    #endif
    }

    I know it’s really simple. But it works.

    To use the function in your code put

    StopClock();

    Continue reading

  • Have you ever wondered what you could make with C++?

    I have and so has my dad and many other people world wide learning C++.

    “I (Bjarne Stroustrup) don’t make any guarantees about the accuracy of the list. I believe that it’s accurate — I trust the people who sent me examples, but I have not seen the source code myself. I have a preference of C++style code over code that are called C++ eventhough it is mostly C and try to avoid list C or “almost C” programs. Many of the detailed descriptions are the words of the respective systems’ developers and users, rather than mine.”

    Remember that. Just because its there doesn’t mean its entirely true.

    I hope this inspires you to keep up the coding!

    C++ Applications

    Great reading for the beginner, intermediate, and advanced coder.

    I found this site awhile ago and thought I would share it with you guys. It goes over the basics of C++. I like the very beginning particularly. Anyways, check it out.


    http://cs.fit.edu/~mmahoney/cse2050/how2cpp.html

    Hunter

    cout << "Hello World!";

    Hello Everybody! My name is Hunter and I (technically) own the #C++ channel on irc.securitychat.org. This is the Official Blog of #C++. Basically this blog was setup to direct people in the channel to somewhere where they can easily find helpful links, tutorials, source code, project ideas, and updates.

    I am a member of GrayHoods ( www.grayhoods.org ). I am mentioning them because it was the admin and a good friend of mine who really got me started and on my way with C++. I owe a lot to louve and Scubidus.

    Any ways, I will try to make posts on a regular basis. I am hoping every three or four days. (I got school starting so there might be a delay.)

    That is all for now,

    Hunter

    Follow

    Get every new post delivered to your Inbox.