No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
the loop runs infinte for the second ittiration //attempt two to make the student data base the other way // this program runs onlu once and does not hav any data base once u exit #include<iostream> #include<conio.h> using std::cout; using std::endl; using std::cin; int count=0; class student { double m_roll[100],m_class[100]; … |
|
|
|
i still cant get an out put.. plus cin.get() doent work here.. why? [CODE]// to find factorial of a number #include<iostream.h> #include<conio.h> int main() { int i,m; cout<< "enter a number"; cin>> i; for ( int p=i;p>=0;p--) { p=p*(p-1); p=m; } cout << m; getch(); return(0); } [/CODE] |
|
[CODE=cpp]#include <iostream.h> #include <conio.h> int main() { int number[5]; cout<< " enter the number \n"; for (int i=0;i<=5;i++) { while (i!=$) { cin >> number[i]; } } for (int i;i<='null';i++) { cout<< "number="<<number[i]; } getch(); return (0); }[/CODE] i have used a special character which tells the user to press$ … |