No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm a full time student going trying to get my Bachelor's in Computer Science. Ideally I'd like to be a game developer, but I've got quite a ways to go before that end is achieved. Still very new to programming, so bear with me.
- Interests
- Reading, exercising, playing video games (guitar hero, Call of Duty, Halo), playing sports, working…
- PC Specs
- Learning C++ and I use Windows (I know), but I'm definitely not biased, just poor.
If I have two objects (Intern and Manager) derived from an Employee class, could I create a function that would return a pointer to a new instance of one of the two derived objects by passing the type to the function. So, could I do something like this (I know … |
|
Alright, this isn't actually homework. I'm going back to school so I figured I would brush up on some programming before I go. I'll be taking the second course in a three course C++ programming sequence (starts with classes, recursion, etc.), so nothing too advanced yet. I wrote this program … |
|
What's the difference between having a const function and declaring const after the function? For example, if I had a class Myclass with some private data members and I set up a public function called int getMyValue(), what would the difference be between declaring that function as: [CODE]const int getMyValue();[/CODE] … |
|
When trying to run, the compiler tells me that I cannot access the private data members. I'm just curious as to what's causing this error. Here's my class declaration: [CODE] #include <iostream> #include <string> using namespace std; #ifndef SALARY_H #define SALARY_H class Salary { public: const int getDepNum(); const int … |
|
Hey, I'm Scott and I'm new to programming. I took a short break from school but now I'm back into things. I'm going for my BS in Computer Science, so I'm trying to learn C++, so I'll pretty much be using this site for homework questions (don't worry, I know … |