cniper's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Members
Active Posts:
43 (0.13 per day)
Joined:
02-July 12
Profile Views:
987
Last Active:
User is offline Aug 27 2012 02:03 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Icon   cniper has not set their status

Posts I've Made

  1. In Topic: employee database problem

    Posted 22 Aug 2012

    okay i got it here is what i did....
    case 3:
    			{
    				ofstream outFile("out.txt");
    					if(outFile)
    					{
    						for(int i=0;i<database.size();i++)
    						{
    							database[i]->save(outFile);
    							cout<<endl;
    						}
    						outFile.close();
    					}
    			}
    			
    			break;
    

    also deleted previous ofstream outfile("out.txt"). It seemed to be working fine. I would appreciate if you could suggest if i am doing anything wrong again.
  2. In Topic: employee database problem

    Posted 21 Aug 2012

    thanks it worked here is the snippet for anyone to refer:
    case 3:
    			if(outFile)
    			{
    			for(int i=0;i<database.size();i++)
    			{
    				database[i]->save(outFile);
    				cout<<endl;
    			}
    			outFile.close();
    			}
    			break;
    
  3. In Topic: employee database problem

    Posted 21 Aug 2012

    should i clear outFile before saving?? if so then how could i do it??
  4. In Topic: employee database problem

    Posted 21 Aug 2012

    no really!!! thanks for pointing it out. any solution to this problem.
  5. In Topic: employee database problem

    Posted 21 Aug 2012

    oh gr8!!! it works fine now. thank you for all your help!!

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

cniper has no profile comments yet. Why not say hello?