Search:
Type: Posts; User: Kheun
Search:
Search took 0.45 seconds.
-
November 26th, 2009, 09:28 PM
Well, in your first code within IsValidEmail(), it always return the boolean result from Regex.IsMatch().
-
November 26th, 2009, 09:17 PM
Is RMS referring to Root Mean Square? If so, you should multiply each element by itself before summing them. I.e. runningWindowCount = array[i] * array[i]
From you question, I believe you are...
-
November 24th, 2009, 08:34 PM
There's nothing wrong in writing neutral network code in OOP. Your header file seem okay except for the function signature for CNeuron::Attach(). There is no need to use the class keyword for pLayer...
-
November 23rd, 2009, 08:23 PM
There's nothing wrong with the question. It is achievable using a for-loop. You just need to count from start to end.
-
June 27th, 2009, 03:41 AM
I don' think I will ever use goto in C++ as there are multiple ways to avoid it and still writing clean code. However, it will be a different story when the programming language of choice is C. It is...
-
Is this what you are looking for?
inline const A1<T>& GetA() const // <<<<<<<<
{
return a; // <<<<<<<<<<
}
-
Thanks for clearing up.
I found this link that may help but I haven't tried it.
http://msdn.microsoft.com/en-us/library/d9x1s805.aspx
-
I doubt so. As far as I know, #pragma preprocessor directive is compiler specific. I don't think it is part of the C++ language.
-
As long as you are using a recent compiler, you have to use the full name, like std::cout and std::cin. Otherwise, you need "using namespace std" in your code. One unlikely possibility is that you...
-
Please see this FAQ.
http://www.codeguru.com/forum/showthread.php?t=396141
-
I think the information provided may be incomplete. Since that the binary doesn't work in other locations, you may like to take a look in your code with files are being handled.
-
You print out the wrong content. Variable b is your index and use myarray[b] to retrieve the value of each element in the array.
cout << "myarray [" << b << "] = " << myarray[b] << "\n";
-
You should keep the header file the same, otherwise the compiler will think that the size of your class is smaller than actual.
If you want to hide some details in the your class from others, you...
-
And constructor implementation is not correct...
Class::Class()
{
}
-
_Superman_, the problem is not about writing a macro but on using preprocessor to suppress warning messages from the compiler on certain part of the code. One example would be reusing a legacy code...
-
The most important thing to me is code readability. As long as any approach generate a clean code, I will use it. In C++, I will never thought of using goto at all because the language has better...
-
I think you are taking the right path in automating client to stress testing your server. In addition, you can create a console mode for your client to tale commands and avoid rendering graphic. In...
-
For you example, you should also provide the operator[]() instead of operator*(). Otherwise, the compiler will be confused with the native "float operator[](size_t)".
template<typename T,...
-
To quick work around is to use #undef to undefine the macro in your cpp file. As long as the const is being defined as private in the cpp file, it shouldn't conflict with the rest of the code.
-
You can create an interprocess semaphore object. When the first program starts, it creates an interprocess semaphore with an unique name. When subsequent instances of the same program is launched,...
-
How did you declare the final variable? If you declare it as std::string, then the comparison will work.
As for your other problem, your do-while statement is not right. In all while statement,...
-
Please see the line highlighted in red. I believe you made a mistake by declaring a pointer and ended up passing an uninitialized pointer to the function, SRRT::Exp_princ().
bool SRRT::Plan()...
-
December 1st, 2008, 05:20 AM
You can't just write the entire instance into file and vice versa especially when the message class has member declared as pointers which you have to allocate and deallocate memory. So when you write...
-
December 1st, 2008, 03:50 AM
Here's a quick example.
class ReportGenerator
{
//...
public:
void doIt()
{
-
December 1st, 2008, 03:36 AM
In C99, it also supports int64_t for 64-bit int. So you may like to create a temporary typedef for int64_t so that when Visual C++ finally supports it, you will not have to change much of your code....
|
Click Here to Expand Forum to Full Width
|