Search:

Type: Posts; User: Megidolaon

Search: Search took 0.01 seconds.

  1. Thanks, I know made it: Stuff (int input) {...

    Thanks, I know made it:

    Stuff (int input)
    {
    val = input;
    }

    and the declaration

    Stuff x(2);
  2. A question about class members and constructors

    I have the following class:

    class Stuff
    {
    private:
    int val;

    public:
    Stuff (int Val)
    {
  3. Thanks for the reply. System::String...

    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...
  4. How do I instantiate a self written class inside a Windows Form?

    I thought it would be fairly simple but no matter I do, I get tons of errors :(


    class stuff
    {
    int account;
    string content;

    public:
  5. Replies
    33
    Views
    4,090

    I see and why do I need the ' :: ' operator?...

    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...
  6. Replies
    33
    Views
    4,090

    Thanks once more. I see, does anyone have a...

    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...
  7. Replies
    33
    Views
    4,090

    Thanks a lot! I had read something about C++...

    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...
  8. Replies
    33
    Views
    4,090

    A few beginner's questions

    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...
Results 1 to 8 of 8