Search:
Type: Posts; User: sdcode
Search:
Search took 0.09 seconds.
-
September 19th, 2012, 11:42 AM
thanks for that.
A colleague suggested I just stream data and files over an SSL connection since we own third party libraries for doing so. I'm looking into that and keep ssh as a backup, so any...
-
September 18th, 2012, 04:01 PM
Hey all,
I haven't done visual programing in many years so I am a bit rusty. I have visual studio 2010. I want to write a gui program that will make an ssh connection and send commands over ssh. I...
-
July 13th, 2009, 09:24 AM
-
July 13th, 2009, 08:15 AM
I think you should use whatever compiler the book recommends. If it doesn't recommend any, then find a book that does. In my experience, visual has a lot of unique quirks that are learned with...
-
July 13th, 2009, 07:52 AM
never knew about the *buf classes. Googling it tells me the difference is that stringstream is a class for "users" and stringbuf is a class for "developers." In other words if you want to develop...
-
July 10th, 2009, 01:55 PM
I am lost. Templates are implemented in the .h file, not .cpp.
-
July 10th, 2009, 12:49 PM
w3rd is correct then. The digit is buffered and gets picked up by the next cin. So if you typed y7y6y5, you'd have the area of the radii 7, 6, 5.
I think there is a way to stop this. Flushing cin...
-
July 10th, 2009, 12:19 PM
sounds like an API issue and not a c++ issue. Go back to the .dll vendor and ask for support is my best suggestion. Secondly, why not convert the jpg to a gif or bitmap?
-
July 10th, 2009, 12:16 PM
I am confused, can you show the complete output?
-
July 10th, 2009, 12:08 PM
It is definitely possible. Syntax looks okay. I usually typedef template instantiations.
typedef A<int> AInstantiation;
class B : public AInstantiation
Not sure if it makes a difference.
-
July 10th, 2009, 09:10 AM
Is there a way to remove debug statements (usually protected by #defines) from the source code?
I guess it would depend on the source code editor, but has anyone found a way to do this?
-
Haven't tested it yet but I think it'll work. the answer is to pass class types as template parameters and then the class object pointer and function reference to the constructor parameters. I guess...
-
Thanks! I am not allowed to use boost, but I am looking through it to try to steal some ideas.
I think I am getting there. I realized I need to pass the class type as a template argument. And then...
-
This is a bit convoluted...
There is existing code for an observer pattern. There is a data repository class. There is a data observer super class with an update() function. Usually I derive from...
-
Thanks. I got stuck and came back to see your post. Unfortunately I had done things in reverse. For some reason this stuff is counter intuitive for me right now.
If speed is a concern, which it is...
-
thanks I think that is what I was looking for. The key being using pointers and value_type which I had never used. Let me see if I can code this now.
-
I'm new to functors (still trying to grasp the concept) and I wanted to know if I can do the same as the following code with a functor? It basically converts a vector of a two item struct into two...
-
Yes I'd like to separate into multiple containers. But the data is all related by a time value (history). Which has a fair bit of processing, so I would have to duplicate that processing I think....
-
Interesting. I would make the operator() for the extractors return different types for my individual case instead of double. For the MedianCalculator operator() shouldn't it return a bool instead of...
-
how would I sort only the b data? For example,
A a[] = {{1, 3}, {3, 2}, {2, 1}};
so that the answer is {1,1}, {3, 2}, {2,3}.
-
I have comparison functions for that. I use them as the third argument for std::sort(). I am not allowed to use boost.
The algorithms works, I just want a more elegant and generic way of doing...
-
sorry that what I said was a bit confusing. I don't want the median of the the sum of dataA and dataB. The data is not related in that way, it is just data gather at the same point in time from two...
-
I have a couple of struct:
struct MyData_t
{
int dataA;
int dataB;
}
-
hmmm I don't want the proxy class. So that means I need to do it spedos way as map<pair<int,int>, int> ??
I tried to get it to work without the proxy class and here is what i came up with that...
-
thanks for the warning.
my code looks like this:
int GetValueAt(int x,int y)
{
return table[x][y];
}
|
Click Here to Expand Forum to Full Width
|