Beginners - October 2011 (Page 46)

Clarification on the ampersand...
 
So I understand the idea of the "&". But I have some applications were I wanted to make sure I understand the effect in specific situations. First, I will gi...
[5 replies] Last: It's returning a const reference. Usually the operator = is overload... (by Mathhead200)
default argument vs function overloading
 
how can the effect of default argument be alternatively achieved by function overloading?
[1 reply] : check these links.. http://www.cplusplus.com/forum/windows/4633/ http:... (by Chathu)
Class help for the "most dangerous lead" in Soccer...
 
In soccer, 2-0 is often called by sports pundits to be the most dangerous lead, i.e. the lead most susceptible to comebacks. My research question is what is the...
[no replies]
Why only implementation file needs to be compiled ?
 
3.When you define a class in separate files, there is an interface file and an implementation file. Which of these files needs to be compiled? (Both? Neither?...
[2 replies] Last: Implementation files contain code that gets compiled to binary, header... (by ModShop)
How to create a C++ program for class average?
 
To I'm trying to get an output to look like this: Enter the name of the student file: First MI Last Average Scott A Patterson ...
[3 replies] Last: Ok, so I tried to re-do. My code was #include <iostream> #include... (by cdutta1990)
Class Question
 
This is my first time working with classes and I'm a little confused. I'm making a game and I put the level up screen into a LevelUp class, it works but I'm won...
[11 replies] Last: You want to write code like this: ... int main() { ... Player ... (by Mathhead200)
I am really lost with this program
 
I know it isn't finished yet but I am having problems with it, have been trying to figure out how to fix it or complete it for two days now. So if someone can ...
[4 replies] Last: #include <algorithm> #include <iostream> #include <vector> using name... (by wolfgang)
N dimensional Vector ?? please HELP
 
hello everybody, I'm a student of computer engineering and i need help with a home work received in data structures it says: "write C++ class declarati...
[1 reply] : This is actually rather simple. To start, lets consider a point in ... (by Glen Jenness)
Pointers to arrays of functions - Still confused...
 
Hello :-) I am aware of what this piece of code does, but there are two things I am unsure of; - "cin.get(cr)" ???? - "(*func_table[c - 'a'])(); How do ...
[4 replies] Last: Thank you :-) Of course, that eluded me at first sight. It is funny so... (by bonebreaker)
mapping pairs
 
Hi, The code below works fine although a bit slow. In the function P I use a map m from int to long long to cache already calculated function values. However, ...
[no replies]
message box problem
 
Hi everyone, i have a simple question, im not expert with C++ stuff, the question is, my SW is wearching into a text file for a string, then i need to show t...
[5 replies] Last: And how about if you create the string you want first, and then put i... (by Moschops)
Declaring and using a "singleton"
 
hi How can I use and declare a singleton? My issue is in using the singleton object it self, so far here what I've done: //header file potion class CS...
[1 reply] : I am not quite understand what your issue is. What I see is that you ... (by EricDu)
CS106 B Stanford arryay exercise.
 
I am trying to do this exericse.I am not sure whether i did the exercise according to what the exercise is asking me to do.I think i did what the exercise wants...
[3 replies] Last: Have i done right this time? I guess so. /** * File: narcissism.cpp ... (by ccie007)
Having a problem with my if/else statement's...
 
Ok, i am having a problem with my if/else statements and i can't figure out what it is. I have a cin statement asking for an unknown variable, but no matter ...
[3 replies] Last: Actually disregard that last post... it turns out Moschops was correct... (by brandonjconnor)
help with my code for tax rate and mark up
 
i am having trouble with my code i am writing code for calculating the tax rate and mark up percentage of items in a store and i entered a double variable for t...
[no replies]
Calculator script help
 
So I'm making a "calculator" in c++ for class. #include <iostream> #include <cmath> using namespace std; #define PI 3.14159265 int main() { ...
[3 replies] Last: What is this? #define PI 3.14159265 Macros?...MMM......MMMMAAAACC... (by Ben Duncan)
Best way to get into game programming? (1,2)
 
Hey all, Been on the forums for quite a while and posted myself quite a few time. At the moment, I have just been trying to learn SDL by using th...
[25 replies] Last: Hey what do you guys think of this guy to just learn the basics : http... (by jefw123)
Return Values w/Functions
 
Is it possible to call a return value from another function to a different function?? If so, could someone provide a small example?
[2 replies] Last: #include <iostream> int max (int a, int b) { return ((a > b) ? (a) :... (by wolfgang)
by Draahl
loop question
 
I feel like ive failed miserably by asking this, but i cant seem to get my head around my 2 problems. First problem. The user need to be able to write in(...
[1 reply] : It helps to visualize how you'd solve these problems manually in your ... (by Disch)
Returning highest value
 
Hello. When I was given several options about which extra class to pick I picked programming. However our teacher "hit the wall" and was given a vaccation so no...
[11 replies] Last: Look where you put line 8. It's in the loop. "max" will be reset to 0 ... (by hamsterman)
October 2011 Pages: 1... 4445464748... 59
  Archived months: [sep2011] [nov2011]

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