Hot answers tagged

9 votes

Which C++ libraries and frameworks should I learn for GUI development?

I think it depends on the domain that you are using C++ for. There are a lot of libraries that you can learn how to use and then never use them in your life, but when you know exactly what you need ...
subspring's user avatar
  • 211
9 votes

Why do (all) professors teach C++ 11?

The advantage of C++ for teaching programming is that it is reasonably close to the actual raw workings of the computer whilst being high level enough to teach higher level concepts. The features ...
Jack Aidley's user avatar
8 votes

Motivation for learning C++ when you know Java

I think you're having trouble justifying the study of C++ because of the way that you're thinking about it. If you are aiming towards the practical benefits, then you immediately get to the following ...
Ben I.'s user avatar
  • 32.9k
7 votes
Accepted

Why do (all) professors teach C++ 11?

As a professor who teaches C++17/20(/23: mdspan for scientific computing): the 11 standard was the big evolution, and 14/17 are only minor improvements over it. If ...
Victor Eijkhout's user avatar
6 votes
Accepted

Is learning C++ recommended for beginners?

I wouldn't fuss too much over whether a language is "hard" or "easy". There are plenty of reasons to learn a language. Learning for a career is a great reason! Languages are usually organized ...
Ben I.'s user avatar
  • 32.9k
6 votes

How to design a cloze test for a programming language?

I don't think that an entire Cloze test is practical, and in any case, it does not assess deep understanding well. One problem with longer Cloze examples is that they force the student not only to ...
Ben I.'s user avatar
  • 32.9k
6 votes
Accepted

why programming languages does not have factorial function?

Most programming languages don't have any built-in functions and such additional functions are provided by "standard library" of sorts. This answer addresses why factorial is unlikely to be ...
Alexei Levenkov's user avatar
5 votes

Students' confusion over C structure members and structure variables

First off, if your students are truly mastering pointers on their first course, hats off to you. That's quite a lot of material to pack into a semester. Structs involve a mess of abstractions not ...
Ben I.'s user avatar
  • 32.9k
5 votes

Motivation for learning C++ when you know Java

There are many reasons for wanting to learn a new language, whether C++ or something else. I'll try to make this general enough to address Timothy Truckle's concerns in a comment, but also the ...
Buffy's user avatar
  • 36k
5 votes

Debugging a submission that works well on student's computer but not on my computer

You've said that having an identical environment for everyone would be an incomplete solution, since students' code could still work "by accident" in that environment. One option would be to provide ...
kaya3's user avatar
  • 529
5 votes

Which C++ libraries and frameworks should I learn for GUI development?

As others said learning stl and getting a look at boost is probably a good idea. For Gui / rich clients, Gtk/QT/wx. But you asked for something to see on screen, you could look for graphics library, ...
jolrael's user avatar
  • 51
5 votes

Why do (all) professors teach C++ 11?

In regards to "How does this choice impact students' [...] preparedness for industry standards?", as a software engineer working in industry (now retired), I would not expect a negative ...
njuffa's user avatar
  • 518
4 votes
Accepted

How to learn to program compiled languages efficiently when coming from an interpreted language?

Your question deserves a long discussion, but I will try to narrow it down to few points. First, remember that you are dealing not just with a "compiled language" such as Java or C# (that could be ...
rg_software's user avatar
4 votes

A meaningful exercise that requires using a destructor

Create an object that creates a new file and writes in to it over several method invocations (not just one). Assure that the object has been deleted before continuing (Make the object go out of scope ...
Buffy's user avatar
  • 36k
4 votes

Is it okay to teach C++ to my 7 year old brother?

I want to tack on to Buffy's answer by focusing on one line from your question: "I want him to learn C++,Java,Html" (emphasis added). The bigger question should be "What does he want to learn?" ...
Peter's user avatar
  • 9,082
4 votes

How to teach C++ language to beginners of (BSCS) students who have no any idea about it?

While I would suggest a different language for beginners, I'll take it as given here that the students need to learn C++ and not just programming for general use. In that case, teach them Modern C++....
Buffy's user avatar
  • 36k
4 votes

Tell me a book ( or resources) for creating a good terminal based workflow (for building, debugging) for c++ based project development

Do it in two steps: There are resources for each part. Start by learning how to compile, link, run code, and launch the debugger, from the command line. Then learn how to write make files. You ...
ctrl-alt-delor's user avatar
4 votes

Students' confusion over C structure members and structure variables

Try explaining to your students the concept of a product type using a simple notion of an x,y-coordinate. We can illustrate a notion of pair of (integer) coordinates as an integer array of size 2.&...
Erik Eidt's user avatar
  • 323
4 votes
Accepted

Looking for a simple, offline, portable, lightweight IDE for C++ with a compiler and debugger

My department uses Dev-C++. It's free, simple, offline, portable, and lightweight. Windows native. Over the years the maintainer has swapped hands a number of times, it's occasionally gone a number of ...
Daniel R. Collins's user avatar
4 votes
Accepted

How to learn C++?

So, if you're simply looking to convert the knowledge you already have, web searches like C++ for C developers C++ for javascript developers C++ for python developers ... will get you up to speed. ...
Ben I.'s user avatar
  • 32.9k
4 votes

How to learn C++?

Stroustrup, Bjarne (May 2014) "Programming -- Principles and Practice Using C++" Addison-Wesley ISBN 978-0321-992789 https://stroustrup.com/programming.html 1,000 pages. It will hurt. You ...
Louis B.'s user avatar
  • 296
4 votes

Which C++ libraries and frameworks should I learn for GUI development?

That's a very long list, and as others have said, you could burn a load of time and not ever use the knowledge. Also the list is 7 years since the last update, so it's hardly current. Quite a few of ...
RichardAshAudacity's user avatar
4 votes

why programming languages does not have factorial function?

First of all, keep in mind that "language", "implementation" and "standard library" are separate concepts. Languages are implementation blueprints that may not prescribe ...
ggorlen's user avatar
  • 630
3 votes

Is learning C++ recommended for beginners?

welcome to our community ;) Is learning C++ recommended for beginners? In general, I would suggest that it is not the optimal choice for a beginner, since there are other languages out there that ...
srattigan's user avatar
  • 744
3 votes

Students' confusion over C structure members and structure variables

You are teaching a fundamentally low level language. It is intentionally close to the hardware. Initially it was intended as a high level assembly language for one of the early computers of the ...
Buffy's user avatar
  • 36k
3 votes
Accepted

Tell me a book ( or resources) for creating a good terminal based workflow (for building, debugging) for c++ based project development

For make consider O'Reilly book. It is a perfect intro. Honest to goodness. The GDB one is not so much an educational tool, it is a reference, but I doubt you'd ...
user58697's user avatar
  • 462
3 votes

A meaningful exercise that requires using a destructor

There are 2 good examples of patterns where the destuctor is a key. This way you can teach a couple of useful patterns on the way. RAII - Resource Acquisition Is Initiation Rule of 3/5/0 It's ...
Yochai Timmer's user avatar
3 votes
Accepted

Students' confusion over C structure members and structure variables

I'm not convinced that the issue is necessarily related to using a language like C, or even cognitive overflow. I think that students often need a number of examples to illustrate a concept to be able ...
Brian Tompsett - 汤莱恩's user avatar
3 votes

Students' confusion over C structure members and structure variables

@Ben said most of what I was about to write. However I have one more thing. The example is terrible. A shopping cart for a shop that sells exactly 3 things, nothing more and nothing less, and never ...
ctrl-alt-delor's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible