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 ...
user avatar
  • 211
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 ...
user avatar
  • 31.5k
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 ...
user avatar
  • 31.5k
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 ...
user avatar
  • 31.5k
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 ...
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 ...
user avatar
  • 31.5k
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 ...
user avatar
  • 34.9k
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 ...
user avatar
  • 519
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, ...
user avatar
  • 51
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 ...
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 ...
user avatar
  • 34.9k
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?" ...
user avatar
  • 9,032
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++....
user avatar
  • 34.9k
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 ...
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.&...
user avatar
  • 303
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 ...
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. ...
user avatar
  • 31.5k
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 ...
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 ...
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 ...
user avatar
  • 320
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 ...
user avatar
  • 714
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 ...
user avatar
  • 34.9k
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 ...
user avatar
  • 442
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 ...
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 ...
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 ...
user avatar
3 votes

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

Your student/staff ratio is pretty unfavorable. This makes everything difficult. If you had a few more TAs or could find the schedule time, I'd make one of the TAs the person to handle all such ...
user avatar
  • 34.9k
3 votes

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

As early as possible in the course, and again when appropriate examples arise, you should "round up the usual suspects." (It's a Dick Tracy reference, but that does not really help.) You could ...
user avatar
3 votes

Teach smart pointers to beginners with no knowlege of OOP or templates

I hate giving advice like this, but my honest advice here would be not to do so. Or, at least, don't do it without consulting with your colleagues first. Students (and your fellow teachers in future ...
user avatar
  • 31.5k

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