I think that trying to make too many improvments to C++ instead of just changing languages will end up speeding up the shift away from C++. If the C++ committee decided that Java was gaining ground...
Type: Posts; User: cozman
I think that trying to make too many improvments to C++ instead of just changing languages will end up speeding up the shift away from C++. If the C++ committee decided that Java was gaining ground...
Just because iostream.h will work does not mean you should use it. When the h was removed from header files, the standard library was moved inside the std namespace.
using namespace std;...
Guess we may as well start posting them :)
void box(int n)
{
for(int i=0; i < n; ++i)
{
for(int j=n; j > 0; --j)
{
Has anybody done it using only loops & cout?
400!
This is untrue, there is a C++ board that decides on the new standards.
The next standard is being discussed right now, I heard 2005 is the year when we'll start to see likely changes, but my bet...
Are you using math to determine if a -1, 0, or 1 should be output, or are you using if statements. I took no-loops to mean no-if statements, and wrote it using abs().
This is overloading, not polymorphism. The compiler can tell which version to call from the parameter types. Think of it like it is generating internally 2 functions Double_int and Double_long...
For standard headers, the correct method is to use the #include <whatever> style. Also the C++ standard headers no longer have .h at the end of them, people using iostream.h are now officially...
There is no need for an array.. simple output sufficed fine.
btw, when he says just loops.. what is he excluding? I wrote a version using 1 c library function & 2 for loops.
I once read that an array w/ dimensions > 2 should be avoided, and an array w/ dimensions > 3 is an example of bad coding. I dont think I agree that it's really bad coding, but then again.. I've...
keep an eye on those credit cards.. they may claim it's being denied but then be stealing the #s.. Paranoid? probably, but it just seems a little shady.
Thanks that's just what I'm looking for.
Thanks for the link, I'll check that out. are you saying 1-2 gigs for a swap disk for Partition Magic or just a standard swap disk? (I already have a swap disk and everything runs great.)
I have a 120GB HD and I initially created a 40gb Windows parition and a 20gb Redhat partition, leaving 60gb available for future expansion. I am getting a TV card and preparing a DVR so I'd like to...
the if statement itself won't slow you down.. it's technically what you're testing that will slow you down.. minimize the needed tests and you should be fine. If statements are never the bottleneck...
Hey any idea what the upgrade cost will be? I spent half an hour on Microsoft.com reading about features, and why I should get it, etc.. but I couldn't find any upgrade info.
Mozilla is a great browser, and has some little things that people ignore yet they are still great. Tabbed browsing (if you have a middle button/wheel) go into options and look for "middle-click...
Using rectangle for enemies is rather common, for a level I'd design a "map" format that'd look like this.
o XXX X
XXXXXXXXX X
XXXXXXXXX XX
o = the player
X = the level itself...
I'm aware that there is more, I'm looking for tutorials on it.. all the .NET stuff out there seems to be VB.net or C#.net.. I'm wondering if a lot of people use C++.net and if so where there are...
Yes, if you organize your code so that everything has a rectangle that it's inside you could test your scenario in one check.
You could do this a few ways..
a) Rectangle based collision: each object has a rectangle associated with it, and you check if the rectangles are colliding using pretty simple math.
b) Array...
There was just an article on GameDev about services, maybe it will help
http://gamedev.net/reference/articles/article1899.asp
So I'm bored and feel like learning a new language or API or something soon. I have VC++.net and I don't feel like buying a new compiler, so is anybody using "Managed C++" and if so are there any...
I'm here, just not that much, I read more than I post, I'm busy when all the questions are asked it seems so when I get here everything I could answer is taken care of.
http://conceptofzero.net/james/viris01.jpg
My tetris clone, I hate the art (if anybody feels like donating some time i'd be thankful ;) ) The blocks become "infected" by a virus. In this shot I...