answersLogoWhite

0

#include <stdio.h>

main()

{

FILE *a;

int sno,tm,em,mm,scm,sm,hm;

char sname[20],any[1];

clrscr();

a=fopen("student.dat","a");

do

{

printf("Enter Student Number : ");

scanf("%d",&sno);

printf("Enter Student Name : ");

scanf("%s",sname);

printf("Enter Telugu Marks : ");

scanf("%d",&tm);

printf("Enter English Marks : ");

scanf("%d",&em);

printf("Enter Maths Marks : ");

scanf("%d",&mm);

printf("Enter Science Marks : ");

scanf("%d",&scm);

printf("Enter Social Marks : ");

scanf("%d",&sm);

printf("Enter Hindi Marks : ");

scanf("%d",&hm);

fprintf(a,"%d %s %d %d %d %d %d %d\n",sno,sname,tm,em,mm,scm,sm,hm);

printf("Do you wish to continue(Y/N)");

scanf("%s",any);

}while(strcmp(any,"y")==0);

fclose(a);

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What to Do if Macros does not exist in C and C plus plus?

They do exist in C and C++.


C plus plus Builder 5 Queries and Database Grids?

thanks


Is there anyway to convert filemaker databases into c plus plus or Visual Basic files?

Not that I'm aware of. But since Filemaker is a database, you can use C++ to access the database just as you would use C++ to create SQL queries on an SQL database. Think of Filemaker as being the backend to your C++ program.


Can c plus plus be linked with a database programme?

Yes. Several possibilities exist. ODBC, JDBC, and others. For Oracle, OCI, Pro*C, and others. Consult the database vendor's developer documentation, and you will find something. Unfortunately, this is too broad a topic to be answered easily here, other than this, except to list high level options.


What is the relationship between database and c plus plus?

There is none. While you can access databases from C++, the two concepts are fundamentally different.


Do I need types of design patterns in c plus plus?

No.


How does oracle differ from c plus plus?

The first in a company developping a well-known database system, the second is a programming language.


How is c plus plus built?

C++ object oriented programming (OOP) language and supports three kinds of object types 1) Fundamental Types. 2) Derived Types. 3) Class Types.


What is a primitive type variable in c plus plus?

same the types used in C. that is int...char...float...


Why can vitamin C exist in a plus d form?

Vitamin C consists of a chiral atom so it can exist in a +(d) form (as well as a -(l) form).


Enumerate the types of selection constructs in c plus plus?

Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)


Types of sort in c plus plus?

There's only one type of sort in C++; std::sort. If you want other types you'll need to write your own.