Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. fafasdgsadgas

    Exponents don't work!

    It works! Just installed SP 5 for Visual C++ and everything worked without needing to change the program at all, I guess it was my compiler!
  2. fafasdgsadgas

    Exponents don't work!

    I gotta update my software! I never got any compile errors or anything and it still won't work. Let me get all the updates and check back with you.
  3. fafasdgsadgas

    Exponents don't work!

    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<<&quot;Programmed by Martin Castner&quot;<<endl; cout<<&quot;It will ask for a number and then...
  4. fafasdgsadgas

    Exponents don't work!

    what is the pow() function?
  5. fafasdgsadgas

    Exponents don't work!

    #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<<&quot;Created by Martin Castner&quot;<<endl; cout<<&quot;It will ask for a number and...
  6. fafasdgsadgas

    loops

    forgot a lot of semicolons!!! Sorry!!!
  7. fafasdgsadgas

    loops

    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==&quot;hello&quot;) { do...
  8. fafasdgsadgas

    Exponents don't work!

    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...

Part and Inventory Search

Back
Top