Menu

Hochzahlen

2002-09-16
2012-09-26
  • Nobody/Anonymous

    Wie kann ich Hochzahlen in einem Programm ausfhren.

    pi.cos@gmx.de

     
    • Nobody/Anonymous

      Versuch es mal mit der pow(basis,potenz);
      z.B.:

      #include <iostream>

      int main(int argc, char *argv[])
      {
        float p = pow(4,2); // = 4 hoch 2
        std::cout << p;
        system("PAUSE");   
        return 0;
      }

      Hoffe du hast das damit gemeint!

      PM

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.