General C++ Programming (Page 3)

by labeeb
Recording keystroke in C++
 
I want to record keystrokes as user press a key.Problem with cin is that it will not do this after h...
[1 reply] : If you want to create a game, read this: http://www.cplusplus.com/foru... (by MiiNiPaa)
convert image to number
 
hi everybody, i want to convert image to number. any suggestions. thanks.
[9 replies] Last: Assuming by "set of numbers" you're referring to color components of i... (by Cubbi)
I need help. The parentheses of an expression.
 
EDIT: No one's responding, maybe cus of lack of documentation? #include <vector> #include <string...
[1 reply] : Just be clear, the problem isn't obtaining the parentheses. The proble... (by IndieExe)
Block Cipher (File Handling) - Error: malloc.c
 
Hi, First of all, sorry about somewhat long code (~400) lines. Relevant bits should be small. I ...
[no replies]
Filling array, not working correctly
 
Hi all. I wrote a Simon game, and wanted to save the top 10 scores. I was working right, until I dec...
[4 replies] Last: @andywestken Thanks for the explanation as to why my way was not work... (by whitenite1)
How are members accessed in AMP restricted methods?
 
Suppose I have a class "A", which has a method "void AMP_call()" that calls paralel_for_each in whic...
[9 replies] Last: Also found this: Note that capturing the “this” pointer is also ... (by ausairman)
C++ University assignment
 
Hello there. I have an assignment from my university, I am making a simple trivia application on ...
[6 replies] Last: Operator is += not =+. Also, if you want to make a GUI app, I recommen... (by Aceix)
"Global" idiom, and your opinions?
 
It's common to hear that the use of global variables is bad practice in C++. However, I've found th...
[2 replies] Last: You had almost invented singletones :) The problem with globals (aside... (by MiiNiPaa)
[Follow up question]The complicated code ever
 
_V3Signals = (_v3signal **) new char[sizeof (_pscsignal **) * (_max_v3_signals + PSC_NOMPINS)]; ...
[16 replies] Last: I know both also assign dynamic memory.But what is the diff ? The sa... (by MiiNiPaa)
Defining Classes and using them inside void main()
 
Hey guys..this is a program I developed in which we had to define a class named BOOK with the data m...
[1 reply] : from 43 to 48..the line feed was also used at many other places but t... (by Peter87)
by mrju5t
Howto loop this function?
 
#include <iostream> #include <string> #include <cstdlib> #include <algorithm> using namespace...
[2 replies] Last: You could make that easier using an iterator. More easier, using C++11... (by Aceix)
by BillH
passing class members to function in c++
 
Hi there. I have been trying to get my head around this all week with no success. I have a procedure...
[8 replies] Last: Just to let everyone know - thanks for all your advice, I have now got... (by BillH)
by Aceix
Testing C++11 lamdas
 
Hi all, i recently created a programme that checks if a string is a palindrome, using a lambda. Unf...
[1 reply] : Thanks for reading. Anyway the problem has been solved. How? isPalindr... (by Aceix)
Urgent !! please enter
 
hey guys , I am supposed to write a recursive function which find the partition of a number n ,, f...
[3 replies] Last: This is one (more or less de facto standard) way of writing the loop: ... (by JLBorges)
<string>
 
I just started as a begginer in c++ coding and i got a doubt here there is a pre-processor directiv...
[4 replies] Last: thanks L B. (by vedulak95)
How does #define _USE_MATH_DEFINES work?
 
How does #define _USE_MATH_DEFINES work? How can you just magically define it like that and mat...
[9 replies] Last: Oh thats true. Good point (by Anmol444)
Beep not working.
 
Beep function not working (I do not have administrative access). Also, I get an error of ERROR_MOD_N...
[3 replies] Last: They are newly updated, using Orwell Dev-Cpp 5.4.1 newest version as o... (by usandfriends)
Typo in my book
 
From my book: " // Can.h for Ex9_10 #pragma once #define _USE_MATH_DEFINES // For con...
[no replies]
error: expected unqualified-id before ‘.’ token
 
i get an error at this line rootset::generations.push_back(pmemSize/gen); The structure is d...
[5 replies] Last: rootset::generations AnObject; AnObject.push_back(pmemSize/gen); ... (by Daleth)
Friend Functions
 
Cbottle.h: #pragma once; class CCarton; // Forward declaration class CBottle { public: CBottle(dou...
[12 replies] Last: Can someone please help! (by Anmol444)
Pages: 12345... 84
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.