Search:

Type: Posts; User: miken

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,820

    just FYI, the 'return 0;' at the end of main() is...

    just FYI, the 'return 0;' at the end of main() is implicit.
  2. Replies
    4
    Views
    1,571

    Every executable needs a runtime library. It's...

    Every executable needs a runtime library. It's the library that helps your program run within the operating system. Just because it's purely native C++ doesn't mean a thing - you might be curious to...
  3. Replies
    2
    Views
    820

    std::vector humans( number_of_humans );

    std::vector<Human> humans( number_of_humans );
  4. Replies
    3
    Views
    5,415

    Yep, give us some error messages. You don't...

    Yep, give us some error messages.

    You don't need that #using line to use C++/CLI.

    You need to add a reference in your project to System and whatever other stuff you'll be using

    You need to...
  5. Replies
    3
    Views
    1,218

    0.5 is of type double. The float version is ...

    0.5 is of type double. The float version is 0.5f, this goes for all literals
  6. Thread: File Output

    by miken
    Replies
    34
    Views
    2,368

    how about posting the contents of the file...

    how about posting the contents of the file (exactly), and posting exactly what the output of the program is.
  7. Replies
    5
    Views
    1,220

    Yes omishompi - the 'other way' is sitting down...

    Yes omishompi - the 'other way' is sitting down with a respectable learning resource for C++ and learning the right way. I seriously recommend Accelerated C++ by Koenig and Moo - it's only around $30...
  8. Thread: File Output

    by miken
    Replies
    34
    Views
    2,368

    cout

    cout << "Please enter the name of the member: ";
    getline(cin, name);
    name += ".txt";
    ofstream a_file ( name.c_str() );
  9. Replies
    5
    Views
    1,220

    class List { public: typedef int...

    class List
    {
    public:

    typedef int value_type;
    typedef value_type* iterator;

    iterator begin() const { return data; }
    iterator end() const { return data + length; }
Results 1 to 9 of 9