Forum: C++ Nov 25th, 2008 |
| Replies: 18 Views: 895 just try this one...........................
ifstream fin;
cout << "Enter filename: ";
getline(cin, ifile);
fin.open(ifile.c_str());
if(fin.fail())
{ |
Forum: C++ Nov 25th, 2008 |
| Replies: 6 Views: 28,199 yes that is a correct way u can proceed.........
but the only thing u need to do is that u should use char array in place of char variable, and the function atoi is return an int value so u should... |
Forum: C++ Nov 21st, 2008 |
| Replies: 3 Views: 421 struct node
{
int data;
struct node *link;
};
void delet(struct node **currNode,int location)
{
int i; |