Webhosting in Pakistan
Page 1 of 2 12 LastLast
Results 1 to 12 of 20

Thread: School Management - For Beginner

  1. #1
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default School Management - For Beginner

    Webhosting in Pakistan
    Hi,
    school Management System FOR Program Languages Beginner..

    Code Below Code And Paste It
    Your Compiler And Try


    Code:
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //SCHOOL MANAGEMENT PROGRAM
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Headers inclusion
    #include <iostream>
    #include <fstream>
    #include <string>
    #include <conio.h>
    #include <windows.h>
    using namespace std;
    //Structure defining
    //For students
    struct student
    {
     string fname;//for student first name
    string lname;//for student last name
    string Registration;//for Registration No number
    string classes;//for class info
    }studentData;//Variable of student type
    //For teachers
    struct teacher
    {
     string fst_name;//first name of teacher
    string lst_name;//last name of teacher
    string qualification;//Qualification of teacher
    string exp;//Experiance of the person
    string pay;//Pay of the Teacher
    string subj;//subject whos he/she teach
    string lec;//Lecture per Week
    string addrs;//Adders of teacher home
    string cel_no;//Phone number
    string blod_grp;//Bool Group
    string serves;//Number of serves in School
    }tech[50];//Variable of teacher type
    ///////////////////////////////////////////////////
    //Main function
    void main()
    {
    int i=0,j;//for processing usage
    char choice;//for getting choice
    string find;//for sorting
    string srch;
    while(1)//outer loop
    {
     system("cls");//Clear screen
    //Level 1-Display process
     cout<<"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
    cout<<"\n\n\t\t\tSCHOOL MANAGEMENT PROGRAM\n\n";
    cout<<"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
    cout<<"\n\n\t\t\tMAIN SCREEN\n\n";
    cout<<"Enter your choice: "<<endl;
    cout<<"1.Students information"<<endl;
    cout<<"2.Teacher information"<<endl;
    cout<<"3.Exit program"<<endl;
    cin>>choice;
    system("cls");//Clear screen
    switch(choice)//First switch
    {
    case '1': //Student
    {
    while(1)//inner loop-1
    {
    system("cls");//Clear screen
    //Level-2 display
    cout<<"\t\t\tSTUDENTS INFORMATION AND BIO DATA SECTION\n\n\n";
    cout<<"Enter your choice: "<<endl;
    cout<<"1.Create new entry\n";
    cout<<"2.Find and display entry\n";
    cout<<"3.Jump to main\n";
    cin>>choice;
    switch (choice)//Second switch
    {
    case '1'://Insert data
    { ofstream f1("student.txt",ios::app);
    for( i=0;choice!='n';i++)
    {
    if((choice=='y')||(choice=='Y')||(choice=='1'))
    {
     cout<<"Enter First name: ";
    cin>>studentData.fname;
    cout<<"Enter Last name: ";
    cin>>studentData.lname;
    cout<<"Enter Registration number: ";
    cin>>studentData.Registration;
    cout<<"Enter class: ";
    cin>>studentData.classes;
    f1<<studentData.fname<<endl<<studentData.lname<<endl<<studentData.Registration<<endl<<studentData.classes<<endl;
    cout<<"Do you want to enter data: ";
    cout<<"Press Y for Continue and N to Finish:  ";
    cin>>choice;
    }
    }
    f1.close();
    }
    continue;//control back to inner loop -1
    case '2'://Display data
    { ifstream f2("student.txt");
    cout<<"Enter First name to be displayed: ";
    cin>>find;
    cout<<endl;
    int notFound = 0;
    for( j=0;(j<i)||(!f2.eof());j++)
    {
    getline(f2,studentData.fname);
    if(studentData.fname==find)
    {
     notFound = 1;
    cout<<"First Name: "<<studentData.fname<<endl;
    cout<<"Last Name: "<<studentData.lname<<endl;
    getline(f2,studentData.Registration);
    cout<<"Registration No number: "<<studentData.Registration<<endl;
    getline(f2,studentData.classes);
    cout<<"Class: "<<studentData.classes<<endl<<endl;
    }
    }
    if(notFound == 0){
    cout<<"No Record Found"<<endl;
    }
    f2.close();
    cout<<"Press any key two times to proceed";
    getch();//To hold data on screen
    getch();//To hold data on screen
    }
    continue;//control back to inner loop -1
    case '3'://Jump to main
    {
    break;//inner switch breaking
    }
    }
    break;//inner loop-1 breaking
    }
    continue;//Control pass to 1st loop
    }
    case '2'://Teachers biodata
    {
    while(1)//inner loop-2
    {
    system("cls");//Clear screen
    //Level-2 Display process
    cout<<"\t\t\tTEACHERS INFORMATION AND BIODATA SECTION\n\n\n";
    cout<<"Enter your choice: "<<endl;
    cout<<"1.Create new entry\n";
    cout<<"2.Find and display\n";
    cout<<"3.Jump to main\n";
    cin>>choice;
    switch (choice)//Third switch
    {
    case '1'://Insert data
    {
    ofstream t1("teacher.txt",ios::app);
    for(i=0;choice!='n'&& choice!='N';i++)
    {
     if((choice=='y')||(choice=='Y')||(choice=='1'))
    {
    cout<<"Enter First name: ";
    cin>>tech[i].fst_name;
    cout<<"Enter Last name:: ";
    cin>>tech[i].lst_name;
    cout<<"Enter qualification: ";
    cin>>tech[i].qualification;
    cout<<"Enter experiance(year): ";
    cin>>tech[i].exp;
    cout<<"Enter number of year in this School: ";
    cin>>tech[i].serves;
    cout<<"Enter Subject whos teach: ";
    cin>>tech[i].subj;
    cout<<"Enter Lecture(per Week): ";
    cin>>tech[i].lec;
    cout<<"Enter pay: ";
    cin>>tech[i].pay;
    cout<<"Enter Phone Number: ";
    cin>>tech[i].cel_no;
    cout<<"Enter Blood Group: ";
    cin>>tech[i].blod_grp;
    t1<<tech[i].fst_name<<endl<<tech[i].lst_name<<endl
    <<tech[i].qualification<<endl<<tech[i].exp<<endl
    <<tech[i].serves<<endl<<tech[i].subj<<endl<<tech[i].lec
    <<endl<<tech[i].pay<<endl<<tech[i].cel_no<<endl<<tech[i].blod_grp<<endl;
    cout<<"Do you want to enter data: ";
    cin>>choice;
    }//if
    }//for loop
    //for finding through name
    system("cls");
    t1.close();
    }//case 1
    continue;//Control pass to inner loop-2
    case '2'://Display data
    {
    ifstream t2("teacher.txt");
    cout<<"Enter name to be displayed: ";
    cin>>find;
    cout<<endl;
    int notFound = 0;
    for( j=0;((j<i)||(!t2.eof()));j++)
    {
     getline(t2,tech[j].fst_name);
    if(tech[j].fst_name==find)
    {
    notFound = 1;
    cout<<"First name: "<<tech[j].fst_name<<endl;
    getline(t2,tech[j].lst_name);
    cout<<"Last name: "<<tech[j].lst_name<<endl;
    getline(t2,tech[j].qualification);
    cout<<"Qualification: "<<tech[j].qualification<<endl;
    getline(t2,tech[j].exp);
    cout<<"Experience: "<<tech[j].exp<<endl;
    getline(t2,tech[j].serves);
    cout<<" number of year in this School: "<<tech[j].serves<<endl;
    getline(t2,tech[j].subj);
    cout<<"Subject whos teach: "<<tech[j].subj<<endl;
    getline(t2,tech[j].lec);
    cout<<"Enter Lecture(per Week): "<<tech[j].lec<<endl;
    getline(t2,tech[j].pay);
    cout<<"pay: "<<tech[j].pay<<endl;
    getline(t2,tech[j].addrs);
    cout<<"Address: "<<tech[j].addrs<<endl;
    getline(t2,tech[j].cel_no);
    cout<<"Phone Number: "<<tech[j].cel_no<<endl;
    getline(t2,tech[j].blod_grp);
    cout<<"Bool Group: "<<tech[j].blod_grp<<endl;
    }//if
    }//for loop
    t2.close();
    if(notFound == 0){
    cout<<"No Record Found"<<endl;
    }
    cout<<"Press any key two times to proceed";
    getch();//To hold data on screen
    getch();//To hold data on screen
    }//case 2
    continue;//Control pass to inner loop-2
    case '3'://Jump to main
    {
    break;//inner switch
    }//case 3
    }//inner switch
    break;//inner while
    }//inner loop
    continue;//control pass to 1st loop
    }//outer case 2
    case '3':
    {
    break;//outer case 3
    }//outer case 3
    }
    break;//outer loop
    }
    }

  2. #2
    khan3795 is offline Advance Member
    Last Online
    16th July 2018 @ 07:14 PM
    Join Date
    19 Mar 2012
    Location
    Layyah
    Age
    28
    Gender
    Male
    Posts
    985
    Threads
    143
    Credits
    1,287
    Thanked
    43

    Default

    bhai zara smjha den k ye code kahan paste krna hai aor iss sy kia hona ha?
    *+.= Zindgi jee =.+*

  3. #3
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default

    Quote khan3795 said: View Post
    bhai zara smjha den k ye code kahan paste krna hai aor iss sy kia hona ha?
    Bro Us Code Ko Compiler Main use Karna.

    What's Compiler.

    Compiler Is Programming Language Translator,
    like Compiler VB, DevC++, Code::Blocks, Turbo etc,

    If You Beginner So I will Recommend Dev C++. Or Code::Blocks.


    How Use The code..

    You Need Most A Compiler.
    So Plz First Dev C++ Compiler.

    Install In Your Pc.

    Now Open it.

    "Create New Project"
    Select "Console"

    Now Click CTRL+A And Click "Cute"

    Now Copy My Code From Here..

    Now Paste It Click "F9"

    Now "Save"

    That's Done..

    Any Problem Comment Me..

  4. #4
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default

    Yeh School Record Ka Ek Example Console App He ..

  5. #5
    AsifSattarvi's Avatar
    AsifSattarvi is offline Senior Member+
    Last Online
    2nd April 2017 @ 01:46 PM
    Join Date
    20 May 2012
    Gender
    Male
    Posts
    6,593
    Threads
    104
    Credits
    23,048
    Thanked
    956

    Default

    بہت شکریہ برادر اپنے پاس محفوظ کر لیا ہے بعد میں چیک کریں گے
    ہمارے ساتھ شئیر کرنے کا بہت شکریہ

  6. #6
    khan3795 is offline Advance Member
    Last Online
    16th July 2018 @ 07:14 PM
    Join Date
    19 Mar 2012
    Location
    Layyah
    Age
    28
    Gender
    Male
    Posts
    985
    Threads
    143
    Credits
    1,287
    Thanked
    43

    Default

    Quote A_Qayoom said: View Post


    Bro Us Code Ko Compiler Main use Karna.

    What's Compiler.

    Compiler Is Programming Language Translator,
    like Compiler VB, DevC++, Code::Blocks, Turbo etc,

    If You Beginner So I will Recommend Dev C++. Or Code::Blocks.


    How Use The code..

    You Need Most A Compiler.
    So Plz First Dev C++ Compiler.

    Install In Your Pc.

    Now Open it.

    "Create New Project"
    Select "Console"

    Now Click CTRL+A And Click "Cute"

    Now Copy My Code From Here..

    Now Paste It Click "F9"

    Now "Save"

    That's Done..

    Any Problem Comment Me..
    plz give software link plz

  7. #7
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default

    Quote khan3795 said: View Post
    plz give software link plz
    kis Software ka link dun apko....????

  8. #8
    khan3795 is offline Advance Member
    Last Online
    16th July 2018 @ 07:14 PM
    Join Date
    19 Mar 2012
    Location
    Layyah
    Age
    28
    Gender
    Male
    Posts
    985
    Threads
    143
    Credits
    1,287
    Thanked
    43

    Default

    Quote A_Qayoom said: View Post

    kis Software ka link dun apko....????
    js mn ye code paste krna hai

  9. #9
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default

    Yeh Link he Dev c++ ki download Kro

    http://superb-sea2.dl.sourceforge.ne....9.2_setup.exe


    - - - Updated - - -

    Yeh Link he Dev c++ ki download Kro

    http://superb-sea2.dl.sourceforge.ne....9.2_setup.exe

  10. #10
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default

    Quote khan3795 said: View Post
    js mn ye code paste krna hai
    Yeh Lo..

    http://superb-sea2.dl.sourceforge.net/project/dev-cpp/Binaries/Dev-C%2B%2B%204.9.9.2/devcpp-4.9.9.2_setup.exe

  11. #11
    Qutib Nangrj's Avatar
    Qutib Nangrj is offline Senior Member+
    Last Online
    25th February 2018 @ 02:28 PM
    Join Date
    06 Jan 2015
    Age
    23
    Gender
    Male
    Posts
    73
    Threads
    20
    Credits
    97
    Thanked
    0

    Default

    bro shop software ka b code batao.

    Sent from my H30-U10 using Tapatalk

  12. #12
    Join Date
    28 Apr 2015
    Location
    Sindh
    Gender
    Male
    Posts
    386
    Threads
    81
    Credits
    1,802
    Thanked
    38

    Default

    Webhosting in Pakistan
    Quote Qutib Nangrj said: View Post
    bro shop software ka b code batao.

    Sent from my H30-U10 using Tapatalk
    Bro Aa Me In ur contact i will POST thread Here So i Tag You..

Page 1 of 2 12 LastLast

Similar Threads

  1. School management Software
    By raoazeem in forum Ask an Expert
    Replies: 14
    Last Post: 28th April 2013, 05:21 PM
  2. Solved NEED school management software
    By ayub_khan in forum Solved Problems (IT)
    Replies: 5
    Last Post: 8th April 2013, 11:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •