#include <iostream>
#include <string>
using namespace std;
double addition ( double x, double y );
double subtraction ( double x, double y );
double multiplication ( double x, double y );...
Type: Posts; User: Sshakey6791
#include <iostream>
#include <string>
using namespace std;
double addition ( double x, double y );
double subtraction ( double x, double y );
double multiplication ( double x, double y );...
Ya it might be a little overkill for this program but now I can learn how to fix it for this useless program so I can put better use to it later.
Thanks for the help.
Do you have any were I...
I change the unsigned short int to a int and the program works... Wired I don't know why but it did. Thanks for the help / feed back.
My code dose something really basic. All it dose is that it ask you how many grades you have to enter. Then you enter them grades and it give you the sum and the average. now i put a if statement to...
Thanks man. You couldn't of explained it any better.
Ok I'm just going over the basic trying to sharping my skills. I was looking over this program and I was reading the "How It Works " section telling me I should add the break so the loop doesn't keep...
Can you show me how to do that ? or send me a example? help would be appreciated.
Thanks.
#include <iostream>
#include <cmath>
#include <string>
int main()
{
double SideA, SideB, SideC, Hyp; // Hyp is the Hypotenuse
std::string GetInfo;
std::cout << "The Pythagorean Theorem...
Why do you declare your variable globe and then local???
float Fahrenheit, Celsius;
int main()
{
I was just wondering is
using namespace std;
A good idea or just program without it?
What is the input buffer?
What is the different between flash() and ignore() and get()?
How do they relate?
I really sorry for these basic question but I'm really into C++ and I just trying...
That what i was talking about on the top program just in a different way ... :) sorry about the confusion
#include <iostream>
#include <string>
using namespace std;
int main()
{
float MoneyEnter;
float pennie = .01;
This is a basic version of the programming I'm working on.
Now as most of you can see the output is going to be..... 12345.
But I want it to just print out 5 not 12345.
b/c the program I'm...
#include <iostream>
#include <string>
using namespace std;
int main()
{
const string HEADER ( "\t\t\tThree chances to get password right\n\n" );
const string line ( 80, '*' );
I made this calculator program here the beginning of it.
#include <iostream>
#include <string>
using namespace std;
int main() {
I use VC++ But When I use the .exe file it close out without displaying the output but.... Thanks for the tips I going to try the Code::Blocks.
I don't know. They didn't really say it was bad but there was a better way.....
I been using since I started programming in C++ is system("pause");. Some people are telling me that it is a bad idea to use this and gave me some stuff to read and I see why... Not I started using...
I like it. Thanks for checkout my program..... Thanks for the help, Both of you
Instead of using system.... How about this..... >
#include <iostream>
#include <string>
using namespace std;
int main()
{
const string HEADER ( "\t\t\tBasic Calculator Program\n\n" );
#include <iostream>
#include <string>
using namespace std;
int main()
{
const string HEADER ( "\t\t\tBasic Calculator Program\n\n" );
const string SUBHEAD ( "\t\t\tEnter in a math...
Ooo I see thanks for the help man.....
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
const string HEADER ( "\t\t\tThree chances to get password right\n\n" );
const string line (...
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
string Header("Welcome Enter your password: \n");
string line(28, '*');