You can use while loop like this:
while(delta >threshold)
{
//update n
//compute something
//update delta
}
Type: Posts; User: invinciblevn
You can use while loop like this:
while(delta >threshold)
{
//update n
//compute something
//update delta
}
For me Visual C++ 2005 express edition and gcc in cygwin is quite good.
It's better if you ask clear question to get a clear answer.
Your question related to memory leakage problem.
If you google "memory leakage management", you can find many thing useful.
As I know WinTask is good tool to check memory leakage.
You can put ASCII_CODE[i]=65;
Actually it's the same value in C.
Let try: printf("%c",65);
And printf("%d", 'A');
Maybe they declare this function in a .h file and #include<> in this file.
I think fgets() and fputs() is good for this case.
You have to use interrupt 14 for interfacing.
I worked with this quite long time along, so that i can not remember detail. Sorry.
If you can use Visual C++ or Visual Basic, it's quite easy.
They...
As I remember, it is not easy to touch to low level of hardware in XP with pure C.
It is protected.
With pure C you should work on DOS or Win98, it's better.
In XP, you can use VC++ which has a...
From you code, I see some problem:
+ You open a file but do not close this file.
+
Open a file when it's already opened.
Thank you very much, iMalc.
I'm doing the image rotation. I use this for point distance computation.
This computation is used many times in my program, so that is require a lot resource.
I wonder...
What is the purpose of this work?
Post it clearer please.
What type of device?
Is this a converter from RS232 to USB (As I think from your description)?
I'm doing compute distant in an image which use pixel as unit.
sqrt() require a lot resource.
just now I use this function:
c=(int) sqrt(a*a+b*b);
You simply open file "hello.txt" and use fprintf() to write this string into it.
Dear all.
I'm doing the computation rectangle's edge using Pithagore theory.
All 3 rectangle's edge are integer.
Is there any algorithm for fast computation that don't use sqrt() function?
Thanks.