#include <iostream>
using namespace std;
class name
{
private:
char a[100];
public:
void member(char b[])
{
cout<<b;
}
};
int main()
{
name ob;
char a[100]="computerscience&engineering";
ob.member(&a[8]);
return 0;
}
using namespace std;
class name
{
private:
char a[100];
public:
void member(char b[])
{
cout<<b;
}
};
int main()
{
name ob;
char a[100]="computerscience&engineering";
ob.member(&a[8]);
return 0;
}
No comments:
Post a Comment