Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
0
votes
3answers
966 views
how can I improve my c++ skills [duplicate]
Possible Duplicate:
Why c++? Where to start?
I consider myself a java and python coder.
For python (usually not so big project but more scripting and fast stuff) I use vim, for java I use ...
4
votes
4answers
2k views
Books about learning programming with C++ as a first language [duplicate]
Possible Duplicate:
Recommended books on C++
Is there a canonical book on learning programming with C++ as a first language?
I have toyed with Java and Python but when my laptop broke I ...
2
votes
2answers
76 views
Recompiling dll's and adding more during run time - what are my options?
I want to compile custom functions during run time based on user written scripts. I'll give a hypothetical example that should demonstrate exactly what I need to do. This is the best way for me to ...
11
votes
4answers
402 views
Is it possible to use the Intel C/C++ compiler on Linux to create object files to be linked on Windows?
Why?
Depending on your source the Intel compiler is likely or most definitely the compiler generating the fastest executables for the x86 architecture (5 to 100 % execution time improvement).
Intel ...
15
votes
6answers
845 views
A programming language that allows you to define new limits for simple types
Many languages like C++, C#, and Java allow you to create objects that represent simple types like integer or float. Using a class interface you can override operators and perform logic like checking ...
0
votes
4answers
167 views
Char and unsigned char [closed]
Where is unsigned char used in C ( please tell about some real-world examples )? Why would we need both char and unsigned char?
Char ranges from -127 to 128 ( 8-bit integer )
Unsigned Char ranges ...
0
votes
1answer
92 views
implementing asychronous udp socket in c
so far I've been trying a single server+single client udp chat application where both server and client should be able to communicate with each other freely(as in regular chat applications). for this ...
9
votes
3answers
517 views
C++ 'using': Should I use it or should I avoid it?
I realize there are subtly different semantics for some of these, because of ADL.
In general, though: Which one should I prefer (if any), and why?
(Or does it depend on the situation (e.g. inline ...
5
votes
2answers
194 views
+100
How to make support for bindings for a scripting language
Main
I'm making a scripting language using C++. I plan to use it with a simple test game editor. But I have to make a support for bindings to call game engine's nodes' methods to update positions, ...
-1
votes
0answers
88 views
Cuda based GPU programming using Java, C# or C++? [closed]
We are trying to do something using Cuda based GPU programming. However, we do not quite sure which programming language is the best to fit.
For example, is Cuda SDK only compatible with C++, or we ...
2
votes
3answers
238 views
How does a new programmer plan a code? [duplicate]
I've been learning programming on and off for the past 3 years never dedicating any meaningful amount of time until recently. Something that has confused me about programming is: How do you start ...
-3
votes
0answers
83 views
What jobs are in demand now for C++ programmers? [closed]
It seems like web and phone apps are dominating the market today. Are there any interesting native coding jobs out there that aren't too math intensive?
-3
votes
0answers
94 views
Any Cross-Platform C++ GUI toolkit that doesn't use the Signal-and-Slot model? [closed]
I am not very comfortable with the signal-and-slot system which is employed by the Qt and
GTK+ toolkits.
Can anyone suggest me any Cross-Platform C++ GUI toolkit(s) which is active and reliable and ...
-2
votes
0answers
19 views
Weird DirectX Linking Problems (CreateDXGIFactory) [closed]
I am using the tutorial at Rastertek.com to learn directx programming.
but this error keeps coming up
Error 41 error LNK2019: unresolved external symbol _CreateDXGIFactory@8 referenced in ...
1
vote
2answers
98 views
The best way of coding web system in term of performance [closed]
So far I've been using IPB and my custom scripts all coded in PHP but I am really disappointed of the long term performance of it.
I would like to move to native coding, the learning time to put into ...
3
votes
7answers
178 views
Ensuring that headers are explicitly included in CPP file
I think it's generally good practice to #include the header for any types used in a CPP file, regardless of what is already included via the HPP file. So I might #include <string> in both my HPP ...
-2
votes
0answers
49 views
How to install LLVM & Clang on windows? [closed]
How to install LLVM & Clang on windows?
There are no windows binaries on the website for windows, only linux and Mac.
http://llvm.org/releases/download.html
36
votes
3answers
5k views
Can somebody explain me what are lambda things in programming?
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 ...
-4
votes
2answers
338 views
Why is C++ preferred over C for commercial applications? [closed]
I program in C mostly. However, it is pretty obvious that many more commercial applications are done in C++.
As far as I can tell, C++ is a very complex language, with seemingly convoluted syntax and ...
1
vote
1answer
184 views
Portability: Python's C/C++ libraries/extensions vs JRuby's Java libraries
I've had some discussion with colleagues who chose to go with JRuby along the following line of argumentation:
JRuby can make use of anything that is available in Java, ergo such programs are more ...
-2
votes
0answers
36 views
Implementing network support with C++ in QtCreator [closed]
I've started using QtCreator to write and develop some code for desktop applications and now I want to include network support with it to link to REST API's with DropBox or some other stuff like that. ...
-5
votes
0answers
54 views
Virtual function in C++ [closed]
I have some doubts regarding inheritance in C++ language.
What is a virtual function?
Why does one need to define virtual functions in a class?
If I define/declare a virtual function in a base ...
-1
votes
0answers
45 views
How do I have a user cin an integer and convert it to binary so that the appropriate 0's and 1's are stored in a vector? [closed]
I'm trying to create a BinaryInteger class that mimics the way integers are stored in a computer, but which represents negative numbers in the ‘sign and magnitude’ form (i.e., the binary ...
-1
votes
1answer
119 views
How do you pronounce SFINAE (the C++ term) [closed]
SFINAE, or Substitution Failure Is Not An Error, is a C++ term which comes up quite a lot. How do you say this abbreviation in a conversation?
2
votes
4answers
126 views
Initializing derived classes in the same way
I have a class Base that has several children, say A, B, C. For testing purposes I'd like to mock those derived classes by deriving from them. So MockA derives from A, MockB derives from B and so on.
...
17
votes
7answers
7k views
Can C++ be used as a server-side web development language?
I'd like to get into web development using C++ as the "scripting language" on the server-side. My server infrastructure is *nix based, so doing web development in C++ on Azure is not applicable and ...
22
votes
8answers
5k views
Are C and/or C++ viable/practical options for web development? [duplicate]
I am proficient in C, and I am learning C++ right now. I always played with websites (HTML/CSS), and I was wondering if it would be viable/practical to create some simple web apps using C and/or C++.
...
6
votes
2answers
161 views
Would Task-based programming in C++ require new language standard features?
So I saw this video on Youtube with all these C++ masters on GoingNative 2012 : Interactive panel where everybody could ask the questions.
This is the video I was talking about: GoingNative 2012 - ...
40
votes
13answers
4k views
How to find a programming mentor? [closed]
I decided to learn programming. I've been reading SO for few days, and I think I will start with C++, as I read some articles. I am aware of loops, arrays, program logic and objects a little and I ...
43
votes
12answers
4k views
Did the developers of Java consciously abandon RAII?
As a long-time C# programmer, I have recently come to learn more about the advantages of Resource Acquisition Is Initialization (RAII). In particular, I have discovered that the C# idiom:
using (var ...
-3
votes
4answers
362 views
speed/performance of image processing python vs java vs c [closed]
I have a project in which I take a handful of images and coordinates, and combine them all into a single image based on those coordinates. (so not really image processing, just image ...
8
votes
2answers
760 views
Monitoring C++ applications
We're implementing a new centralized monitoring solution (Zenoss). Incorporating servers, networking, and Java programs is straightforward with SNMP and JMX.
The question, however, is what are the ...
-1
votes
0answers
31 views
How do you convert a CSV file into a 2D array in Java or C++ [migrated]
My question title didn't fully outline my question. I have a text file that has many lines of data with each line in the following format:
a, date, b, c, d, Username, e, Description
a,b,c,d, and e ...
0
votes
2answers
193 views
How to find local maxima in matrices?
I need to develop an algorithm for finding all the local maxima in a two-dimensional array: how to search for local maxima in the the most efficient way? Are there algorithms about it?
Moreover, the ...
-3
votes
0answers
38 views
LEDA library(C++ library) setup linux [closed]
I want to set up LEDA library in my system.
I have downloaded LEDA library from the following link
http://www.algorithmic-solutions.info/free/d5.php
Instruction given in read me file
2. ...
7
votes
6answers
713 views
Why are constructors not inherited?
I am confused as to what the problems could be if a constructor was inherited from a base class. Cpp Primer Plus says,
Constructors are different from other class methods in that they
create ...
-2
votes
2answers
142 views
Why do people tend to gravitate to older versions of visual studio? [closed]
I'm starting to pick up all of the perks of C++11, and being a 2010 user i'm considering installing 2012 instead for better c++11 support. But why is it that 2012 doesn't seem as popular as 2010? Am i ...
-3
votes
0answers
56 views
I want to check if the process is open or not? [closed]
I want from that function to check if the process is open or not but it give me error I use Qt and c++ :
bool matchProcessName( DWORD processID, std::string processName)
{
TCHAR ...
6
votes
6answers
1k views
What is your opinion of C++ Frequently Questioned Answers? [closed]
Do you think that the criticisms in Frequently Questioned Answers are accurate?
2
votes
3answers
227 views
Programming Style in Large Scale C++ Applications
Recently I've been browsing source code of large applications written in C++ to learn a bit but I couldn't help but notice that most if not all use a lot of IFDEFs and class-less functions (where they ...
-1
votes
2answers
226 views
How to run C++ code in browser using asm.js?
An asm.js application is very fast (near native C++ speed): http://kripken.github.io/mloc_emscripten_talk/micro4b.png
But how is it possible to write one in C++, convert it to LLVM code, then do some ...
10
votes
10answers
3k 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 ...
23
votes
8answers
3k views
Is the algorithm more important than the programming language?
During the current (2013) Google Code Jam contest, there was a problem that took C++ and Java people 200+ lines of code as compared to Python people that solved the same problem only using 40 lines of ...
12
votes
16answers
5k views
Why is C++ often the first language taught in college? [closed]
My school starts the computer science curriculum with C++ programming courses, meaning this is the first language that many of the students learn.
I've seen that many people dislike C++, and I've ...
3
votes
1answer
144 views
Arithmetic coding issue
Since a few days I am fighting my way through implementing arithmetic coding. I found a really great source of information which made me understand how it should work. Long story short, it implements ...
0
votes
1answer
118 views
Qt solutions have been re-licensed, can I use the src directly now
I have a commercial application that uses a Qt Solutions component. Until recently, this component was licensed under the LGPL license, so I was forced to use the component in the form of a shared ...
1
vote
2answers
168 views
Statistics collection engine for C++ systems
We have a research project with idea->prototype->statistics development cycle.
Anyway, our final product is a prototype, so the statistics collection suite is
not used persistently. Supposing I have ...
-4
votes
0answers
56 views
Photo facial detection + blurring of faces software development [closed]
So I am doing a little start up with a few other people. Our project requires facial detection + blurring of faces in photos. We are currently using cloudinary but their facial blurring is not good at ...
15
votes
5answers
2k views
Why is there no 'finally' construct in C++?
Exception handling in C++ is limited to try/throw/catch. Unlike Object Pascal, Java, C# and Python, even in C++ 11, the finally construct has not been implemented.
I have seen an awful lot of C++ ...
0
votes
3answers
143 views
Two-Dimensional vector in C++ – inefficient with dynamic-sized sub vectors?
I know that std::vector uses a contiguous block of memory, but I often see people use vectors of vectors, even when they modify the number of elements in these vectors contained within an outer ...
