jeffreyancheta32's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
14 (0.02 per day)
Joined:
13-July 12
Profile Views:
630
Last Active:
User is offline Nov 05 2012 03:49 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   jeffreyancheta32 has not set their status

Posts I've Made

  1. In Topic: problem my function is not working. question how to make file handling

    Posted 2 Sep 2012

    Thank you for teaching me..
  2. In Topic: problem my function is not working. question how to make file handling

    Posted 2 Sep 2012

    i don't know.. please help me to fix it
  3. In Topic: problem my function is not working. question how to make file handling

    Posted 1 Sep 2012

    #include <iostream>
    #include <fstream>
    #include <string>
    #include <conio.h>
    using namespace std;
    
    struct biodata
    
    {
    	char Name[25];
    	char Father_Name[25];
    	char Mother_Name[25];
    	char E_mail[30];
    	char Religion[30];
    	char Nationality[30];
    	char Marital_status[30];
    	char Present_address[50];
    	char  Date_of_birth[30];
    	int  Contact_No;
    };
    
    	int main()
    {
    
    	ofstream biodataFile("Biodata.txt");
    	biodata data;
    	cout << "\t\t\tBIODATA\t\t\t" << endl;
    	cout << " Name: ";
    	cin >> data.Name;
    	cin.getline(data.Name,25);
    	cout << " Father's Name: ";
    	cin >> data.Father_Name;
    	cin.getline(data.Father_Name,25);
    	cout << " Mother's Name: ";
    	cin >> data.Mother_Name;
    	cin.getline(data.Mother_Name,25);
    	cout << " Present Address: ";
    	cin >> data.Present_address;
    	cin.getline(data.Present_address,50);
    	cout << " Contact Number: ";
    	cin >> data.Contact_No;
    	cout << " Date of birth: ";
    	cin >> data.Date_of_birth;
    	cin.getline(data.Date_of_birth,30);
    	cout << " Religion: ";
    	cin >> data.Religion;
    	cout << " Nationality: ";
    	cin >> data.Nationality;
    	cout << " Martial Status: ";
    	cin >> data.Marital_status;
    
    	system ("cls");
    
    	if (biodataFile.is_open())
    	{
    		cout << "Ok the file is Open" << endl;
    	}
    	else
    		cout << "File cannot open" << endl;
    
    	biodataFile << "\t\t\tBIODATA\t\t\t" << endl;
    	biodataFile << " Name: " << data.Name << endl;
    	biodataFile << " Father's Name: " << data.Father_Name << endl;
    	biodataFile << " Mother's Name: " << data.Mother_Name << endl;
    	biodataFile << " Present Address: " << data.Present_address << endl;
    	biodataFile << " Contact Number: " << data.Contact_No << endl;
    	biodataFile << " Date of birth: " << data.Date_of_birth << endl;
    	biodataFile << " Religion: " << data.Religion << endl;
    	biodataFile << " Nationality: " << data.Nationality << endl;
    	biodataFile << " Martial Status: " << data.Marital_status << endl;
    	biodataFile.close();
    	getch ();
    	return 0;
    }
    
    
    


    when i type my name Jeffrey T. Ancheta.. the output is T.Ancheta what should i do?

    I just don't know how to insert function ?
  4. In Topic: problem my function is not working. question how to make file handling

    Posted 1 Sep 2012

    thank you Sir jimblumberg.
  5. In Topic: problem my function is not working. question how to make file handling

    Posted 1 Sep 2012

    please teach me how to use function and file handler..

My Information

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

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

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