Beginners - December 2008 (Page 16)

linked list with class in multiple files
 
I need to get the size of a song into a linked list of classes. here is my code...I am getting an error that says getsize is undeclared??? and I don't know why...
[8 replies] Last: I think you are in my class. Did you finish prog 5? I still have not... (by jf1253)
Craps game
 
I'm trying to get the game below to work with 2 players. It's setup the way I need it (even the entering the numbers for the die instead of using a rand functio...
[5 replies] Last: That sucks :/ Anyway, I was thinking of something like this (you ca... (by firedraco)
My code... it's dead!
 
I am trying to write a program based on the Euclidean Algorithm that outputs the numbers that divide into the first number, but not the second, and the GCD of b...
[4 replies] Last: It would have to be some sort of "for" or "while" loop, right? Hm. I... (by Monte Cristo)
by roblf
How to have classes reference each other
 
My project currently does not build, and I believe the reason is this: Class A has a local variable which is a pointer to Class B. Naturally I must #include...
[1 reply] : Your assessment of the problem is correct, however you don't have to... (by jsmith)
Small question on displaying ints
 
Say I have the user input a zipcode, and it turns out to be something like 00020. And then I want to display it to the user. How do I have it so that it display...
[2 replies] Last: cout << setw( 5 ) << setfill( '0' ) << zipcode; (by jsmith)
reading a file into an array
 
Hi, I am new to this. I am trying to create a c++ program that can read in numbers from a file. my file looks like this. 3 4 5 6 0 4 5 9 8 1 I am ...
[2 replies] Last: I think is best if you don't use ins.get(ch) but ins.peek() in the... (by Bazzy)
generic Map question
 
I need help with a generic Map that supports the insert and lookup operations. The implementation will store a hash table of pairs (key, definition). You will l...
[4 replies] Last: Although the sequence STL containers such as set, map, multiset, and m... (by jsmith)
Using "cin" to fill a dynamic array not working...
 
Greetings wise ones and fellow C++ noobs alike. I am writing a program (yes indeed.. for a class) that will read an arbitrary number of nonnegative integer...
[3 replies] Last: http://www.cplusplus.com/forum/articles/6046/ (by Zaita)
Book Sellers program
 
Need some help with our source code. Can't figure out why our functions don't work. Can someone please give 2 non-CS majors a hand? Any help would be appreciate...
[8 replies] Last: I think you need to reconsider your programs design at this point. Th... (by Return 0)
output exe keeps crashing
 
after writing the following code it compiles fine but then when i work through the program it crashes. when i try to debug line by line it seems to crash when i...
[2 replies] Last: thanks for the help have got it now, just changeed for(y=0;y,deli... (by fran101)
Reading Data File into a 2D Array
 
Hey everyone, I'm new to this site but I'm fed up with an assignment and I need some assistance. I need to read a data file into a 2 dimensional array, and I...
[2 replies] Last: A two dimensional array simply stores one value into a position, its n... (by Umz)
How to update gameboard and player turns...
 
Ok I really need help on this. Im a beginner in C++. I have been assigned the task of creating a gameboard that has 3 columns and 5 rows. Each row consist of 1 ...
[1 reply] : I'm not sure why using arrays would make it harder for you, but with y... (by Umz)
point next object in a file
 
Hello everybody! I am here to ask you some help one more time.I have a file woch contains string.This string is "separated" in substrings which represent an ob...
[6 replies] Last: Ok,I ve got it.Thanks a lot bazzy (by DarkFire21)
by mason
how to use A game engine
 
how do I use A game engine? I got one but don know how to use it.
[5 replies] Last: Hahaha nice (by Mythios)
multiple inFiles using arrays..
 
Well here is my problem. I have a program that needs to take data in from 2 files and put them into seperate arrays. Everything works fine except the second fil...
[1 reply] : Nevermind, I have figured it out. I was only using 1 ifstream var, I n... (by kaptin87)
simple array prob.
 
hi i am tryin to teach myself c++ there arent any classes offered at my school. i am stumped on how to get the right output for this program. Your supposed ...
[2 replies] Last: ug so it was that simple! i was just confusing myself i guess. Than... (by appleCORE)
Wide Area Network (WAN)
 
Hi everyone, I'm was learning about sockets and winsock and I figured why not make a chat program, since most tutorials were saying it was excellent practice, a...
[11 replies] Last: Thanks all for your replies. The tutorial I was reading was kinda t... (by Legend28469)
by Novice
What did I do wrong??
 
Hey Guys, What is wrong with this simple code? #include <iostream> #include <iomanip> using namespace std; int main() { int firstInitial; int s...
[3 replies] Last: http://www.cplusplus.com/forum/articles/6046/ Have a read through t... (by Zaita)
Where must I begin here?
 
Let me first explain what I am trying to do. I need to be able to go into a microsoft word document and have a program write into a specific blank what I tell i...
[5 replies] Last: Duoas, thankyou for your reply. Making a simple editable macro does se... (by Albireo)
by mgph
to get negative number from cin.peek() funtion
 
Hi, I'm having this problem. Scenario: The user enters a prefix form of numbers and I have to send back the result with postfix form. The result is ok bu...
[3 replies] Last: -3 + -3 = -6 Becomes 0 - 3 + 0 - 3 = -6 (by Zaita)
December 2008 Pages: 1... 14151617
  Archived months: [nov2008] [jan2009]

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