#include<iostream.h>
void main()
{
class x
{
public:
int func(int)
{
cout<<"cool";
return 1;
}
}
}
Answer / m.shanmuga sundaram,rjnsoftwar
An user defined data type should end with a semi colon
otherwise returns "error syntax error : missing ';'
before '}'"
#include<iostream.h>
void main()
{
class x
{
public:
int func(int)
{
cout<<"cool";
return 1;
}
} ; /*An user defined data type should end with a
semi colon*/
}
Is This Answer Correct ? | 13 Yes | 7 No |
What is private, public and protected inheritance?
What is fixed in c++?
Why is c++ still best?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
How many bit combinations are there in a byte?
Brief explaination about #include<iostream.h>, cin and cout
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
What are all predefined data types in c++?
Explain about Virtual Function in C++?
Does c++ cost money?
What is the return value of the insertion operator?
sir there is some problem with nokia5130c-2,when we are trying to upload movies from net then there is a error occurred"FORMAT NOT SUPPORTED" bt its all ready in 3gp format.please tell me what i do now?