General C++ Programming - September 2013 (Page 17)

Overloaded Operator function in main
 
I don't exactly know how to test my == friend function in my main. Any help would be appreciated. Here is my .h file: #include<iostream> using namespace...
[3 replies] Last: Thank you for everyones input it helped alot Cheers. (by dmkavanaugh1s)
theater reservation
 
[1 reply] : Did you create the file? (by Zhuge)
Using a map against defined input
 
What I want to do is have a defined string as the input and use that to run it against the keys, so I can pull out the values. I have some functions beneath for...
[6 replies] Last: @JLBorges, Thank you, I used the basis of your code and got everything... (by closed account GL1Rko23)
SFML 2.0 changing alpha
 
I want to change the alpha of a sprite without changing any other colours do you know how to if it can be done?
[4 replies] Last: Shit. I read it wrong, getting late where I'm at and my brain is not ... (by closed account 1yR4jE8b)
by Cinolt
Inheritance info lost in container?
 
Code mostly speaks for itself: #include <list> #include <iostream> using namespace std; struct mybase{ virtual void proc(){ cout << "I'm mybase" <...
[8 replies] Last: Then keskiverto's code snippet would work fine. Raw pointers only res... (by Daleth)
perfect number problem
 
write a program asks the user for a positive integer value and then prints out all perfect numbers from 1 to that positive integer. I have been trying for some...
[4 replies] Last: Nevermind. figured it out. Thanks anyway. (by kashif1)
Destructor is called after copy
 
Whenever my copy constructor is called, my destructor destroys is immediately after. My copy constructor CS1CStudent::CS1CStudent(const CS1CStudent& othe...
[1 reply] : The copy constructor is called twice, once when you pass an object by... (by cire)
User Input Set Difference w/ Characters
 
I'm looking to create a program that takes a set of 10 user input characters(could be numbers, letters, symbols) in two sets and gives me the difference. Exa...
[no replies]
Fields
 
Dear citizens of the world, Question: How can we write functions to access various fields? Example: A phone number -- it has an area code, exchange & su...
[5 replies] Last: Coder777 -- Figured to create a class. Thanks! :) (by closed account S3TkoG1T)
Html conversion program
 
Hello gurus, i have a program that converts document files to html , however there's a very strange issue with the program, it is only converting files that i o...
[3 replies] Last: try converting a doc file(say test.doc) to html, it would create html... (by helios)
by maniac
Headers
 
Hi guys! I want to use two header files in my program. Here is exactly what I want to do. -In the first header I have a binary tree and a structure. -In th...
[5 replies] Last: Thanks @andywestken, I will look more careful to the header guards :) (by maniac)
Polymorphism method issues
 
I have an abstract class called "Element" and in another class I have a variable std::vector<Element> elements; and a method void MyClass::addElement(Elem...
[2 replies] Last: To be consistent with the signature of your method MyClass::addElement... (by andywestken)
Finding nth number of a sequence.
 
Hi, I have to write a program to find the nth number of the Ulam numbers. It's a bit complicated to explain what an Ulam number is but Wolfram explains i...
[4 replies] Last: I don't there's much more we can say to help. Perhaps if he had done h... (by Duthomhas)
Point Class Doubt
 
Hello everybody, I m currently taking the object oriented C++ class, and i m involved in my first project, this is so far what I have, I would appreciate any he...
[3 replies] Last: First a coding style comment. Variables should have meaningful names.... (by doug4)
having trouble with an if else statement
 
In my computer science I class I am having trouble making my program make decisions, in this project, the program has to decide whether the user is male or fema...
[2 replies] Last: http://www.cplusplus.com/articles/z13hAqkS/ (by SamuelAdams)
by moreme
I dont know the error for the code
 
Hey Guys, I tried to develop a simple Program which finds out a number is prime or composite, but the program always return composite, I dont know what is the ...
[8 replies] Last: http://www.cplusplus.com/articles/z13hAqkS/ (by SamuelAdams)
inserting an image to display in output
 
HI guys.. plss help me.. :( how to insert an image to display in output on c++..plsss help me:(
[3 replies] Last: I would agree with Duoas. Download SFML and start learning how to use ... (by Mats)
error LNK2019 HELP!
 
I know there are a few posts about this error but I've looked at them and haven't been able to solve my case, link to project: https://www.dropbox.com/s/mhh3...
[11 replies] Last: You're welcome. I diddn't realize you couldn't realize you can't cal... (by norm b)
8. Total Purchase
 
Hello, this is tetricsteel. I am posting this forum to see if anyone can help me in reguards of this program I have ran and successfully executed. However I wa...
[3 replies] Last: The output rounds the last digit. So if you have 67.57639 it will get ... (by Duthomhas)
how can i made a Drop down list in SFML ?
 
how can i made a Drop down list in SFML ? Please help me , this drop down list contains names of different animals , i need a code ! Please
[10 replies] Last: #include <SFML/window.hpp> #include <SFML/system.hpp> #include <SFM... (by Luke Stones)
September 2013 Pages: 1... 1516171819... 36
  Archived months: [aug2013] [oct2013]

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