ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That's a very generic request. Do you have a specific application in mind? What do you want to accomplish? If you just want to learn C I suggest taking classes, reading books and/or using a search engine to find tutorials.
Also keep in mind that most of the text editors you use have the nice feature of color highlighting c++ code to make it easier to read and understand. You should see it as an option of your editor (like kate, emacs, vim, or joe, and maybe gedit). If you look at the videos above, they use syntax highlighting. That is why all the font does not look the same. You create your programs using the text editors and then compile and run them from the bash shell command line interface.
Here is a link to Indians helping each other learn c++
well, Dont have any basic knowledge of C++ I wanna learn can i find Video tutorial of practice or to learn.
It's easier to find written tutorials for programming than videos. Besides, doing it on your own forces you to experiment and learn on your own, which is a powerful tool
Quote:
Originally Posted by rahilmaknojia
If want to write program, So can I write C++ in bash shell or I have switch to csh
...but don't learn it, it's awful and terrible. learn BASIC.
Please explain yourself resetreset, this is not the first post I have seen you express such comments. Are you referring to C++ being a bad beginners language or just a bad language in general. Do you actually know any C++ or is this your unfounded opinion?
for c++ you dont program in the shell, you use g++ . but don't learn it, it's awful and terrible. learn BASIC.
Program in the shell? 'g++' is a command to compile C++ programs, which you can execute from the command line (shell). Or, you can use a graphical interface such as an IDE to invoke it for you (by clicking a "Compile" button).
Not programming C++ programs in a shell and instead using 'g++' isn't a logical comparison.
And the original poster was asking about C in the first place, not C++. The links I provided just happen to have some mixings of both languages.
for c++ you dont program in the shell, you use g++ . but don't learn it, it's awful and terrible. learn BASIC.
I think that most professional programmers would say that Basic is terrible and that's not where you should start. And then, if you question them further, they will admit that they started on Basic...
A lot depends on what you are trying to accomplish. You could learn a lot from Basic, but would quickly get to the point at which Basic becomes the problem rather than the solution, so why not start from something that has the possibility of taking you further?
Note that C++ (title) and C (original post) are different things and you would have to decide on one or the other to learn. As C++ is based on C, learning C would certainly make it easier to learn C++. On the other hand, you might consider C++ to be more 'modern'.
I think that most professional programmers would say that Basic is terrible and that's not where you should start. And then, if you question them further, they will admit that they started on Basic...
A lot depends on what you are trying to accomplish. You could learn a lot from Basic, but would quickly get to the point at which Basic becomes the problem rather than the solution, so why not start from something that has the possibility of taking you further?
Note that C++ (title) and C (original post) are different things and you would have to decide on one or the other to learn. As C++ is based on C, learning C would certainly make it easier to learn C++. On the other hand, you might consider C++ to be more 'modern'.
Thankz my friend I will try my best it really complicated to learn by self.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.