Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error in c++
#1
#include<iostream.h>

using namespace std;

class Student

{

private:

int rollNo;

public:

void setRollNo(int aRollNo);

};

void Student:ConfusedetRollNo(int aRollNo){

if(aRollNo>0){

cout<<"you are a student of vitual university";

}

else{

cout<<"you are not student of virtual univerity";

}

}

int main()

{

Student astudent;

astudent.setRollNo(500);

system("pause");

return 0;

}

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  A simple pthread program runtime error in c++ 2011 Vuhelper 0 903 07-23-2011, 05:39 PM
Last Post: Vuhelper
  floor conversion error in c++ 2011 Vuhelper 0 857 07-22-2011, 08:49 PM
Last Post: Vuhelper
  explain error handling in c++ 2011 saneha 0 2,362 05-02-2011, 06:52 PM
Last Post: saneha
  i used if statment to stop the program and prompt the error when area of inner circle sana.pari 0 2,134 04-24-2011, 06:42 PM
Last Post: sana.pari
  sir i m having linker and build error. pls help out. regards sana.pari 1 1,969 04-24-2011, 06:06 PM
Last Post: Support
  excuteing the progreme and how does can i best my programe error and how i can remove sana.pari 1 2,004 04-24-2011, 05:58 PM
Last Post: Support
  How to call by reference ? I have an error. sana.pari 1 1,634 04-24-2011, 05:55 PM
Last Post: Support

Forum Jump:


Users browsing this thread: 1 Guest(s)