Ok, thanks, I'll try that.
Edit:
How do I actually get it to say something from the class? I really don't get this, can someone please give me an example of a class? I've not seen a simple one...
Type: Posts; User: ballmonkey
Ok, thanks, I'll try that.
Edit:
How do I actually get it to say something from the class? I really don't get this, can someone please give me an example of a class? I've not seen a simple one...
Please help! I am desperate to keep going with my C++ tuts but I can't if I don't get this, please help
Oh, right. Well this compiles but it still comes up with this error
3 C:\Documents and Settings\Chris\My Documents\My game\Lobsters\classes\item1.cpp In file included from C:/Documents and...
I don't think that's the problem, it's a linking error, someone told me on another board (The GameFAQ Programming board) that they are sometimes really hard to figure out the error.
Hi, I am doing my first classes work (C++) and I've come up with this:
#include <iostream>
#include <string>
#include "item1.h"
using namespace std;
StockItem::StockItem()
: m_Name(),...
Thanks, I never noticed that boards... hehe,
Where is there a good SDL tutorial? I have been lokking and can't find one!
Thanks
Are any of those really good and suggestable or are they just as good as learning C++ form this site and www.cplusplus.com? Also id Windows Graphics the best or is some other thing better for some...
I'll take a look into the book... wow! It's the same price as a game here(EU), I'll never pay over a tenner for a book! I'll do the tutorials on www.cplusplus.com I think first, I'm not the most...
Ok, thanks.
--edit--
Oh my god! How the heck did I not put using namspace std??? That's the first time I've ever done that! Also I copied that off this website, I think the admin should have a...
I had a look at the random numbers tutorial and was wondering why doesn't this work???
#include <iostream>
#include <stdlib>
#include <time>
/*
These constants define our upper
and our...
I think this topic goes here, not to sire though???
I'm very nearly finished the C++ tutorial on this website and would like to know, what tutorial should I do next? Eventauly I want to make a 2D...
Thanks everyone. Now I can do my English talk and have a perfectly working exapmle (even if it's not random or fun...)
Just one thing, when I press enter after that it doesn't do anything but take a new line and you have to enter a number then press enter to exit it. Thanks MadCow257
Ok, first off, here's my code for a non-random rock, paper scissors game.
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int x;
Oh, oops. I feel like a complete idiot... hee hee. Thanks guys!
Thanks alot! So I can redefine x at any moment? I was about to try it but an error comes up when I try this code
#include <iostream>
using namespace std;
int main()
{
int x;...
Ok, I tried fixing the code but something is wrong, it says
8 C:\Documents and Settings\Chris\My Documents\My game\cout.cpp statement cannot resolve address of overloaded function
Here's the...
Thanks... Anyone else have any idea?
If I were making a if thing say
include <iostream>
using namespace std;
int main()
{
cout<<"Please select 1 or 0\n";
cin<< x;
Ok, I think I got it all. Thanks! :D
Hi, I'm a n00b and have been doing the tutorials and I have many questions and you'll rpbably find me annoying because I really ask alot of questions daily. At the moment I have 3, I'm just gonna...