1. Write Short Notes on C++



Download 59,25 Kb.
bet1/5
Sana26.02.2022
Hajmi59,25 Kb.
#470881
  1   2   3   4   5
Bog'liq
computer science


Introduction to Computer Science
1.Write Short Notes on C++

C++ is a cross-platform language that can be used to create high-performance applications. C++ was developed by Bjarne Stroustrup, as an extension to the C language. C++ gives programmers a high level of control over system resources and memory. C++ is one of the world's most popular programming languages. C++ can be found in today's operating systems, Graphical User Interfaces, and embedded systems. C++ is an object-oriented programming language which gives a clear structure to programs and allows code to be reused, lowering development costs.


C++ is portable and can be used to develop applications that can be adapted to multiple platforms.


2.Give General form of C++ Program

Here is the general format for a C++ program:


File: program.cpp

/* Comments */


// More comments
#include
#include
… // Provides access to standard code libraries

#include "myclass.h" // Provides access to user-defined code

int g; // Global variables defined here

using namespace std; // Defines the namespace we’re using

// Define any functions here that are available globally, e.g.
void someFunc() {
// code
}

int main(char *argv[], int argc) // Parameters optional


{
// Code here for main returning an int value
}
3. Discuss Features of C++ Keywords

Keywords (also known as reserved words) have special meaning to the C++ compiler and are always written or typed in short(lower) cases. Keywords are words that the language uses for a special purpose, such as void, int, public, etc. It can’t be used for a variable name or function name. Below is the table for the complete set of C++ keywords.


class: To declare a user-defined type that encapsulates data members and operations or member functions.
const: To define objects whose value will not alter throughout the lifetime of program execution.
continue:- Transfers control to the start of a loop.
double: Fundamental data type used to define a floating-point number.


Download 59,25 Kb.

Do'stlaringiz bilan baham:
  1   2   3   4   5




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish