|
I'm by no means a top-of-the-line VC programmer. I asked a question yesterday about testing my skills and got a reply that the best way would be to do some work in finding and fixing a hard bug in a commercial app. So if anyone has an app that they're working on that has a bug they can't find, send me an e-mail and if you want, I'll reply so you can send me the source. I don't want any money (my name in the code or acknowledgement somewhere would be nice). If I'm able to do this it won't be top priority, as I do have an actual job that I also have to do. But in my spare time, I wouldn't mind trying to fix some stuff.
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
I really need help with this program :::
Write a program that prompts the user to enter two postive integers,and then tests whether the larger integer is exactly divisible by the smaller one. In the process,you'll need check that the input values are both valid(greater that zero),and then established which of them is the larger.
|
|
|
|
|
well, if you're really serious, that should be quite simple. However, that's not quite what I'm looking for. I'm a little more advanced than that
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
ok, so could you write please the following function :
char* taylor (char* input_expr, char* expr_var, double order, unsigned long high);
which calculate the taylor development of a function and returns a string with the expression developed...
thx very much
TOXCCT >>> GEII power
|
|
|
|
|
Well,well,well, TOXCCT... I'm not sure if you're aware of this, but I've never been to school for programming; I'm self-taught. BUT, I'm up to a challenge. I will try to do this although I don't know how long it's going to take. Is this just a challenge to me, or is this something you actually need? Just curious; I'll do it either way.
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
bdiamond wrote:
this just a challenge to me, or is this something you actually need?
both...
i need it to improve my VisualCalc[^] project...
TOXCCT >>> GEII power
|
|
|
|
|
well, as I told you, I haven't been formally schooled, so I don't have a lot of math background, but I learn VERY quickly. I have just glanced over your article and find it to be very interesting, and intriguing. As soon as I'm finished with this post, I will be going to download the source to take a look at it at home over the weekend. However, I'm not very familiar with "taylor development" of functions. I've googled it and found some vague references to it, but nothing I could go off of that well, so far. But I also printed out a few things and will be looking at them also. I really want to see if I can do this, and hope I can get this figured out. Thanks for something to do!
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
what exactly should be the end result of me accomplishing this in your program? What is your example missing that you would like this accomplish?
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
bdiamond wrote:
what exactly should be the end result of me accomplishing this in your program? What is your example missing that you would like this accomplish?
none, except self satisfaction of having done a very hard mathematic job, and mine, for having helped me in such task...
and as you don't exactly know what taylor development is, here is a piece of help for you:
if n is the order , x0 the point, x, the variable of the expression, and f(x), the function to develop, the taylor development
T(f(x), x, x<sub>0</sub>, n) = sum( (((x - x<sub>0</sub>)<SUP>n</SUP>)/ i!)*f<SUP>(i)</SUP>(x<sub>0</sub>) ,i, 0, n) where sum(expr, i, 0, n) evaluate each value of expr for i from 0 to n, and the sum all.
TOXCCT >>> GEII power
|
|
|
|
|
okay
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
My articles[^]
bdiamond
|
|
|
|
|
Hi
Have u done that tyler stuff ? I am alsowondering how I can doit ..studied tayler series in engg papers in college ...
hm.. interesting..
Dharani babu S
|
|
|
|
|
hi mr bdiamond,
i was wondereing what you were becoming...
do you still try to do that job ?
if you have some ideas or some ways of doing such stuff, i'd like to share this knowledge with you... please.
i thank you for your interest...
see you
TOXCCT >>> GEII power
|
|
|
|
|
hello Mr BDiamondBlackDice,
it's been 1 year that you told to try for a Taylor() development function...
i consider you've been stoping any researches on the subject (if you did any), but i'm disapointed you didn't even told me you stopped...
too bad, it would be of a big interrest.
bye
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Yeah, I'm kinda disappointed in myself. However, I did do some reasearch, and came to the conclusion that my math skills weren't up to par for that yet, so I would start teaching myself some more math stuff. I did buy some books to help, but I've been doing this very big FoxPro project since about that time, and it's been changed, re-changed, re-re-changed, etc. It's finally reached completion, and I'm about to change companies in 2 weeks, anyway. Plus, I didn't have a computer at home until a couple of weeks ago.
I haven't actually forgotten, and I think about it every time I see your name on one of the posts. I will still try to do it, otherwise I'll feel like I failed at something, which I hate. So yes, I have paused, but I still intend to complete the task.
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
don't mind man, it's not a big problem... actually, it would be very interresting to know how such mathematics are implemented, but i am far from this too anyway...
moreover, i'd like to add such a function to my VisualCalc, but as i didn't implement formal calculus yet, it's a far point too.
don't care, you didn't failed, i apreciate the help you proposed, and accept the fact that it is a very difficult point to implement, even for mathematicians i believe... (making maths, and implementing them make a big gap...).
thanks,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Can anybody point me to an example or show me how to create a "Window Tiling Function" in an MDI application in MFC. I basically want the same functionality that you get when you do "Tile Windows Horizantally", "Cascade Windows" etc.
thanks
ali
|
|
|
|
|
In your mdi, find out what function that id for the actual menu item is mapped to, then look at the mfc source.
Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store
bdiamond
|
|
|
|
|
Ali Niaz wrote:
I basically want the same functionality that you get when you do "Tile Windows Horizantally"...
Send a WM_MDITILE message and set wParam equal to MDITILE_HORIZONTAL .
Ali Niaz wrote:
..."Cascade Windows"
Send a WM_MDICASCADE message and set wParam equal to 0.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello,
Consider the following code:
<br />
class A<br />
{<br />
public:<br />
A() {}<br />
~A() <br />
{ <br />
static int i = 0;<br />
std::cout << "Destructor called " << ++i << " time(s)" <br />
<< std::endl;<br />
}<br />
};<br />
<br />
void main()<br />
{<br />
try<br />
{<br />
throw A;<br />
}<br />
catch(A ex)<br />
{<br />
} <br />
}<br />
When I run the code, the output is the following:
Destructor called 1 time(s)
Destructor called 2 time(s)
Destructor called 3 time(s)
Press any key to continue
I can figure why the destructor is called 2 times, but why is it called the 3d time???
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
It has to do with how many times the object is being copied. If you replace the code with the following it will only call the destructor 2 times:
class A
{
public:
A() {}
~A()
{
static int i = 0;
std::cout << "Destructor called " << ++i << " time(s)"
<< std::endl;
}
};
void main()
{
try
{
throw A();
}
catch(A & ex)
{
}
}
[EDIT]
Here is a version that will only be called once:
class A
{
public:
A() {}
~A()
{
static int i = 0;
std::cout << "Destructor called " << ++i << " time(s)"
<< std::endl;
}
};
void main()
{
try
{
throw new A();
}
catch(A * pEx)
{
delete pEx;
}
}
[/EDIT]
John
|
|
|
|
|
Thanks, this solved my issue with handles getting closed to often
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Please, could someone explain me why there are errors in the following code?
#include <iostream>
#include <string>
using namespace std;
class Log
{
public:
explicit Log(const string& msg) { cout << msg << endl; }
};
int main()
{
string msg = "Hello, World!";
Log(msg.c_str()); // This Works...
Log(msg); // ... but this doesn't; Errors C2371 and C2512!
return 0;
}
I'm using VC++ .NET 2003.
Thanks in advance.
|
|
|
|
|
Hello,
I, once again, am wondering about some C++ thing. This time it is about the cleanup of thrown exceptions.
Consider the following code:
<br />
throw new CSomeException(ErrorNumber);<br />
<br />
catch(CSomeException *pEx)<br />
{<br />
}<br />
I want to know if the destructor is called when the catch-block is left, or does this lead to a memory leak?
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Bob Stanneveld wrote:
I want to know if the destructor is called when the catch-block is left, or does this lead to a memory leak?
It leads to a memory leak. If someone throws a pointer to an exception, it won't automatically be deleted.
Nathan Holt
|
|
|
|
|
Hello,
Thanks for the information.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|