Search:

Type: Posts; User: Herz

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,715

    Yeah actually, if main() is "running" my program...

    Yeah actually, if main() is "running" my program then it makes sense that the program is terminated when I return 0.
  2. Replies
    10
    Views
    1,715

    You'd think that a program would stay open until...

    You'd think that a program would stay open until it's closed?!

    Thank you all for your help.
  3. Replies
    10
    Views
    1,715

    Ah thank you. May I ask a simple, unrelated...

    Ah thank you.

    May I ask a simple, unrelated question?

    I'm only able to make console apps atm. Why is it that when I use std::cout<<"whatever"; the text gets displayed in the console window then...
  4. Replies
    10
    Views
    1,715

    Thank you both for your suggestions. But I have...

    Thank you both for your suggestions. But I have found a simple solution. (Well, whether it will be simpler to implement in C++ remains to be seen).

    Basically it requires two regular expressions...
  5. Replies
    10
    Views
    1,715

    Some logic help please

    Hello,

    I have a program with 3 functions: a, b and c.

    The user will input a string which will dertimin an order of execution for these functions.

    so if the user inputs "abc" it will execute...
  6. Replies
    7
    Views
    2,320

    Basically, all of them, except ~, compare 2 bits...

    Basically, all of them, except ~, compare 2 bits and return a value, either 0 or 1.

    ~ Just inverts a bit. So ~1 = 0 and ~0 = 1. Think of it as "not true = false" and "not false = true"

    There...
  7. Replies
    6
    Views
    1,305

    Ah thank you very much. A contextual example...

    Ah thank you very much. A contextual example really is the best thing to learn from. My application looks much more neat and elegant now. I've even got another class inheriting from Quadratic.
  8. Replies
    6
    Views
    1,305

    OK, thank you again. I have no idea how to set up...

    OK, thank you again. I have no idea how to set up a header file haha. I'll go look it up somewhere.

    Cheers.
  9. Replies
    6
    Views
    1,305

    Ah silly me! I set up the public methods and...

    Ah silly me! I set up the public methods and don't even use them!

    I'm still getting an error though, apparently I have multiple definitions of all the methods in Linear. Do you know why this is?...
  10. Replies
    6
    Views
    1,305

    Some simple OOP help please

    Hello there,

    I've been programming for a while now, in various languages. But now I've decided to do it properly and learn C++.

    Here's my problem, I have a class called Linear which has public...
Results 1 to 10 of 10