|
See
<br />
double c;<br />
double x = 123.456;<br />
double y = 2.1;<br />
c=x/y;<br />
printf( "%f\n", c);
whitesky
|
|
|
|
|
|
One slight correction: Use the "%f " format code for values of type float , and "%lf " format code for values of type double .
Software Zen: delete this;
|
|
|
|
|
anybody knows how to repair a floppy??Plz giv some implementation..
|
|
|
|
|
Do you want to create this utility or just need a tool for doing this
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I am already in the rocess of makin this utility ,but some ppl say that they move bad sectors in damaged floppies!! How can we do that? We can just indicate the OS that the sector is bad ,we cant move it here n there around.So I just wanted to confirm this thing. I hav tried my programs on several floppies n 8/10 hav been suceessfully repaired .But anyways Thanks .
|
|
|
|
|
|
Hey , Listen
CFlopy is just to read from a floppy , onthing else OK. It is not a floppy repairer . If u dont know the answer ,then stop guessing.
|
|
|
|
|
No, you listen. He suggested you look at an article related to your question. It might have had information that was useful to you, even though it didn't solve your problem directly. Your response is rude and uncalled for.
Software Zen: delete this;
|
|
|
|
|
Thank you for support
whitesky
|
|
|
|
|
You're welcome.
Normally I don't correct other people's behavior in public, but ingratitude is one of my hot buttons.
Software Zen: delete this;
|
|
|
|
|
I am here (usualy only visual c fourm)for answer to questions and you know that i can dont answer to any question and i see questions(only) but i like answer to questions becuase i want help to programers
whitesky
|
|
|
|
|
how can we detect bad sectors in a floppy??PLz tell with some implementation!!
|
|
|
|
|
Have you tried "chkdsk" command? It checks and fixes bad sectors on a drive.
- It's easier to make than to correct a mistake.
|
|
|
|
|
Is it possible to center align the subitem image (no text in subitem) in a List control (CListCtrl)? CListCtrl::SetItem() doesn't seem to do so. Help please!
|
|
|
|
|
SeeHere[^] im not sure but maybe it is some helpful to you
whitesky
|
|
|
|
|
Yes I have seen that before but that is owner draw list and I have to use normal list control.
Thanks for your input.
|
|
|
|
|
Hi,
i m getting this error, does anyone know hot to fix ?
[Linker Error] Fatal: Error detected (IMP302)
[Linker Error] Fatal: Access violation. Link terminated.
Software Development Specialist
|
|
|
|
|
It is internal compiler error, try to 'Rebuilt All' it may help.
Here someone has the same problem.
|
|
|
|
|
i want to creat a form with button that have nonectangular shape , such circle ,...
how i can do it?
erfan
|
|
|
|
|
|
|
1. Is there a way to get notification event/handler to window.ActiveXObject via IWebBrowser2 or any other Internet Explorer Library?
What I am trying to do here is recording the sent/received webmail. Before AJAX era, I utilized OnBeforeNavigate in WebBrowser Control to get notification event so I can capture the traditional webmail. But now with AJAX, since the top URL will not change when user click on "Inbox","Compose", the usual trick won't work and I think I need to inspect the data retrieved by XMLHTTP which means I need to have notification event for that. Do you know any way to do this for IE?
Thank you so much
Paulino
|
|
|
|
|
thanks for your reply i will send what i make in the receive function
void CConnect::OnReceive(int nErrorCode)
{
// TODO: Add your specialized code here and/or call the base class
char *Buf=new char[10000];
int i=Receive (Buf,10000);
Buf[i]=NULL;
AfxMessageBox("a");
if (Buf[0] == '1')
{
if (Buf[0] == '<')
{
do
{
int i=0;
UserName[i]=Buf[i+2];
i++;
}
while (Buf[i+2] != '>');
}
}
else if (Buf[0] == '2')
{
if (Buf[0] == '<')
{
do //User
{
int j=0;
User[j]=Buf[i+1];
j++;
i++;
}
while (Buf[i+1] != '>');
if (Buf[i+2] == '<')
{
do //message
{
int x=0;
Message[x]=Buf[i+3];
i++;
x++;
}
while (Buf[i+3] != '>');
}
}
}
Send(User,10000);
AfxGetMainWnd()->PostMessage(UM_AII,(WPARAM)Buf,0);
CSocket::OnReceive(nErrorCode);
}
/////////////////////////////////////////////////////////////////
void CConnect::GetPeople (CString IP, UINT Port)
/* get the IP and Port from getpeername function from OnAccept and send it here so i can save the connected poeple on it with thier user name*/
{
CListen L;
LOP[Index].IP=L.IP;
LOP[Index].Port=L.Port;
LOP[Index].UserName=UserName[Index];
Index++;
}
///////////////////////////////////////////////////////////////////////
int CConnect:: Search(char User[])
/* this function to search for people in the struct but i don't know how to send thier IP and Port to the other Client who want to connect to them i don't make any use from it*/
{
for(Index=0;Index<100;Index++)
{
if(LOP[Index].UserName==User[Index])
{
CString IP=LOP[Index].IP;
UINT Port=LOP[Index].Port;
}
else
Index++;
}
return Index;
}
|
|
|
|
|
I use an external DVD burner connected through firewire, and want to be able to dynamically detect when it's switched on and off while my app is running, so I know when it's available or not.
I have seen the following CP article, which suggests using the WM_DEVICECHANGE broadcast message but wasn't exactly sure how to handle this message. I need it to run on Win 95 so I cannot use SHChangeNotifyRegister() which is only for Win 2000 and above.
http://www.codeproject.com/shell/shchangenotifyregister.asp[^]
|
|
|
|