General C++ Programming - June 2016 (Page 6)

Obtaining the value of a preprocessor constant at compile time??
I have a preprocessor constant BOOST_MSVC and I want to print its value as I compile the code.. How can I do this? It could be something like: #error BOOS...
Jun 17, 2016 at 2:41am
[1 reply] : See: http://stackoverflow.com/questions/12637392/c-preprocessor-expand... (by JLBorges)
Is data hiding effective in C++?
Hi all, In my python class yesterday we were covering classes and how "__" is used before a variable to make it 'private' - in a VERY loose sense - and my pr...
Jun 16, 2016 at 11:57pm
[11 replies] Last: Thank all of you for the insight! Python is the second language I am f... (by edge6768)
MouseEventArgs unidentified problem
so, i'm developing a game for my programming class in college. there's a fragment of my code that keeps getting an error although there is no error identified b...
Jun 16, 2016 at 9:18pm
[2 replies] Last: thank you so much thomas, i knew the solution was something like that ... (by berfomet96)
Error Templating Two Classes
Hello all, I am trying to impliment my first binary tree and I am having some issues. The exact error I am getting from visual studios is Error C2143...
Jun 16, 2016 at 8:12pm
[2 replies] Last: That worked, now I have runtime errors I have to debug :). (by slavano)
Complexity of Function
I am a bit confused about the Big-O complexity of this function: void permute (int a , int n) { bool* used = new bool ;//O(1) fill (used, used+n, false);/...
Jun 16, 2016 at 8:09pm
[4 replies] Last: I respectfully request that people stop responding to CSundergrad's po... (by AbsentMindedProf)
by Shafat
if command help
Question: The following code is for calculation quadratic equation. after putting values of a,b and c it prints as ax^2 + bx + C so I want to include if comman...
Jun 16, 2016 at 6:00pm
[2 replies] Last: Thanks allot bro!! Really helped me! :) (by Shafat)
by ORF
Intro + Critical section: mutex or coroutine?
Hello First of all, thank you for all the knowledge of this web&forum; I've learnt a lot, and I hope to learn more here. I've just started with Boost libr...
Jun 16, 2016 at 4:15pm
[1 reply] : That's like asking if functions are better than variables. They do dif... (by helios)
array problems
.
Jun 16, 2016 at 3:08pm
[2 replies] Last: sorry i am new to here. (by Haversine)
MySql or other database libraries ideal for my problem?
Hello there. So, I am playing around a bit with 3D objects on openGL and parsing then and all, and I got a bit of a situation. I just need to know if MySql is t...
Jun 16, 2016 at 1:11pm
[4 replies] Last: http://www.boost.org/doc/libs/1_59_0/libs/bimap/doc/html/boost_bimap/o... (by closed account 48T7M4Gy)
Help with ofstream
So i met this problem. When i write an ofstream in more than 1 function, my results file "DD.txt" only shows the last ofstream that program did , which is "6". ...
Jun 16, 2016 at 10:18am
[8 replies] Last: @chervil Ah yes, my bad :) Cheers! (by Guessit)
reading a file in alphabetical order
#include <iostream> #include <string> #include <fstream> // to read file #include <algorithm> // to use sort using namespace std; const int SIZE = 100; st...
Jun 16, 2016 at 1:00am
[6 replies] Last: what does the push_back do It appends a movie to the vector. http:... (by AbstractionAnon)
by helios
Threading performance
I have a pipeline of sources, sinks, and filters that looks like source -> filter -> ... -> filter -> sink The sources and sinks are usually files, but they m...
Jun 15, 2016 at 10:09pm
[2 replies] Last: Yeah, I thought as much. I don't pin the threads to a CPU nor the fibe... (by helios)
CCC J5 Help
Hi everyone, I was wondering if anyone could take a look at my code for the Canadian Computer Contest! Im a starting programmer and its my first time taking on ...
Jun 15, 2016 at 7:30pm
[2 replies] Last: Uhh.. Is there a problem @kemort? I'm doing the CCC challenge and I've... (by Flashx2000)
Please help me with a program
Hi can anyone tell me how to do a program that whenever i press '2' then immidietly starts and press 2 unlimited times after x miliseconds each time, and when i...
Jun 15, 2016 at 6:30pm
[5 replies] Last: ok thanks and sorry :/ (by magas29)
by Roson
Background Color keeps changing
I'm making a program where one can move a circle using w/a/s/d (without 'gravity'). Initially, the rectangle (the boundary) comes along with the circle but as s...
Jun 15, 2016 at 4:47pm
[1 reply] : It should be like this: HDC hDC; hDC=GetWindowDC(this->Handle); ... (by skaa)
reference question
Hi, Is this int& getLargestElement(int *array, int length); the same as this: int * getLargestElement(int * &x_array, int &length) ...
Jun 15, 2016 at 3:31pm
[7 replies] Last: Thank you (by technologist)
Need Assistance Understanding a Vulnerability Issue
I would appreciate some assistance in understanding a C++ issue. I'm taking a course in CyberSecurity that relies on C++ for its examples. My background is Dot-...
Jun 15, 2016 at 12:08pm
[10 replies] Last: strncat() writes a null character at the end. Oop! Yep, I was think... (by Duthomhas)
by Vabi
random number generation
Hi I have developed a new program array of 10 number and I want to choose any one out of them randomly. How can I do that?
Jun 15, 2016 at 12:06pm
[2 replies] Last: First, you need a PRNG. http://www.cplusplus.com/faq/beginners/random-... (by Duthomhas)
Menu Auth
Hello i need Help To Define a Code For My X360 GTA V Mod Menu, The Code to define is this: AuthRequest req And AuthResponse resp The Full Code Here: ...
Jun 15, 2016 at 9:56am
[no replies]
Help Whit This Code
Hello I Have a Problen Whit The Followin Code: http://pastebin.com/kCK7THc9 (I Posted On PasteBin Because Over length) This Sould Me An Error Code: 1>D...
Jun 15, 2016 at 9:38am
[4 replies] Last: Thanks (by ireeneromero)
June 2016 Pages: 1... 45678... 14
  Archived months: [may2016] [jul2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.