No. The standard does not define nor require a file concept.
these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.
C++ is only partially OOP because it is a superset of C and, for the sake of backward compatibility, retains the concept of primitive data types (such as integrals like char and int) and pointer data types, which are all strictly non-object-oriented. In Java and C#, there is no concept of a primitive data type. Even integral types such as int are treated as objects and there is no concept of a pointer data type.
C++ evolved from C and therefore retains the concept of primitive variables inherited from C, including int and char. In 100% OOP languages such as Java, these primitives would be implemented as objects. But in C++, they are primitive in nature. That is, they have no built-in methods such as .ToString() associated with them.
An asterisk in C++, such as int *data, is what's known as a pointer. A pointer is like a regular variable, but instead of holding a value, a pointer holds the memory location of the value. It's a somewhat difficult concept, and you can learn more about it here: See related links section below...
No such thing.
No. The standard does not define nor require a file concept.
these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.
Yes. All string variables are pointers as are other arrays.
C++ is only partially OOP because it is a superset of C and, for the sake of backward compatibility, retains the concept of primitive data types (such as integrals like char and int) and pointer data types, which are all strictly non-object-oriented. In Java and C#, there is no concept of a primitive data type. Even integral types such as int are treated as objects and there is no concept of a pointer data type.
C++ evolved from C and therefore retains the concept of primitive variables inherited from C, including int and char. In 100% OOP languages such as Java, these primitives would be implemented as objects. But in C++, they are primitive in nature. That is, they have no built-in methods such as .ToString() associated with them.
Yes, http://msdn2.microsoft.com/en-us/library/64973255(VS.80).aspx
An asterisk in C++, such as int *data, is what's known as a pointer. A pointer is like a regular variable, but instead of holding a value, a pointer holds the memory location of the value. It's a somewhat difficult concept, and you can learn more about it here: See related links section below...
13
b+b+b+c+c+c+c =3b+4c
c + c + 2c + c + c = 6c
b + b + b + c + c + c + c = 3b + 4c