Didn't help! This is what I put:
#include <conio.h>
#include <iostream>
#include <math.h>
#include <cstdlib>
using namespace std;
int main()
{
double num=0;
double power=0;
double count=0;
cout<<"Programmed by Martin Castner"<<endl;
cout<<"It will ask for a number and then...
#include <conio.h>
#include <iostream>
#include <math.h>
#include <cmath>
#include <cstdlib>
using namespace std;
int pow(int first, int second);
int main()
{
int num=0;
int power=0;
int count=0;
cout<<"Created by Martin Castner"<<endl;
cout<<"It will ask for a number and...
you should also define cmd as a string and you'll need to include the <string.h> header file, then you can put:
#include <iostream>
#include <string.h>
int main()
{
BOOL something=TRUE
while(something==TRUE)
{
string cmd;
cin>>cmd;
if(cmd=="hello")
{
do...
I have recently started learning about C++ and got Visual C++ 6 Standard Edition, I tried to make a program that would ask for a number and then print the values of that number to the power of 0-20, unfortunately it won't seem to do the equation correctly. I tried setting up a function for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.