CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: binarybob0001

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    559

    Extending iostreams to structures

    I'm trying to write an object oriented application framework. The programs can be console or GUI based, but I'm having some difficulty providing a consistent interface for outputting structures. The...
  2. Replies
    1
    Views
    898

    Skipping right over getline

    #ifdef HAVE_CONFIG_H
    #include <config.h>
    #endif

    #include <iostream>
    #include <cstdlib>

    using namespace std;

    bool yes()
  3. Replies
    3
    Views
    739

    Re: Getting a directory listing

    I was just curious. Thanks guys.
  4. Replies
    3
    Views
    739

    Getting a directory listing

    It has been a while since I have been here, but my interest in computers is perking up again. Anyways, I would like to know if there is a standard way like through the STL to get a listing of files...
  5. Replies
    4
    Views
    723

    Re: Reading a Large Library or Program

    Thanks McKenzie.
  6. Replies
    4
    Views
    723

    Re: Reading a Large Library or Program

    So there is no magic tool that helps you find the first, second and third functions, just hard work?
  7. Replies
    4
    Views
    723

    Reading a Large Library or Program

    I like to look at source code whenever I can, but I can never figure out where to start. Obviously, the first step is to find main and then read on from there. Libraries are a different story, and I...
  8. Replies
    4
    Views
    1,221

    Re: Metaprogramming Nested Loops?

    OK, I will file a bug report. It's not the multiplication that is messed up. It is multiplying and assigning. Not with the *=, but with the example above (I hope I am remembering this right. If I...
  9. Replies
    4
    Views
    1,221

    Re: Metaprogramming Nested Loops?

    Are you saying it would be better for me to extend the blitz++ library. It cannot handle some things that it should be able to handle. Last time I use it, it produced odd results with things like (I...
  10. Replies
    4
    Views
    1,221

    Metaprogramming Nested Loops?

    What do you think is the best way to generate nested for loops using template metaprogramming? I'm making a library that performs basic vector and matrix algebra (I know about blitz++, but it does...
  11. Replies
    6
    Views
    864

    Re: converting string to int from files

    Have a look at stringstream.
  12. Re: I have a project due and I really need some help now

    First, you should never double post. Read the before you post thread. Second, use code tags to display your code. Third, make sure to give all the relevant information when you post. Looking at the...
  13. Replies
    2
    Views
    625

    Re: Command Line Application

    A command line program is a program that is run from a console like MSDOS or (if you use linux) a shell. I'm assuming you are using visual C++. If so, select new project (I no longer have Visual C++...
  14. Replies
    7
    Views
    613

    Re: Stopping Sorting Feature of Maps,

    I see you decided to go with maps! Good thinking. Any ways, here's the easy way to get past this limitation.

    Create a structure to hold the SSN, Name, and Age
    Create a map that associates a key...
  15. Replies
    10
    Views
    2,027

    Re: how to reverse a doubly link list??

    luh@r PTR_XOR is a macro. It takes in two values a and b. It type casts a and b to integers and the XOR's them together. It then converts that value back to a pointer of type void*. Macros are nice...
  16. Replies
    9
    Views
    886

    Re: Template function not generated?

    I suppose there is only one solution then. That is to add another template argument (maybe a couple because of other things I will be using the class for). Here's what I came up with (I'm not sure if...
  17. Replies
    9
    Views
    886

    Re: Template function not generated?

    Dope, dumb mistake. I know exactly what is happening now. The template is actually generating the function for Vector::iterator. It then looks to find Vector::iterator::iterator. It gets confused and...
  18. Replies
    9
    Views
    886

    Re: Template function not generated?

    OK, here's repost with all the modifications McKenzie asked for.



    #include <cstdlib>
    #include <iterator>

    template<int N, int I = 0, int Stride = 1>
    class VecOps
    {
  19. Replies
    9
    Views
    886

    Template function not generated?

    I'm trying to make a simple vector class using meta programming. I'm using GCC's 3.3.4 compiler. Here's the code.


    template<int N, int I = 0, int Stride = 1>
    class VecOps
    {
    enum { loopflag =...
  20. Replies
    17
    Views
    1,162

    Re: List Class

    Have you thought of using sets or multisets?
  21. Replies
    17
    Views
    1,162

    Re: List Class

    The list class is designed to keep you away from raw access to pointers (That's why iterators were invented). The other problem you face is that when a list is updated the iterators become...
  22. Re: Blitz Library Strange Initialization

    I figured it out! What it does is in the operator= overload for TinyMatrix it returns an object that has operator,(T_numtype) overloaded. That object takes as an argument an iterator to TinyMatrix....
  23. Blitz Library Strange Initialization

    I have been trying to figure out how the Blitz numeric library was able to get commas to initialize Vectors and Matrices. For example,



    TinyMatrix<double, 2, 2> m;
    m = 1, 2, 3, 4;


    is...
  24. Replies
    1
    Views
    507

    Implicit Typename Annoyance

    I need to make my own iterator class. I'm following guides on the internet and looking at the example set by Josuttis in "The C++ Standard Library." Currently, I'm just playing around trying to get...
  25. Replies
    4
    Views
    533

    Re: Strange protection error

    Wow, I'm glad I posted. There are actually a lot more functions in the Matrix class than I posted. I wanted to make looking through the code easier. I was actually going to implement operator...
Results 1 to 25 of 304
Page 1 of 13 1 2 3 4





Click Here to Expand Forum to Full Width

Featured