Posts

Showing posts from March, 2024
                C++ manipulators Definition: Manipulators are   helping functions that can modify the input/output stream . It does not mean that we change the value of a variable, it only modifies the I/O stream using insertion (<<) and extraction (>>) operators. Types of C++ Manipulators Stream Manipulators: A stream manipulator is  a function that can be inserted into a stream with the << or >> operator, just like any other data type . For example, std::endl is a stream manipulator that inserts a newline character and flushes the stream.  setw(int width): Sets the field width for the next input or output operation. setprecision(int n): Sets the number of digits to be displayed after the decimal point for floating-point numbers. setfill(char c): Sets the fill character used to pad the output. left: Sets the output to be left-justified. right: Sets the output to be right-justified. Function Manipulators...
Name: Haris Ahmad Roll NO: 31152 Programe: BSSE Assignment: English Pronoun Pronouns are words that replace nouns to avoid repetition. Examples include "he," "she," "it," and "they." They can represent specific people or things and are essential for clear, concise communication. Types of Pronoun The types of pronouns are breifly described below: 1. Personal pronouns Personal pronouns r eplace specific nouns referring to people or things.  For example: "I" (first person singular), "you" (second person singular/plural), "he," "she," "it" (third person singular), "we" (first person plural), "they" (third person plural). 2. Possessive pronouns  Possessive pronounss indicate ownership or possession. For example: "mine," "yours," "his," "hers," "its," "ours," "theirs." 3. Demonstrative pronouns  Demonstrative pron...