General C++ Programming - November 2011 (Page 10)

Interdependent Objects
 
I am writing a flowchart simulator and have the classes LinkCell and PassCell. The problem is when the flowchart should loop in a condition. I first tried t...
[7 replies] Last: really why so complicated design .. as you are using composition and a... (by bluecoder)
What is wrong ?
 
int x=10,y=5; (++y) = (++x); The compiler show the error - "Lvalue Required".Why so ? Please illuminate me about this. Further can you tell me the exact...
[7 replies] Last: Oh right, I didn't realize "modern" meant "c++11". Thanks for the expl... (by bbgst)
Help if you would like.
 
I'm 13 so please don't spam me i'm just trying to learn. I'm wanting to make a multiplayer card game with diff servers and i don't know were to start my comp...
[8 replies] Last: Thankyou for all the help everything is working fine now. (by joshrocks)
member function with two dimensional array
 
What does it mean when it says The class should also have a numcars member function that uses two-dimensional array to display the numbers as horizontal bar...
[2 replies] Last: ok it has to be private ? and what are the numbers 5 and 100 Correcte... (by qwertyasdfgh)
Private intermediate inheritance
 
I've been working on a my own version of a graphic framework program and I've run into a problem with inheritance. Every interesting class is of type "Drawab...
[1 reply] : "Button is Drawable and is implemented by Label" is translated to ... (by Cubbi)
by Phiru
How to get Thread ID?
 
hi. I want to get a thread ID of a process. All I know is HANDLE of a process. Can I get thread Id by using the HANDLE?? For Instance, run "Notepad" and get ...
[1 reply] : So you have the Process ID. Use the win32 toolhelp lib to enumerate th... (by sirama)
Problem in inorder traversal in binary search tree ...?
 
void inorder(struct node *r) { if(r!=NULL) { inorder(r->left); printf("\t %d",r->data); inorder(r->right); } } ...
[1 reply] : It should be like this. inorder(struct node *r) { if(r->left !=... (by Rishi Rai)
Getting the time: C++, NOT 'C'
 
I did a search and found nothing. I could only find the C way of doing it. Unfortunately, i program C++, so my question is how do i get my program to get the ...
[10 replies] Last: Catfish, that's the reason I use boost.date_time for serious jobs, boo... (by Cubbi)
i need complete program for following problem
 
Problem : Starting in the bottom left corner of a n×n grid, print all the paths to the bottom right corner. Paths should follow following rules- 1. You can o...
[3 replies] Last: No. (by firedraco)
my programm is acting up
 
here is my code: #include <cstdlib> #include <iostream> #include <windows.h> using namespace std; //MAP char Map = { "###################", ...
[1 reply] : This doesn't look right: for (int y = 0; y , 10; y++) Should it be ... (by Peter87)
invalid operands of types ....
 
Hello, I'm getting the following error on line 39 with my code but I really don't see what's wrong :(. error: invalid operands of types 'double*' and 'double...
[2 replies] Last: Of course! Thank you very much! (by Marioqwe)
Getting each number in an integer
 
Hi, how would I go about getting 1,3, and 7 in an array of nums from 137? Cheers, George
[1 reply] : Remember to use your remainder ( % ) and integer divison ( / ) operato... (by Duthomhas)
Callback to a non-static C++ Member Function
 
Hey, I'm trying to make a callback to a non static C++ member function in a class I made. The callback function is not designed by me. Only solutions I saw o...
[4 replies] Last: What is the callback function? I presume you are talking about the GLU... (by Duthomhas)
Creating and deleting objects
 
I have a function that is called every 16ms. In it I would like it to simulate aircraft entering and exiting an area of interest. Every aircraft is represented...
[4 replies] Last: So something like this would be standard practice? class aircraft {... (by Stewbond)
How do I make a chat window in C++ 2010?
 
Hi, I would like to make a chat window in C++ 2010, so that you can type all you want,and when you press enter, it will send it, but first I would like the Mess...
[1 reply] : Here's all my code so far: #pragma once namespace Chat { usi... (by Arjun0728)
Too few arguments to function
 
I just created this void and wanted to use it in my int main (). But it gives the following error: too few arguments to function How can i resolve this? M...
[2 replies] Last: this might have been a mistype but you can't use that in int main(). Y... (by Aramil of Elixia)
database
 
I need to create a database that will store data such as ID's and serials. Id like to stay away from things like sqlite if possible. Also I do not want to save ...
[3 replies] Last: You might also want to look at containers: std::vector http://cpluspl... (by Galik)
How do frameservers work at the code level?
 
I downloaded some source code for AVISynth but I can't understand it. So how do I write my own framserver? Thanks
[no replies]
Need efficient way to use map to store multiple values against one key
 
Hi All, I want to store multiple values against a key. Once stored I may need to search or sort the map based on the values. I want to know the efficient way...
[1 reply] : To store multiple values against one key you would do struct Val{ ... (by hamsterman)
Help with declaring get
 
Hello everyone this is my first forum post and i have a question for all of you. I have beenlearning c++ along with flash html and c# for a little over three mo...
[6 replies] Last: when i use this program that you sent me "bluecoder" it highlights #i... (by George R)
November 2011 Pages: 1... 89101112... 47
  Archived months: [oct2011] [dec2011]

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