Search:
Type: Posts; User: binarybob0001
Search:
Search took 0.12 seconds.
-
September 10th, 2012, 01:47 PM
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...
-
October 24th, 2007, 06:58 PM
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <cstdlib>
using namespace std;
bool yes()
-
October 24th, 2007, 06:53 PM
I was just curious. Thanks guys.
-
October 23rd, 2007, 07:30 AM
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...
-
-
So there is no magic tool that helps you find the first, second and third functions, just hard work?
-
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...
-
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...
-
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...
-
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...
-
Have a look at stringstream.
-
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...
-
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++...
-
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...
-
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...
-
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...
-
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...
-
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
{
-
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 =...
-
Have you thought of using sets or multisets?
-
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...
-
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....
-
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...
-
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...
-
April 28th, 2006, 06:20 AM
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...
|
Click Here to Expand Forum to Full Width
|