General C++ Programming (Page 4)

Templates Mangling my Mind
 
For my data-structures class, I am attempting to create a binary search tree template to be used to ...
[4 replies] Last: (this is getting ridiculous common, ¿where is the FAQ?) http://ww... (by cire)
Help With Binary Tree Template
 
When I compile the program, I get errors I've never seen before. Any help to resolve this will be ap...
[2 replies] Last: Thanks ne555 (by BinaryGeek)
by virk
passing array as argument to function?
 
how can i pass an array as an argument to the function? in getCoin() fcn, I am supposed to pass co...
[4 replies] Last: THANKS a lot Smac89 and vlad from moscow. I appreciate your time guys.... (by virk)
by Bound
Pointer to an array of pointers
 
Hey guys, I'm just trying to get a handle on the uses of pointers here. Though clearly from my error...
[4 replies] Last: That was it, thanks a ton! (by Bound)
Downcasting without copying the whole thing
 
I have a non-virtual class (VectorT) with exactly the same data structure with its derived (Vector3)...
[2 replies] Last: > You can't "convert" it to another type. But you can treat it as you ... (by ne555)
How do I use the or "||" operator with a Char type in a loop?
 
I am trying to make this loop until a valid char is entered. while ( VALID =1) { cout << "E...
[3 replies] Last: Exactly what I needed. I am taking basic C++ right now so the toupper ... (by BrianDehn)
by hvigil
How to store data from a class into a container?
 
I'm having trouble understanding on how to actually store into a container from another class. Can a...
[9 replies] Last: I'm not quite there yet , maybe in a couple of days ill get into vecot... (by hvigil)
How to check user selection(yes/no) on a Message Box
 
Hey, I have a question. How can you tell what button(yes/no) on a message box is clicked? Below is ...
[3 replies] Last: Are you sure you posted the actual code that's giving you the error? ... (by Disch)
by aj3423
how to implement a class that support both default ctor and operator=
 
#include <iostream> #include <string> using namespace std; struct create_info { string text; }; ...
[4 replies] Last: At first I thought the wnd should have default create_info even if not... (by aj3423)
Printing IEEE 754
 
I'm working on an assignment but I'm stuck. For some reason I can't get this outcome: byte order...
[1 reply] : Uh, what is the program's purpose? (by greenleaf800073)
by cnoobs
How do you set color on inputs and outputs for C++?
 
I am new to C++ and I want to learn how to set color a particular color for the users input and outp...
[2 replies] Last: 5 stars for eklavya sharma 2! (by greenleaf800073)
by Chegy
Inserting math functions from GUI
 
Hi guys, I'm new to C++, so go a bit easy on me. I have a problem with entering math functions in...
[11 replies] Last: kewl (by greenleaf800073)
by Us5
Doubts and Errors
 
Hi everyone. This is my first post - so please go a bit easy on me :P - See , i've been learning c++...
[10 replies] Last: cout << "Enter 1 for function 1, etc..."; cin >> input; switch(input)... (by greenleaf800073)
Calling method of specialized template base class in sub-class
 
class IFoo { virtual void Bar() = 0; }; class FooAbstract { virtual void Bar() {} }; te...
[5 replies] Last: Line 33 is missing a void type. Simply qualify the call to Bar by ... (by AbstractionAnon)
by Acko01
moving objects to shared memory
 
Hello, I am not so experianced with c++ myself, but I need to evaluate if a certain idea might wo...
[3 replies] Last: > Now I would like to be able to influence the some data manipulation ... (by JLBorges)
Palindrome Program
 
I have an assignment where i have to make a palindrome program. As you can see i have already done t...
[6 replies] Last: This is a duplicate of a thread that is marked as solved: http://www.c... (by JLBorges)
"undefined reference to" error when accessing a static variable inside member function
 
I am modifying a set of static variables inside of the class's member function. The static variables...
[2 replies] Last: Thanks indeed, that worked! (by DeepBlack)
pointers as parameters of vectors
 
Hi there, i wrote a following code, declared 4 char pointers as parameters of vector, the function i...
[2 replies] Last: When you pass a char pointer to the the cin >> operator it assumes the... (by Peter87)
by Zapeth
boost::asio problems with returning from io_service
 
Hello, I actually asked this a little while ago (http://www.cplusplus.com/forum/windows/89824/) and ...
[no replies]
Help
 
Sir what is the code for a program that input a name horizontal and display the name in vertical pos...
[3 replies] Last: You didn't really try. Here's some code, but this isn't a favor. If ... (by Stewbond)
Pages: 123456... 53
  Archived months: [dec2012]

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