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...
[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 ...
[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, heigh...
[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 pro...
[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 cla...
[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 ...
[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 nam...
[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 'opera...
[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...
[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 th...
[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 m...
[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...
[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 ...
[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 fin...
[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 res...
[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 applicati...
[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 f...
[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...
[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...
[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 conve...
[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.