Yeah actually, if main() is "running" my program then it makes sense that the program is terminated when I return 0.
Type: Posts; User: Herz
Yeah actually, if main() is "running" my program then it makes sense that the program is terminated when I return 0.
You'd think that a program would stay open until it's closed?!
Thank you all for your help.
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...
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...
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...
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...
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.
OK, thank you again. I have no idea how to set up a header file haha. I'll go look it up somewhere.
Cheers.
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?...
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...