PJ, the number of diagnols in a polygon. My description wasn't clear enough. Here >>
#include <iostream>
int findNumber(int);
int main()
{
Type: Posts; User: nbk
PJ, the number of diagnols in a polygon. My description wasn't clear enough. Here >>
#include <iostream>
int findNumber(int);
int main()
{
I have made a program I created a couple months ago(December). I just opened it up again. I noticed it takes a very long time to calculate higher sided polygons(of course). What algorithm would you...
Yeah, he's pretty fo' sheezy with the flow o' 'is rhymes, eh? Pretty fun, actually.
You really do need to post some details. What are you having problems with(give us the compiler message)?
Also - if you don't know what you are doing, reread the material you are studying, or go...
Constructors initialize variables at the creation of the class.
for instance:
class town
{
public:
int population;
int main is standard(there is more too it). Try doing a search, and you will see many threads on this.
For those who haven't heard-
Valve will release the source for Half Life 2(as they did for HL1).
Prima is publishing a book on coding mods for the game(or it explains the source code).
...
Umm... a book.... and Dev-C++( Dev-C++ ) I won't recommend a book since I can't... but I'm currently reading the 21 days book(Which is awesome compared to C++ for Dummies).
:o
First off, the getAddress is declared inline and in the .h file...
*Had to leave, sorry for no big description*
(now that I think of it, the inline, I don't think, would be a problem)
#include <iostream>
using namespace std;
class brian
{
public:
int height;
};
void functionToSetBrianHeight(brian &);
int main()
Child, any built in c++ commands(int, class, struct, float, enum, this, while, for, to name some of the many(30-50, I think)) are built into c++ - it's what c++ is made of. String isn't a built in...
I think he means since you don't have (m)any comments... well, add some!
For the extremely little stuff, discription is spelled description, and genera is spelled genre. (I know you aren't worried about that, just pointion it out ^-^ )
I don't see a create button. Hit f9 to compile and run, as Emmanuel said. Make sure it's fully updated, too(4.9.9.9)
:o
What's it about? From the commercial, it looks like a bunch of leaves fly :o doesn't look good at all from the commercial to me...
I meant an instance :eek:
(wasn't explained right)
joe.so = "sas"
There ya go :)
Princeton, where'd the add and subtract funtions go? :D
#include <stdio.h>
#include <stdlib.h>
int multiply(long x, long y);
int divide(long x, long y);
int add(long x, long y);
Sad to hear it(didn't know before.) Have fun!(but hey, when you come back, you can say you've been a member for 7 long years :))
This is taken from Jesse Liberty's forums(author of Teach Yourself C++ in 21 days). I thought this was interesting.
http://forums.delphiforums.com/LibertyBooks/messages/?msg=763.1
It's about personal style. The third is used mainly to get into the habit(no, it's only cause it's more professional looking :p ) I like the first one :D
Through C++, the registry, or .reg files?
]int add(long x, long y); // remove semi-colon
{
multiply(x,y);
divide(x,y);
add(x,y);
substract(x,y); //spelled wrong
I don't understand why it would, either. Is the code fully compilable(and is that an error or warning)
Also, post the code you have right now.
Looking at the code, you have a function for incrementing minutes, now just make functions for hours and seconds
I got the space and speed.... WOW, whens the low res version coming out :rolleyes: