Forum: C++ Feb 24th, 2008 |
| Replies: 16 Views: 4,339 Yeah I agree with vijayan. File pointers like seekg(),tellg() work correctly only with Binary Files where the read() and write() functions are used. |
Forum: C++ Jul 12th, 2007 |
| Replies: 10 Views: 2,334 Can't you instead use gets() function?
#include<iostream.h>
#include<conio.h>
int main()
{
char name[25];
cout<<"Enter the name of the customer: ";
gets(name); |