Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
-3
votes
0answers
19 views
Passing lines from txt file to an array [closed]
Im trying to passing the values from file to an array w/o using the vectors. The values in file is like that
2 3
0 1 2 4 5
2 3 5 4
3 1 2
4 6 5 3
and array must be like that
...
2
votes
2answers
78 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 ...
-1
votes
0answers
89 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 ...
-3
votes
0answers
86 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?
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 ...
-3
votes
0answers
95 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 ...
2
votes
3answers
239 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 ...
16
votes
6answers
878 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 ...
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 ...
-2
votes
0answers
52 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
-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. ...
-4
votes
2answers
341 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 ...
-5
votes
0answers
55 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 ...
3
votes
7answers
179 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 ...
-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?
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 - ...
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.
...
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 ...
-3
votes
4answers
367 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 ...
-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 ...
-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. ...
-2
votes
2answers
143 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 ...
2
votes
3answers
228 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
231 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 ...
7
votes
6answers
714 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 ...
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
119 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 ...
-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++ ...
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 ...
0
votes
3answers
147 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 ...
0
votes
0answers
47 views
OpenGL .obj parser skews textures on model [closed]
This is a cross-post from game-dev because it seems more general to graphical programming than game development.
I have written a simple .obj parser for my OpenGL game engine that reads vertices, ...
1
vote
2answers
146 views
Best practice for creating a 'global' config class used by numerous components
I have a large project with a driver part and about 5 libraries doing various associated tasks. Many of the libraries require access to 'global' configuration data which is read from a database at ...
-1
votes
0answers
38 views
Define Windows shortcut keys in C++ [migrated]
What's the best (clean and short) way to code Windows-Wide Shortcuts Keys in C++
for example : set F12 key to launch calculator (calc.exe) in all windows shell
5
votes
5answers
522 views
Spoiled by Python convenience- and productivity-wise, spoiled by C++ speed-wise. Now unhappy with both [closed]
I'm currenetly struggling with choosing how to proceed as a programmer. I mainly programmed games and would like to continue. And for about 5 years or so I just used C++ and OpenGL, so I spent a lot ...
0
votes
0answers
76 views
What data structure is suitable for implementing dynamic huffman encoding and decoding on a piece of text?
Some pseudo code or resources will be appreciated.I was thinking if implementing it in form of a BST stored in an array. However,not all operations can be performed easily using this approach. I am ...
-3
votes
4answers
442 views
C++ or C#: Which language is Microsoft going to use in development of future Windows versions? [closed]
I heard almost all parts of Windows are written in C and C++ with some assembly. Why did Microsoft skip C#? Is there any scope for C# in the development of future Windows versions?
-1
votes
0answers
56 views
C++ Create a Cross Platform Toolchain [closed]
I'm actually a java developer and I'm currently learning C++.
Do anybody know of a way to create a cross-platform toolchain that I'll code on Windows and create binaries for Linux and Mac along with ...
10
votes
4answers
641 views
Why do some programmers categorize C, Python, C++ differently? - regarding level [duplicate]
I am taking an introductory course on python and the instructor says that python is a high level language and C and C++ are low level languages. It's just damn confusing. I thought that C, C++, ...
-1
votes
0answers
50 views
C++ Polynomial Multplication [migrated]
I'm trying to multiply two polynomials together in C++. I'd like to keep the overal structure of this code as-is if possible. I understand there may be a "faster way." Here is my code for polynomial ...
-2
votes
1answer
196 views
Is C a pre-requisite in order to learn C++ effectively? [duplicate]
I only have programming experience with high-level languages, as well as with DBMS. Now, I would like to get into C and/or C++. My question is: Is the C language a pre-requisite in order to learn C++ ...
1
vote
5answers
350 views
Is it possible in C++ to define several methods at once?
Sorry for the confusing title of this question, but I can't think of an exact way to word it. I have a very long class with hundreds of similar methods and I am trying to find a way to construct it ...
0
votes
1answer
316 views
Decrement operator difference between C++ and Java? [closed]
Please tell me why the same piece of code behaves differently in C++ and JAVA.
Ok first I implement a function to calculate the factorial of an Int RECURSIVELY
In JAVA:
int f(int x)
{
...
-1
votes
0answers
22 views
How to use system() function in c++ to open apps [migrated]
I want to know how to use system() function in c++ to open any application, like vlc, notepad or google chrome, ect. Please anyone help me in this.
0
votes
1answer
185 views
Did I answer this correctly and concisely? [closed]
By email I just answered my brother who is learning computer programming that C++ and Java are more similar than C and C++ even though C++ is nearly a superset of C. Do you agree?
AFAIK Stanley ...
-3
votes
1answer
55 views
how to Read in a list of values store it in a queue and change the order of the inputs? [closed]
How to Read in a list of values store it in a queue and change the order of the inputs?
For example, read in abc123efgh45678 and display a1b2c3d4e5f6g7h8
I know I can use queue to read in the ...
-2
votes
1answer
155 views
Do you unit-test your PODs? [closed]
do you create unit-tests for PODs (Plain Old Data Structure)? And why?
I'm interested in your opinions.
Regards
Tobias

