? about C++
Hi I am new 2 the forum and programming I am taking a C== programming class and was wondering if this is Linex? this might be a dumb question but I am vary new 2 programming. We use Microsoft Visual Studio and I have some questions about file I/O and argc/argv, but I need 2 know if I am in the right place.
|
anyone have anything for me?
|
I believe you meant C++ and Linux? No, C++ is not Linux. One is a language, the other is a kernel written in said language. No this would most likely not be the right place to ask about C++.
|
is there another site you might know about? forum if possible
|
You could post C++ questions in the programming forum on this site. The kernel and many of the utilities are written in C while Gnome and KDE programs are normally written in C++.
|
Quote:
|
Quote:
|
There is in mine ;) just some drivers I'm working on.
|
The linux kernel was written mostly in C but If I remember correctly weren't a couple of parts written in c++. I know almost all drivers written in C.
|
Here's what Linus says about C++ and the kernel
Quote:
|
The kernel is written in C. However it does use some features that were borrowed from C++ and incorporated in ISO C99.
Another difference is that the kernel uses its own runtime library and not the C runtime library. The kernel versions of many functions have the letter k in front of the name, such as kmalloc and kprint. Some features of the kernel are object-oriented. Such as the VFS file system. You have the super_block structure for example. To operate on a superblock you use functions in the super_operations structure. You have the inode object and a structure of functions to operate on an inode ( struct inode_operations ). |
Quote:
|
That is correct.
|
All times are GMT -5. The time now is 03:57 AM. |