Here's the begining of the code:
Code:
#include "stdafx.h" // it contains all the headers .
int usrchoice(void); // takes input for defining parameters for otdr opration
void delaa(void); // just a delaa function
unsigned long pw;
float ds = 0.0;
unsigned int il;
double avg;
main( )
{
while(1)
{
// get user selection and branch to that task.
switch(usrchoice())
{
case 1 :
{
printf("\n Set laser pulse width b/w 10ns to 1000ns(10us) : ");
scanf("%d", &pw);
delaa();
break;
}
case 2 :
{
printf("\n Set laser pulse delay stepping from 1.25ns to 0.25ns : ");
scanf("%f", &ds);
delaa();
break;
}
when it is run it and takes input on case 2 , it comes up with runtine error ???