Quote:
Originally Posted by usama_muneeb
This is meant to be a C and not a C++ program. I am using GCC. But stdio.h is C library, not C++, wonder how you compiled it under G++.
For this simple program it does'nt matter.BY any way now i have compiled by gcc

Code:
asadulla ~/test> gcc temp7.cpp
execution gcc-3.3.1/gcc (gprs/pcusa_passport_sas)
asadulla ~/test> ./a.out
Enter your responses
1
2
3
4
5
6
2
3
4
4
5
5
5
5
12
Bad responce: 12
2
2
2
10
1


Rating    Number of Responces
------ -------------------
   1             2
   2             5
   3             2
   4             3
   5             5
   6             1
   7             0
   8             0
   9             0
  10             1