Thanks for all your help so far guys, I appreciate it!
#3
The Problem - I need to clear the screen in the middle of a program.
The code -
#include <iostream>
using namespace std;
Type: Posts; User: Magneto
Thanks for all your help so far guys, I appreciate it!
#3
The Problem - I need to clear the screen in the middle of a program.
The code -
#include <iostream>
using namespace std;
I can't say I fully understand namespaces, but I'm going to start using std::, I guess I'll wait until my book covers it.
#2
The question - Where is it applicable to use cin.ignore() and...
Thanks everyone, you've been a great help. Isn't learning fun?
Your first suggestion doesn't seem to chage the program at all.
Your second suggestion works to an extent; I run the program and type something then hit enter. It then displays the first letter...
OK, maybe not an expert but I'm going to give it a good try. Right the purpose of this thread is to consolidate all of my little problems/questions of which don't need a new thread each time.
#1...
Yeah, there is an option and I must of not done it the first time.
Check, thanks for the advice.
Anywho, you can look forward to seeing a lot more of my problems around here (I'm sure I'll have...
It must have been something to do with my compiler. I've reinstalled Dev-C++ using that guide you gave me. The version I have installed now is, Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC...
I'm quite sure I downloaded ("Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2"). I'm going to unistall this version (whatever it is, I'm not sure) and install (devcpp-4.9.9.2_setup.exe)....
Well I only installed Dev-C++ today and I'm running 4.9.9.2 (It's been on my desktop a while). I could try reinstalling, but as I said I've only installed it today...
Do you think I should try a...
Wow, that was fast. :D
I'm using Bloodshed Dev-C++, is that a problem? I've tried your version of the program and it gave me a whole new set of errors.
See for yourself, screenshot:...
#include <iostream>
int main()
{
std::cout << "Enter two numbers:" << std::endl;
int v1, v2;
std::cin >> v1 >> v2;
std::cout << "The sum of " << v1 << "...