Search:
Type: Posts; User: Guysl
Search:
Search took 0.03 seconds.
-
August 2nd, 2008, 01:30 AM
Hello all,
My problem is that though I set "DataGridView2.Rows(i).Selected = True" -
the row is not "marked"(dark gray) as selected.
What should I do to display the row as selected by user...
-
September 30th, 2005, 01:02 PM
I have several questions while reading "C++ Templates: The Complete Guide/David Vandevoorde, Nicolai M. Josuttis"
template<int I> void f(int (&)[24/(4+I)]);
int main()
{
&f<4>;
}
-
September 28th, 2005, 01:39 PM
Thanks alot guys,
I've used this information to suggest a solution for :
www.codeguru.com/forum/showthread.php?p=1241906#post1241906
-
September 28th, 2005, 01:35 PM
Hope that helps.
#include <iostream>
#include <typeinfo>
template <typename TG>
class CMatriz{
-
September 27th, 2005, 04:33 PM
I wish it was that simple. My first general code shows two levels
for template parameters,
T for the class, and T2 for a function member:
template <typename T>
class CLASS{
template...
-
September 27th, 2005, 04:09 PM
change
bool pair(card[] cards)
into
bool pair(card cards[])
-
September 27th, 2005, 04:04 PM
The truth is that member is an operator , and by looking at the compiler's
error I assume the syntax is different.
I get the following compiler errors:
"`operator+' used as template "
"use...
-
September 27th, 2005, 02:20 PM
Say I have a template class, with a member template as the following:
template <typename T>
class CLASS{
template <typename T2>
void f(T2 const&);
};
-
September 21st, 2005, 12:07 AM
Sure, thats what I meant by "...maintaining a std::map...", which is a good
'tool' to create a pool of distictions.
The Flyweight suppose to reduce the number of objects whenever there
are plenty...
-
September 19th, 2005, 12:03 PM
Another approach is using map of enumeration and string:
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
enum resolution {low,medium,hight};
-
September 19th, 2005, 07:30 AM
Its a guess, but maybe
Console::WriteLine should get other type than 'String'
which is the type returned by 'Cat->GetName()'
-
September 19th, 2005, 03:29 AM
humptydumpty,
calm down. Bmiuritan uses 'malloc','strstr' and C-Stile string (char*) therefor he is obviouslly trying to code with C.
second, please read again my previous comment.
-
September 19th, 2005, 03:21 AM
Bmiuritan,
I think what would fix the problem is:
int iEnd = cTemp - 1;
instead of
int iEnd = cTemp - cSource - 1;
-
September 19th, 2005, 03:14 AM
humptydumpty,
Your code is wrong.
In 'Check' function, you assign to a local pointer and not to the array itself.
you should use strcpy to the array (if we are dealing with C as the
sample...
-
September 19th, 2005, 01:58 AM
I see the importance of using a pool of distincted objects,
it saves time and space (by not creating instances identical to existing objects).
What I miss here, is the difference between this...
-
July 26th, 2004, 02:43 AM
Wrap std::vector as member in a new class, and implement 2 versions
for operator[] (for const and non-const accesses) with safety bounds checks.
provide any interface you need such as...
-
July 25th, 2004, 08:55 AM
NMTop40,
Well I didn't really ask about the need of namespaces.
Say I have created a namespace that containes templates and non-templates elements. How would you structure your header files for...
-
July 25th, 2004, 02:50 AM
I'm curious how do you treat your own namespaces.
do you keep it as one unit?
-
July 24th, 2004, 05:54 AM
That is what I meant:
class Base{
public:
Base(int val) { defaultSetter(val); }
virtual void setter(int val) = 0;
protected:
void defaultSetter(int val)
-
July 24th, 2004, 02:36 AM
More details please. Its hard to tell where the problem is.
which arguments did you use for input? post the code and how you run the program.
Just to show you that we need more information:
an...
-
July 23rd, 2004, 02:13 PM
Not really. The override virtual functions can access a base member using
the interface tha base itself provide. If it provides a setter, you can't skip
its checks and limitations.
-
July 23rd, 2004, 12:10 PM
I believe that the following thread might interest you. The relevant part is on page 2 of the thread:
http://www.codeguru.com/forum/showthread.php?t=294708&page=2&highlight=const
-
July 23rd, 2004, 04:02 AM
Don't use the temporary array. It limits you with a constant size (in your case 4096), and since you modify the original array it gives no advantage.
what happens when shift is negative?
......
-
July 21st, 2004, 04:45 PM
The following post might help:
http://www.codeguru.com/forum/showthread.php?t=300630
Regards,
Guy
-
July 21st, 2004, 04:36 PM
An object instance allows everyone to "mess" its public member, like a program that allows everyone to "mess" its globals.
|
Click Here to Expand Forum to Full Width
|