473,395 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Game Programming for Beginners in C++

1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
Jan 28 '08 #1
19 4065
yltkhuu wrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
A: Do your own homework!
Jan 28 '08 #2
yltkhuu wrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
What are the advantages of students doing their own homework?

Brian
Jan 28 '08 #3
On Jan 28, 3:24 pm, yltkhuu <yltk...@gmail.comwrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
Please quit school and never take a job programming. I don't want to
rely on anymore peers that can't do their own work, can't read for
themselves, and don't know how to code beyond ctrl-c and ctrl-v, than
I have to already.
Jan 28 '08 #4
yltkhuu wrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
This reads an awful lot like homework. Is it?
Rui Maciel
Jan 28 '08 #5
yltkhuu wrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
The answers can be found here:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.2
Jan 28 '08 #6
"yltkhuu" <yl*****@gmail.comwrote in message
news:a3**********************************@c23g2000 hsa.googlegroups.com...
1. How does having a widely adopted C++ standard help game
programmers?
It helps orphans to create wide-screen games with C++.
2. What are the advantages ans disadvantages of employing the "using"
directive?
Advantage: The "using" directive would be earning a paycheck.
Disadvantage: Someone has to provide funds for the paycheck.
3. Why might you define a new name for an existing type?
If the type stops coming when you call it by its old name.
4. Why are there two versions of the increment operator? What's the
difference between them?
Two is better than one. The difference between them is one.
5. How can you use constants to improve your code?
If your code is constant, then nobody else can
change it while you're not looking.

-Mike
Jan 29 '08 #7
On Jan 28, 2:56*pm, "Default User" <defaultuse...@yahoo.comwrote:
yltkhuu wrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?

What are the advantages of students doing their own homework?
How do you know this is a homework?

Jan 29 '08 #8
On Jan 28, 3:03*pm, Christopher <cp...@austin.rr.comwrote:
On Jan 28, 3:24 pm, yltkhuu <yltk...@gmail.comwrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?

Please quit school and never take a job programming.
What would be so bad about him NOT quitting, but then changing and
deciding to do his own work? Furthermore, how do you know this is some
sort of homework?

Jan 29 '08 #9
mike3 wrote:
On Jan 28, 2:56 pm, "Default User" <defaultuse...@yahoo.comwrote:
>yltkhuu wrote:
>>1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
What are the advantages of students doing their own homework?

How do you know this is a homework?
1. The questions don't have anything to do with the subject line
(except for #1).

2. The remaining items, especially 3 and 5 are things that any C++
programmer should know.

Jan 29 '08 #10

"mike3" <mi******@yahoo.comwrote in message
news:95**********************************@k2g2000h se.googlegroups.com...
On Jan 28, 3:03 pm, Christopher <cp...@austin.rr.comwrote:
On Jan 28, 3:24 pm, yltkhuu <yltk...@gmail.comwrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?

Please quit school and never take a job programming.
What would be so bad about him NOT quitting, but then changing and
deciding to do his own work? Furthermore, how do you know this is some
sort of homework?

Lol! I think it is pretty obvious. 5 totally unrelated questions easily
covering the contents of a intro course curriculum. I've done enough
homework myself to decern what cut and pasted homework looks like. I've also
tutored enough students to know popular ways to get thier homework done.
I've also had the un-pleasure of working with such people after they've cut
and pasted thier way to a degree. The latter is something I would rather not
ever be responsible for promoting.

Homework aside, the format here show an obvious unwillingness to research
the answers at all before posting. It also was not posted in relation to any
attempt to code, rationalize possible answers, or offer any kind of thought
whatsoever. Such questions do not warrant answers.

Furthermore, how do we know you aren't the OP trying to convice us it isn't
homework ;) Not that it would matter. Like I said, the format warrants no
answers.
Jan 29 '08 #11
On Jan 28, 8:32 pm, mike3 <mike4...@yahoo.comwrote:
On Jan 28, 2:56 pm, "Default User" <defaultuse...@yahoo.comwrote:
yltkhuu wrote:
1. How does having a widely adopted C++ standard help game
programmers?
2. What are the advantages ans disadvantages of employing the "using"
directive?
3. Why might you define a new name for an existing type?
4. Why are there two versions of the increment operator? What's the
difference between them?
5. How can you use constants to improve your code?
What are the advantages of students doing their own homework?

How do you know this is a homework?
Because there are no answers attempted or any attempts to think.
The worst possible act would be to supply solutions.
Obviously, he/she won't bother reading them.
Jan 29 '08 #12
hihi, so busted xD.

Jan 29 '08 #13

Hahahahaha you've all made my day :)
Jan 29 '08 #14
This is just one more evidence the newest games suck much more than
ever :(

We will never see again the energy, skill and creativity used in the
Activision games made for Atari 2600 like Pitfall or Keystone Kapers
or Pressure Cooker or Frostbite...
Jan 29 '08 #15
yltkhuu wrote:
This is not my homework. My homework involves programming. These
were the discussion questions in my book, which are not part of my
homework.
If you'd use a real name now, and give some better excuses, I might even
be willing to believe you. The least you could've done was to give your
own answers to the questions and ask about other opinions.

....

Lars
Jan 29 '08 #16
This was my actual homework, which wasn't difficult. I find the
discussion questions more difficult.

#include <iostream>
#include <cstdlib>

int main()
{
using namespace std;
int scoreOne, scoreTwo, scoreThree;
int total;
int average;
// getting the information
cout << "If you give me your three scores, I'll tell you how good
you are";
cout << " ...on average.\n\n";
cout << "What's your first score? Type it here: ";
cin >scoreOne;
cout << "Your first score:" << scoreOne << endl;
cout << "What's your second score? Type that here, too: ";
cin >scoreTwo;
cout << "Your second score:" << scoreTwo << endl;
cout << "Last, but not least, your third score: ";
cin >scoreThree;
cout << "Your third score:" << scoreThree << endl;
// displaying results
total = scoreOne + scoreTwo + scoreThree;
cout << "Your score total is " << total << endl;
average = total / 3;
cout << "Your score average is " << average << endl;
system("PAUSE");
return 0;
}
On Jan 29, 8:37 am, Lars Uffmann <a...@nurfuerspam.dewrote:
yltkhuu wrote:
This is not my homework. My homework involves programming. These
were the discussion questions in my book, which are not part of my
homework.

If you'd use a real name now, and give some better excuses, I might even
be willing to believe you. The least you could've done was to give your
own answers to the questions and ask about other opinions.

...

Lars
Jan 29 '08 #17
I can understand, now, why everyone thought that I was posting my
homework and I am sorry if it was inappropriate. I don't think the
level of rudeness to my post was necessary.
On Jan 29, 8:50 am, yltkhuu <yltk...@gmail.comwrote:
This was my actual homework, which wasn't difficult. I find the
discussion questions more difficult.

#include <iostream>
#include <cstdlib>

int main()
{
using namespace std;
int scoreOne, scoreTwo, scoreThree;
int total;
int average;
// getting the information
cout << "If you give me your three scores, I'll tell you how good
you are";
cout << " ...on average.\n\n";
cout << "What's your first score? Type it here: ";
cin >scoreOne;
cout << "Your first score:" << scoreOne << endl;
cout << "What's your second score? Type that here, too: ";
cin >scoreTwo;
cout << "Your second score:" << scoreTwo << endl;
cout << "Last, but not least, your third score: ";
cin >scoreThree;
cout << "Your third score:" << scoreThree << endl;
// displaying results
total = scoreOne + scoreTwo + scoreThree;
cout << "Your score total is " << total << endl;
average = total / 3;
cout << "Your score average is " << average << endl;
system("PAUSE");
return 0;

}

On Jan 29, 8:37 am, Lars Uffmann <a...@nurfuerspam.dewrote:
yltkhuu wrote:
This is not my homework. My homework involves programming. These
were the discussion questions in my book, which are not part of my
homework.
If you'd use a real name now, and give some better excuses, I might even
be willing to believe you. The least you could've done was to give your
own answers to the questions and ask about other opinions.
...
Lars
Jan 29 '08 #18
On 2008-01-29 17:16, yltkhuu wrote:
This is not my homework. My homework involves programming. These
were the discussion questions in my book, which are not part of my
homework. If they were, I would not post them here. This is a
discussion group on programming in C++ for BEGINNERS.
Actually, for beginners I would recommend alt.comp.lang.learn.c-c++.
Also see the FAQ, it was many good entries for beginners and more
experienced people alike: http://www.parashift.com/c++-faq-lite/

--
Erik Wikström
Jan 29 '08 #19
yltkhuu wrote:
This is not my homework.
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or the group FAQ list:
<http://www.parashift.com/c++-faq-lite/how-to-post.html>
Jan 29 '08 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: the_philospher | last post by:
I am a beginner programmer learning c++. i have read some useful information about programming games (which is my goal) on gamedev.net, particularly "how do i program games"...
11
by: enki | last post by:
I am writing a game and I am having trouble with moving the character on the map. Here is what I have right now. It involves win32 programming but that not my problem. I would like some...
2
by: Hans Kamp | last post by:
As a programming exercise I try to program a game. In my case it is called BugEater. The purpose is that you are a snake. It moves automatically but you can control it with the keys on your...
7
by: Gasten | last post by:
Hello. The last weeks I've been coding a roguelike (you know, like nethack) in python using the nCurses library. Some week ago I ran into a problem: When I made the object for messagebar-output, I...
0
by: Jeff Rush | last post by:
At PyCon this year we're going to have a multi-day game programming clinic and challenge. This is a first-time event and an experiment to find those in the Python community who enjoy playing and...
4
by: COHENMARVIN | last post by:
Are there any good sources on video game programming in vb.net? Is "DirectX" a set of libraries for video game programmers? The reason I ask is that I'd like to convert a board game into a...
29
by: Martin Schmied | last post by:
Dear folks I'm looking for good sites/material for this topic: Introduction to programming, using Javascript. So, not introduction to programming *in" Javascript. Well, I guess this would be...
10
by: Michael Lubker | last post by:
Any people that use Python as the predominant language for their game development here? ~Michael
0
by: smartx | last post by:
Hi, I would like to share my knowledge as a game programmer, really game programming is hard, I don't want to disappoint you, the important point to become a game programmer is to love game...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.