how do you write exponents in c++ i though it was "exp (#)" afterthe variable am i right?
tyczj
0
Junior Poster in Training
Recommended Answers
Jump to PostAs a constant?
#include <iostream> int main() { double value = 1.23456E+3; std::cout << "value = " << value << '\n'; return 0; } /* my output value = 1234.56 */
Jump to Post>"error c2447: missing function header (old-style formal list)"
And the line of code that goes with this error? Clearly you're trying to do something that looks something like a K&R style function definition, but C++ doesn't allow those.
All 5 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
tyczj
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
tyczj
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.