What is the types of inheritance?
No Answer is Posted For this Question
Be the First to Post Answer
What is oops in simple words?
Who invented oop?
is java purely oop Language?
49 Answers HCL, Infosys, TCS,
Which method cannot be overridden?
Explain virtual inheritance?
What is use of overloading?
Write a c++ program to display pass and fail for three student using static member function
explain dynamic binding by drowing
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)
A file pointer always contains the __________ of the file