Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [c++]

Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

Filter by
Sorted by
Tagged with
5 votes
5 answers
4k views

Ways for beginner programmer to practice with C++ [closed]

So i just finished my first semester of college. In my intro to programming class we made a bunch of super interesting (sarcasm) console applications. Any suggestions on ways other than just messing ...
user avatar
  • 1,077
0 votes
3 answers
223 views

Optimizing XML based protocol

We have recently replaced binary based communication protocol with XML one (between browser based client and server). The implementation is almost complete, however I am looking for ways to improve ...
user avatar
  • 3,689
9 votes
3 answers
1k views

Distributing Libraries

How are libraries typically distributed? Because they have to be compiled with the same compiler under the same settings as the project using it, distributing the .dll, .lib, etc. seems impractical. ...
user avatar
  • 3,146
4 votes
4 answers
8k views

Why isn't it possible to switch between header and cpp in Visual Studio? [closed]

For the last eight years I wait for Microsoft to add the basic C++ functionality of switching back and forth between .h and .cpp files, and it keeps astonishing me it is still not supported in Visual ...
user avatar
  • 1,335
5 votes
6 answers
456 views

What are your decision critera in C++ to make something a data member or virtual method?

(Figured this was too subjective for SO, so posting here...) I have some behavior that I can implement in various ways. At least two methods are shows in the code snippet below. Presume that the ...
user avatar
  • 1,872
2 votes
2 answers
720 views

How to describe styles and approaches of C++ programming? [closed]

How can I say more than just "C++" on my resume, reports or other writings, to convey clearly what kind of C++ programming I've been doing? Are there well-defined styles of C++? ("Styles" might ...
user avatar
  • 4,373
28 votes
17 answers
76k views

What is the best C++ interview question? [closed]

If you could ask a C++ programmer one question to measure their C++ skills, what would it be? The question I think is best is: Can you call "delete this;" inside a member function? (I put this as a ...
6 votes
7 answers
648 views

Long Keywords like `function` and `namespace`

In many English-based programming languages like C++ and JavaScript, there exist long keywords like function, namespace, exception (in OCaml languages) and such. Do you think shorter keywords like ...
user avatar
  • 846
55 votes
3 answers
27k views

What is a lambda, and why would it be useful? [closed]

So far I heard about : Lambda calculus Lambda programming Lambda expressions Lambda functions Which all seems to be related to functional programming... Apparently it will be integrated into C++1x, ...
user avatar
  • 2,254
10 votes
2 answers
4k views

Most Active Open Source C# Projects?

I am looking for open source projects being done in C# that are actively looking for developers and does not mind the person coming in from a C++ background. Any pointers appreciated.
user avatar
  • 7,533
17 votes
2 answers
10k views

Bitwise-OR vs Adding Flags

I've seen others use Bitwise-OR to combine flags before: #define RUN 0x01 #define JUMP 0x02 #define SHOOT 0x04 const byte madPerson = RUN | JUMP | SHOOT; That's also the way I do it. But I've also ...
user avatar
48 votes
16 answers
21k views

Languages on a resume: Is it better to put "C/C++" or "C, C++"? [closed]

I'm graduating in a couple of weeks, and my resume (as expected) lists the languages that I've had experience with. Previously I've put "C/C++", however back then I didn't have that much experience ...
5 votes
9 answers
14k views

What are the hardest parts of the C++/C#/Java programming languages? [closed]

Just wondered what are the features of the three main programming languages which show you are an 'expert'? Please exclude 'practical' skills such as indenting. Am I right in saying for C++ the most ...
user avatar
6 votes
2 answers
606 views

Why do people confuse C-type strings and STL strings [closed]

The last week I saw at least three questions where people were confused about the differences between char * and std::string or made some related mistakes. Don't get me wrong, I don't have a problem ...
user avatar
  • 565
39 votes
6 answers
11k 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 ...
user avatar
  • 3,534
2 votes
1 answer
258 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 ...
user avatar
1 vote
1 answer
584 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 ...
user avatar
92 votes
3 answers
107k 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 ...
user avatar
16 votes
3 answers
6k 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 ...
user avatar
5 votes
5 answers
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 ...
user avatar
6 votes
7 answers
16k 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 ...
user avatar
  • 221
11 votes
10 answers
19k 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-...
user avatar
  • 1,494
45 votes
5 answers
127k 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 ...
user avatar
  • 17k
4 votes
3 answers
707 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?
user avatar
3 votes
2 answers
188 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 ...
user avatar
  • 2,045
6 votes
10 answers
3k 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 ...
user avatar
  • 1,373
25 votes
8 answers
4k 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 ...
user avatar
  • 437
12 votes
4 answers
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 *...
user avatar
24 votes
16 answers
17k views

Is it ok if I don't know C but I am good with C++? [closed]

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. However, I have a big problem. Do I need to learn C? I have ...

1
49 50 51 52
53