General C++ Programming - April 2010 (Page 18)

by dbaby7
Assignment
 
Hi, Im new to C++ and trying to get linked lists working but am stuck...here is what I currently have: class Flight { public: string fnum; string dcity;...
[2 replies] Last: You are also new to this site. I almost laughed. Almost. It was ver... (by tummychow)
Performing Post-Build Event
 
Hello everyone! It happens when I try to run the project. error PRJ0019: A tool returned an error code from "Performing Post-Build Event ..." Do not know ...
[7 replies] Last: Thanks. I will check the Post-Build Event, but I believe my problem is... (by dokfiler)
accessing functions
 
lets say i have an array of pointers to a list or a queue, and the list items that i insert in that list or queue are class object. So how would i go about acce...
[3 replies] Last: Ok, well it's basically the same idea, but if the queue returns a poin... (by closed account 1yR4jE8b)
Can't get instance object from singleton class.
 
Hey all, I've decided to try out the singleton method. Unfortunately I'm running into some problems. Whenever I try to get an instance of my object, I get...
[1 reply] : getInstance should be a static method. Think about it: you want to ge... (by moorecm)
by zuwaka
Coverting std::string to binary
 
I want to convert an std::string to binary, but I'm having problems. I tried using std::bitset to do it, but I can't get it to work. It may just be because I'm ...
[2 replies] Last: You can try the Boost lib . first convert the string to a number then ... (by wincry)
resize a pointer
 
hi, suppose i have a vector class like this. template <class T> class vec { private: int length; T *v; public: vec(); vec(int n); ...
[4 replies] Last: jsmith, kbw, thank you, I will look into it and implement similarly... (by pozdrav)
I want to start making a game and I need some guidance
 
Hello all. This is my first post here so allow me to say hello. I'm a Junior in college and I'd consider myself a competent programmer. I haven't used C++ in o...
[2 replies] Last: Thank you for the tips. I'll be sure to look into Boost. I was plannin... (by Dragros)
by dbaby7
Linked Lists
 
Hi, Im new to C++ and trying to get linked lists working but am stuck...here is what I currently have: class Flight { public: string fnum; string dc...
[no replies]
arrays and structs
 
i cant get the voids and the output file to work...it wont recognize anything i put in the parenthesis this is due by midnight tonight and im freaking out i a...
[2 replies] Last: ok now that works but the counter will not count correctly im get thi... (by asoko003)
How to determine if VARIANT contains an Array?
 
Hi all, I have a problem regarding VARIANTS. What I want to do is how to determine if a VARIANT contains an array. I want to do this because I am accessing a...
[no replies]
C++ vs Haskell programming language
 
ok there is a guy on facebook that said [quote=Adam Bilbrough]I'll introduce Haskell which is a functional language and quite different to other languages like...
[15 replies] Last: Yes, I know they can be Awkward. :-] (by Duthomhas)
Binary Tree
 
hi, i m havin problems with this TAD for the binary tree #ifndef __BINTREE__H__ #define __BINTREE__H__ #include <queue> #include <iostream> using names...
[1 reply] : Can you please edit your post and use the code formatting tag on the r... (by kbw)
Data Validation
 
Hey guys, i am having a huge problem checking the data i input to make sure it is correct. What i am trying to achieve is when i input a value, it will check if...
[1 reply] : Have you run this thru a debugger? You should consider doing this as ... (by kbw)
inorder code for c++
 
i should write code for a program which shoude take inorder traversal and get one of preorder or preorder traversal and output one of them iam really confused c...
[no replies]
by dspain
calculating percent problem
 
hello all! im making a text mud and having trouble working woth percents, i got a couple questions. 1) when a user uses a teleport item i want a certain p...
[2 replies] Last: 1) the constant is in the configuration file called portpcnt and is a ... (by dspain)
by vulee
Hetero Map
 
In java I have created a generic map whose key is of String type and whose types could be different based on the key value. Could I create the similar map ...
[6 replies] Last: Thanks a lot for your suggestions. boost::any/boost::variant could s... (by vulee)
by rob
Problem with my C++ program...
 
So we have to write a program dealing with if statements, functions, and loops. We have an input file that consist of 100 numbers. We are to calculate the ave...
[no replies]
how to develop an arline seating program?
 
hello,i'm yuri and i'm new here.. i have to make program about airline seating.. but up till now..we still have some problems with the program.. it's not wor...
[13 replies] Last: can anyone tell me how to make the output be like this: first class... (by yrshibuya)
Order Program With Two Files
 
Hey all. I'm having trouble developing an order program. Basically I have to compare two files, and validate that one equals the other. I have figured out how t...
[no replies]
Hard Assignment
 
"Create a class HugeInteger that uses a 40-element array of digits to store integers as large as 40 digits each. Provide member functions input, output, add, an...
[1 reply] : Remove the colon. It shouldn't be there in the first place. (by jsmith)
April 2010 Pages: 1... 1617181920... 24
  Archived months: [mar2010] [may2010]

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