osdever.net is also very good it has tutorials and all.
Type: Posts; User: ComDriver
osdever.net is also very good it has tutorials and all.
I seem to be asking alot of questions but C++ is fun !:D I was wandering how I could get my program to exit whenever 7 is entered and I was wandering about how I would clear the screen when the user...
I seem to be asking alot of questions but C++ is fun !:D I was wandering how I could get my program to exit whenever 7 is entered and I was wandering about how I would clear the screen when the user...
Thanks, I'm back on track but another question. How do I get my program to quit when 7 is entered.
When the code below is compiled and I choose 1 which is add and when my add function is finished my subtract function starts running even though I don't want it to, help me pleas.
#include...
Never thought of that, thanks.
I have now added a switch statement to the program below and when I try to compile it says 'MenuChoice undefined please use this function first', any ideas?
#include <iostream>
int...
Nope, the above didn't work.
I'm having trouble in getting the function in my program below to print out the menu, anu ideas?
#include <iostream>
int MenuAndMenuChoice();
int main()
{
I know it's PieRaidusSquared but didn't know how to represent the Squared.
Once I learn the switch statement and loops I want to make a decent calaulator program witch can do all the basic functions, cos, tan and sin, all that circle stuff and more.
What do you guys think of this? Its my first attempt at a useful C++ program. I would prefer to use if statements but I'm following a book and will learn it eventually. I might have used some time...
I've finally been able to write my first half usefull C++ program there are a few thing I would like to add but at the moment I don't know enough to be able to add them :) .
I have some problems...
And how about now?
#include <iostream>
int main()
{
int Number1 = Number1, Number2;
I changed the code to see if it's now any cleaner
#include <iostream>
int Number1 = Number1;
int Number2 = Number2;
int main()
{
I was just wandering what my code below is like is it perfectly legal and clean? and was also wandering why I have to keep putting cin.get() under each cin statement in order to stop the screen from...
What do you guys think is a better method when using the standard name space,
std::cout or using namespace std or using std::cout
I'm refering to ease of use and standards compilent.
Do you need to know the basics of C++ ie. cout etc. in order to program windows applicatipns?
When I try to run my programs using Dev C++, it compiles fine but the window with the output pops up and then dissapperas straight away before I get to see anything.
My Code-
#include...
Thanks for the help and I will be sure to add the code tags in my following posts.
When I compile my c code and try to run it, the screen pops up but goes away in a flash, I cannot see what the program is doing as it goes so fast, I am using Bloodshed's Dev-c++ on Windows XP, couls...