Questions tagged [c++]
Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
2,365
questions
37
votes
6answers
10k views
Good example of complex code using TDD [closed]
What would be a good example of the use of TDD in large, real-life, complex, projects? All the examples I've seen so far are toy projects for the purpose of a book or a paper...
Can you name an ...
2
votes
1answer
245 views
How can I move a library inside a project's source tree and compiling static binaries?
How can I move a library inside a project's source tree and compiling static binaries?
I want to use a particular tool that utilizes ANCIENT binaries without upgrading it's API usage. This way I can ...
1
vote
1answer
581 views
Help me construct a list of best approaches for new C and C++ developers [closed]
Not specific code writing practices. Please also include reasoning.
My start:
use GCC or Clang
gcc because it is unchallenged in the amount of static checking it can do (both against standards and ...
76
votes
3answers
74k views
Why is Python written in C and not in C++?
In Python's tutorial one can read that Python's original implementation is in C;
On the other hand, the Python implementation, written in C, (...)
I'm very curious why was Python written in C and ...
14
votes
3answers
4k views
How long and what type of complexity would have been involved in Chris Sawyer writing most of rollercoaster tycoon in assembler?
From this question, I have another question about...
How long and what type of complexity would have been involved in Chris Sawyer writing most of rollercoaster tycoon in assembler?
In order to ...
5
votes
5answers
3k views
How do I learn linking compiling, makefile quickly? Any book recommendations? [closed]
I'm very good at programming in C++ but when it gets to linking and the other important stuffs I feel very ignorant. I want to learn allegro without wasting time. So please suggest a book or a ...
6
votes
7answers
14k views
C++ is easy once you know PHP [closed]
I was at work last week and one of our "lead developers" (who said he has programmed C++ before, but I don't believe him) was talking about C++ and how our team of developers who only know PHP would ...
11
votes
10answers
17k views
Java or C++ for university CS courses?
I'm in the throes of getting myself enrolled in school to get a CS degree. The school I am looking at actually offers both Java- and C++-based for the introductory software development courses (object-...
41
votes
5answers
121k views
What are the fundamental differences between C and C++? [closed]
Many tend to write "C/C++", as if they were the same thing. Although they share many similarities, they are clearly not the same.
But what are really the fundamental differences between C and C++? Is ...
4
votes
3answers
605 views
Do you think that storing a variable length encoding in std::string or std::wstring is OK and do you do it?
I'm kind of horrified that people actually suggest using UTF-8 inside a std::string and are OK with UTF-16 std::wstring.
Do you actually do this? Do you think that it is OK?
3
votes
2answers
185 views
Is there a valid reason to wrap built in type with your own
I am editing some c++ and all of the built in types have been wrapped in a corresponding wrapper class. All of the operators have been overloaded to do bizarre things like operator[] coded to ignore ...
6
votes
10answers
2k views
Languages to complement C++ [closed]
I primarily work in C++. My question is, for a C++ developer, what languages are beneficial to learn, from a job-profile point of view. For example, I see a lot of work combining C++ and Php these ...
25
votes
8answers
3k views
How did you become a const correctness convert? [closed]
After 15 years of C++, I've still haven't learn to love using const. I understand it's use, but I've never actually been in situation where being const correct would have avoided the problem I was ...
12
votes
4answers
2k views
If you favor “T *var”, do you ever write “T*”? [duplicate]
Possible Duplicate:
int* i; or int *i; or int * i;
Thinking about where we place our asterisks; how do those that prefer to keep the "pointerness" away from the type and with the identifier (int *...
23
votes
16answers
9k views
Is it ok if I don't know C but I am good with C++? [closed]
I have a question which I think can be best answered here.
I am pretty good with C++, good as in I am comfortable with the language, I have read Accelerated C++ and done almost all the exercises.
...