solved!
in.seekg(0,ios::end);
just had to add this line!!!
Type: Posts; User: Priyanka Mandal
solved!
in.seekg(0,ios::end);
just had to add this line!!!
works fine without the for loop.... if i use for loop...it doesnt give the output... where am i going wrong?
#include<iostream>
#include<conio.h>
#include<fstream>
using namespace std;...
i should be getting firstname, middlename and surname all together as output.... but im getting only the middlename and surname... where am i wrong???
#include<iostream>
#include<conio.h>...
#include<iostream>
#include<conio.h>
#include<string.h>
using namespace std;
class name
{
public:
int m;
char *name1; char *name2;
name1=new char[20];
name2=new char[20];
int l1,l2;
cout<<"enter string1 :";
cin>>name1;
the problem remains the same.... i have to use pointers...and i dont...
#include<iostream>
#include<conio.h>
#include<string.h>
using namespace std;
class name
{
public:
int m;