Search found 3 matches
- Wed Mar 30, 2005 2:46 pm
- Forum: C++
- Topic: When floating point exception happens??
- Replies: 2
- Views: 2170
code
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
class file_name
{
public:
char name[60];
void init();
void check();
int get_chk();
int length();
private:
int chk;
};
void file_name::init(){chk=0;}
int file_name::get_chk(){return chk;}
void file_name::check(){chk=1;}
int file_name ...
- Wed Mar 30, 2005 2:43 pm
- Forum: C++
- Topic: When floating point exception happens??
- Replies: 2
- Views: 2170
When floating point exception happens??
Your program has died with signal 8 (SIGFPE). Meaning:
Floating point exception
Before crash, it ran during 0.002 seconds.
---------------------
the code executes with the sample inputs given.
but when i submit it it returns the above exception.
would someone tell me when this happens plz?
thnx
Floating point exception
Before crash, it ran during 0.002 seconds.
---------------------
the code executes with the sample inputs given.
but when i submit it it returns the above exception.
would someone tell me when this happens plz?
thnx
- Wed Mar 16, 2005 7:54 pm
- Forum: C
- Topic: How should i determine end of inputs
- Replies: 16
- Views: 8740
How should i determine end of inputs
i dont know how should i determine endof inouts with standard inputoutput.
please help me
please help me