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

Problem building cyclic libraries
 
Hi, Disclaimer: the names of the types expressed here do not have to make any sense! I am *not* having trouble compiling libraries that depend on each other, ...
[4 replies] Last: A static library is just a bunch of .objs bundled together without bei... (by helios)
$ symbol in textBox or label C++ windows form
 
Trying to get the $ symbol to appear in text box and labels before I calculate and after. Ive done it before in old projects that I cant seem to locate at th...
[2 replies] Last: I want the $ symbol to always be there in textbox or label. before I e... (by anthonyciro)
by DrFre
cl.exe default libraries
 
Hey folks I'm trying to write a managed wrapper for breakpad to use it in .NET. As I'm new to c++ I did not want to fight with visual studio and have set up my...
[5 replies] Last: I did a rebuild of breakpad and linked the libraries again. I think I ... (by DrFre)
memory order
 
//Now they are mass in my head! //Who can introduce them in more common language? //the differences? memory_order_relaxed memory_order_consume memory_o...
[1 reply] : Some context: http://en.cppreference.com/w/cpp/atomic/memory_order (by TheIdeasMan)
Class Member Initialization
 
Hey guys, I have a little question: Is there any real difference in the way you initialize class members? Does one create a larger executable or faster run-t...
[4 replies] Last: http://www.geeksforgeeks.org/when-do-we-use-initializer-list-in-c/ (by Naughty Albatross)
breadth first search & depth first search using c++
 
how to write a c++ program that: 1) requires no user input 2) traverses a binary tree using depth first search algorithm 3) traverses a binary tree using br...
[1 reply] : Hi, Well, best place is at the point where you realise this isn't a ho... (by Naughty Albatross)
Data buffer wrapper problem.
 
So I've been learning boost asio, and I wish to implement my own wrapper for data. The wrapper class: data_wrapper.h #pragma once #include <iostream> #includ...
[2 replies] Last: Thanks for the heads up cire, I'll use resize rather than reserve! Un... (by SamuelGr)
Read Binary File Records Show Only Junk Values
 
I tried to write a Program to store Info of Items in a Binary File. But except the 1st record, all other Records read thro' ShowFile() show only junk value. I h...
[10 replies] Last: As a continuation, I tried to Insert records to my file. IDK why, the ... (by Science001)
Function pointers
 
I created a map of function pointers, and now i want to take the pointer and pass it as a function parameter but i get error "operant of * must be a pointer". ...
[5 replies] Last: Good to hear :) (by Naughty Albatross)
Checking for nullpointer not working
 
My if is not checking if pointer is initialized. What am i doing wrong ? In Wt hangman tutorial files they have done it this way and for them it works. In...
[2 replies] Last: Ahaa... i see my error. On me relying too much on the Wt tutorials and... (by vastrolorde)
point of sale program
 
please help me convert this POS c program with pointer and structure. Can someone please void displayPOS(); void displayINVENTORY(); void addProduct(); vo...
[3 replies] Last: I take it you want an illustration of the use of data structures and p... (by tipaye)
Can't read String from User
 
I tried using gets(iname), std::getline(std::cin,iname) and std::cin.getline(iname,100,'\n'). But nothing seems to work. Here is the code: class store { int i...
[4 replies] Last: Glad it helped :) (by Naughty Albatross)
how overloading input and output operators?
 
i did these on my BitmapDC class: //write HBITMAP: friend std::ostream& operator << (std::ostream& lhs, BitmapDC &hBitmap) { //get hbitmap ...
[2 replies] Last: i'm sorry. but the link confused. i don't understand how to fix it :( (by Cambalinho)
What's wrong with my RemoveNode function (BST)?
 
Hi. This is the RemoveNode function: // keyNode is a pointer to the Node to delete void RemoveNodePrivate(Node* keyNode) { // CASE 1 = No children if (!ke...
[11 replies] Last: So even the search function should return a pointer by reference, sho... (by cire)
Symbolic variables
 
Hi people, the thing is that I don't know how to create a symbolic varible in c++ and work with it. For example, make the program run a process that in the e...
[6 replies] Last: See: http://www.ginac.de/tutorial/#Expressions http://www.ginac.de/tut... (by JLBorges)
Run a derived class on a template function with a cloned object
 
Hi, I am creating a game engine and I've got stuck cloning GameObjects. GameObjects contain a map of components (Component*), a vector of children (GameObject*...
[9 replies] Last: I cant use a common interface as derived components (ICloneabe) may ha... (by asterisk nullptr)
by dr86
Problem with references
 
Hello. I am updating old version of program to a new version. In old version, result of function internalField() was non-const reference, and in new program...
[7 replies] Last: I have overloaded function like you said, and I don't have this error ... (by dr86)
Error C2660 'menu': function does not take 5 arguments
 
I am developing a text based RPG game, and to make things quicker, I created a function to make a menu for the player to choose from, each option will result in...
[11 replies] Last: Thank you, megatron . I will take your advice. I think I sort of unde... (by Sylvagon)
why pure private virtual member?
 
Hi, If I declare a pure virtual member function in the private section of a class A, then how can I override it in a subclass B of A since it is inaccessible...
[2 replies] Last: http://stackoverflow.com/questions/3970279/what-is-the-point-of-a-priv... (by gedamial)
Sudoku Saving
 
Hey so I'm making a sudoku program for class and it works fine, but when I try saving it to a file and opening it again it wont work. I just need help figuring...
[12 replies] Last: Glad it helped :) (by Naughty Albatross)
July 2016 Pages: 1... 45678... 13
  Archived months: [jun2016] [aug2016]

This is an archived page. To post a new message, go to the current page.