General C++ Programming - May 2011 (Page 18)

VC++ multiple form problem
 
Hi, I am trying to create multiple forms in vc++ Windows form application. i have created two forms and i want to navigate from form1 to form2 and also ...
[1 reply] : These are circular dependencies. You need to use forward declaration ... (by kbw)
Error : calling type `Board' like a method
 
Hi.. Class Board_type{ //This is "Board_type.cpp" file public : Board_type(void); ~Board_type(); }; Typedef struct...
[8 replies] Last: Here, we are using malloc function to allocate a memory for the class.... (by skilari)
by chaman
how void* iterate for next element
 
how void* iterate for next element #include<iostream> using namespace std; void check(void *t){ while(*(int*)t){ cout << *(int*)t << endl; ...
[1 reply] : When a void* is type casted to something, it's no longer a void. In y... (by writetonsharma)
graphic problem in c++
 
hi i am using borland c++ 5.02 for making a graphic program(new project---platform Dos standard---libraries---BGI), it works correctly in my pc (my OS is xp sp...
[1 reply] : oh i solved that. instead of DETECT, i should use PC3270HI (by Domino boy)
Intro to Structures and Classes
 
Hey, so i am having some issues with this problem i was given. I understand what they want but i dont clearly understand the syntax and format that this must be...
[2 replies] Last: I see what you mean about syntax. Labels in C++ cannot contain spaces... (by kbw)
by Shrk
Keep getting zero
 
Hey hey the answer iam am suppsoed to output is 4... but it seems no matter what i keep getting 0? any ideas? #pragma intrinsic(sqrt, pow) #include <iostr...
[9 replies] Last: Sorry I have not replied ealier. Thanks for the responds. Yes i am new... (by Shrk)
Looking for c/c++ professionals from Vietnam
 
I am Sr Ex HR . Aricent Technologies. I am crrently looking for c/c++ / embedded linux professionals for our company in HCMC Vietnam - If interested pls share c...
[no replies]
Creating program key
 
Does anyone know a good reference for how to implement a program key for software protections?
[no replies]
containment class model
 
I have modeled an aggregation of door,tire,steering wheel of a car. But i want to know how do i model the relationship of car to door as(1:2..5). class tire...
[7 replies] Last: This is perfectly an aggregation relationship. Aggregation is used in... (by writetonsharma)
c++ file holder.
 
Hi, I'm a new member to this forum and I joined because I'm having some problems finding information about some pieces of code: I was wondering how I could g...
[1 reply] : post this in windows programming forum... you need to study window pro... (by ankitsingh12)
finding distance between two nodes in binary tree
 
Hey guys I'm going to try and explain this the best I can: I have created a binary tree, it's been tested and works. I'm making a binary tree for a train sche...
[no replies]
please help me with this one
 
Write a c++ program that accepts three card values as inputs and calculates the total value of the hand and display the value of the three cards. How would I...
[2 replies] Last: # include<iostream> using namespace std; int main () { int ... (by romer123dd)
by Ryuuta
Leaderboard help.
 
I'm trying to make a leaderboard program with limited knowledge of c++ (one semester of an introductory coarse on programming and c++). I'm having trouble reme...
[2 replies] Last: Put those four lines in the body of a loop. Now add line 3: array_a =u... (by buffbill)
Exceptions (1,2)
 
Is there a base class for exceptions? If so, what is it's name? (or, more importantly, it's header's name) Also, can a new exception be defined in a Header (...
[21 replies] Last: Okay. Thank you, everyone! You have been a great help! This topic is... (by KrahkaMaster)
Problem with Hangman Code
 
I am having trouble running this Hangman code, the code is from http://xoax.net/ (i do NOT claim it to be my own in anyway), and is complete but when i compile ...
[17 replies] Last: methodos, can you please help me with my other thread, the link is bel... (by jamahoe13)
Comparison of multiple files in folder with base file
 
Hi, I've run into a bit of a snag when working with this code. The desired functions are: 1. Open a single file as a 'base file' and then cycle through all fil...
[no replies]
Can someone help me debug 1 error please.
 
Alright, so my program is ready to go, but I have one error that pops up when compiling. It compiles successfully, but this error is causing my program to crash...
[14 replies] Last: That solved it Mcqueen!! Thanks a lot guys. I owe you a few. (by N1ghtm4r3)
Mesh Data Structure
 
Do you know of any data structures out there that resemble a mesh? I kind of imagine a node that can have a dynamic/unlimited amount of child nodes. I have a...
[4 replies] Last: yes this is what I am looking for! not just adjacent though, it can b... (by da beast)
bft question
 
i got a question about the BFT function. here is my code where the cityMap is a container and visited is a vector void Map::breadthFirstTraversal(Nodes t){ ...
[4 replies] Last: if the node is a structure like struct Noce { int data; s... (by closed account zwA4jE8b)
Quick help with a Uni assignment
 
For Uni I have been asked to make a Yahtzee game in C++ following some instruction...all was going well up to a point where I have been asked to iterate a loop ...
[1 reply] : Would you first modify your post and put [cod e]code tags around you... (by LB)
May 2011 Pages: 1... 1617181920... 32
  Archived months: [apr2011] [jun2011]

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