STL (140)
OOPS (873)
C++ General (2409) What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++
TCS,
1 4494This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
2080Write 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.
3035
Write a program to sort the number with different sorts in one program ??
Tell me what are static member functions?
What is the difference between procedural programming and oops?
How many standards of c++ are there?
What is fflush c++?
Implement stack operations with pointers with appropriate exception checks.
Explain the uses oof nested class?
By using c++ with an example describe linked list?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Which c++ operator cannot overload?
Why c++ is not a pure oop language?
Explain the difference between abstract class and interface in c++?
What is polymorphism give a real life example?
What is Coupling?
Do we have to use initialization list in spite of the assignment in constructors?