General C++ Programming - October 2009 (Page 3)

Dice Rolling simulator
 
I am working on a dice rolling simulator for school that wants program to simulate rolling of 2 dice, use rand roll fist die and second die, sum of both dice s...
[2 replies] Last: 1.) Your array only goes from 0-11, not 1-12, so you are accessing an ... (by firedraco)
Sending SMS msgs from microcontroller
 
i'm doing a project which connects a microcontroller to a gsm module. Most of the code is done but @ the ending part i have to press [CTRL+Z] to send out the ...
[1 reply] : What makes this a General C++ Programming problem? (by PanGalactic)
by Alan
Problem with virtual classes.
 
I have classes that look like this (simplified) class Object { public: int width, height; virtual void draw() {} }; class Button : public O...
[2 replies] Last: thanks. (by Alan)
refining data structures
 
I'm relativlely inexperienced with C/C++, just a bit of dabbling now and then. I've written a program that helps me deal with data duplication in a large sto...
[4 replies] Last: Excellent, I'll give that a go. Thanks for the help (by iwasinnamuknow)
by jrohde
Overloaded base class methods in derived class
 
Hello all, In a derived class, if you create a function with the same name as one in the base class, even with a different argument type, is the base class f...
[4 replies] Last: Some info on this (doesn't really answer question though): http://w... (by jsmith)
sort vector of objects
 
I am trying to sort a vector list of objects of type stockType. Sorting with the following does not get me the desired result, not sure what it is sorting on (i...
[5 replies] Last: By the way, there is a container called std::list. I'd be careful abo... (by kempofighter)
Automatic object creation?
 
Okay, so I need to have a program setup so that people can enter in a user's first name and last name, hours and salary. They need to be able to keep entering ...
[3 replies] Last: For example: #include <iostream> #include <vector> //for vectors ... (by firedraco)
no match for operator?
 
Im getting an error in my main part of my program that i need help with. 10 no match for 'operator<<' in 'std::cout << c' main code: #include "LList....
[2 replies] Last: thanks dude (by kakashi316)
dereferencing a 2D dynamic array.
 
Dear Forum, I have got stuck on this for some time. I am creating a 2D dynamic float array and want to store some values there. I am having problems to access ...
[5 replies] Last: Thanks!. Please mark the topic as solved. That will help other users w... (by JRevor)
go to line?
 
is there such a thing as "go to line x of the code" in c++. I mean.. I want to ask the person at the end if they want to do the whole process all over again fo...
[3 replies] Last: It's said to try and avoid the goto feature. Although it can be extrem... (by closed account S6k9GNh0)
Outputting new lines for each 10
 
The user is asked to type in a character and a number. The character will then be printed out that many times, but only 10 characters per line. If first they ty...
[4 replies] Last: Tested and it works, please study it!! YOU MUST LEARN FROM THIS: ... (by mbittel12)
Cannot open header file
 
Hi all, I am trying to build a project in VC++, but most of the time I keep getting the following error: Cannot open include file: 'xyz.h': No such file o...
[2 replies] Last: Projects are tricky, you probably have the header file saved somewhere... (by mbittel12)
unexpected end of file
 
i got an error call unexpected end of file. And i declare an object to one of my class one ? anyone knows what is the problem ?
[4 replies] Last: bool StaffMenu() { system ("CLS"); int j; cout<<"**********... (by nsw1216)
loops
 
I'm very very new so I'm sorry if this is an obvious question. I'm writing a function trying to find gibberish words(ones that don't have vowels) but I don't k...
[2 replies] Last: What dose "string e" include? Just one word or some words? If the "st... (by player6)
by nikman
polymorphism
 
i am writing this code which involves an eatery type class and 2 derived classes snackcart and restaurant. how can i implement polymorphism in this? i want to...
[6 replies] Last: ok thank you :) (by nikman)
Messing around with Sound.
 
Hello, I'm trying to start up a little project which involves dealing with sound and other applications. Could anyone give me some recommend some good sound...
[1 reply] : Check this out maybe http://msdn.microsoft.com/en-us/library/bb31866... (by Alan)
Array or Vector Information
 
Hello, I am trying to make a small application that will allow me to input a username to populate fields in a file I am creating. The problem that I am having...
[7 replies] Last: I'm confused. When I moved the open outside of the do loop and elimin... (by jsmith)
C++ list
 
Hi all, I am playing around with list and I figure out how to merge two lists and all. But I have no idea how can I integrate one list onto another. For exam...
[6 replies] Last: std::set<> is a container that does not allow you to insert duplicates... (by jsmith)
by DavidB
Questions on programming
 
Hi everyone, I have this question I need to answer, pls I need to write a program that will do : 1- the program will ask you to enter 2 numbers then it...
[10 replies] Last: http://www.cplusplus.com/reference/algorithm/max/ (by Bazzy)
by hsash
convert cstring array to int array
 
forum, i have been working on this for quite sometime with different codes but i still cant convert an array of cstring values to array on integer values. ...
[4 replies] Last: With C you can use sscanf http://www.cplusplus.com/articles/numb_to... (by Bazzy)
October 2009 Pages: 12345... 17
  Archived months: [sep2009] [nov2009]

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