Search:

Type: Posts; User: Prelude

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    6,544

    Mostly because it's technically illegal in C++....

    Mostly because it's technically illegal in C++. Some compilers support it as a historical artifact, but even in C (the language that C++ inherited that feature from) it's exceedingly poor style.
  2. Replies
    8
    Views
    6,544

    Just store your numbers in a list somewhere, then...

    Just store your numbers in a list somewhere, then you can have as many as you want:


    #include <cstdlib>
    #include <iostream>
    #include <string>

    namespace {
    int hit[][3] = {
    {1,...
Results 1 to 2 of 2