Thanks, I know made it:
Stuff (int input)
{
val = input;
}
and the declaration
Stuff x(2);
Type: Posts; User: Megidolaon
Thanks, I know made it:
Stuff (int input)
{
val = input;
}
and the declaration
Stuff x(2);
I have the following class:
class Stuff
{
private:
int val;
public:
Stuff (int Val)
{
Thanks for the reply.
System::String apparently needs it, I got more errors without that.
I see.
Was a bad thing I combined C/C++ code with C/CLI code pre-generated by Visual Studio?
I...
I thought it would be fairly simple but no matter I do, I get tons of errors :(
class stuff
{
int account;
string content;
public:
I see and why do I need the ' :: ' operator?
When do I need this and when do I need the ' . ' operator?
I just tested it, it won't work.
If I don't declare class B above class A, I can't have...
Thanks once more.
I see, does anyone have a link where I can look up the correct syntax, because all tutorials I've found define the methods outside the class.
Do I need an extra variable if...
Thanks a lot!
I had read something about C++ objects not being passed by reference but by value, though I didn't know all of the data was normally on the stack.
I only get errors when using...
I hail from C# and C++ is confusing me a lot.
1) I just got an error for putting the visibility identifier before the name of a method (at least I think that was the reason), so it's absolutely...