- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am trying to learn C++ and am trying to figure out how to use strings and if statements together. Here's the code I'm trying to play around with: [CODE=c] #include <iostream.h> int main() { char * a; cout << "Do you want to enter?\n"<<endl; cout << "To enter, type … |
|
I'm trying to learn all I can about game programming but I still can't grasp one concept. That is, how does one put code with graphics? Or does it even work that way? I've always been confused about that. Thanks! |
|
I'm trying to learn c++ and am trying to use classes. I'm doing something wrong but can't figure this out. Here's the code: [CODE=c] #include <iostream> using namespace std; class dead { public: void dieNow() { cout<<"You just died!"<<endl; cin.get(); } }; class alive { public: void youLive() { cout<<"Whew! … |