| | |
exponents in c++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
As a constant?
#include <iostream>
int main()
{
double value = 1.23456E+3;
std::cout << "value = " << value << '\n';
return 0;
}
/* my output
value = 1234.56
*/ "One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
>um not sure what K&R is
You aren't supposed to unless you have a perverse fascination with ancient dialects of C.
>the line where the error is the "{" right after main
That is soooooo incredibly NOT helpful. Not even I can debug a program given one character (most of the time
). How about posting that line as well as five lines above it (using code tags, because I'm not in the best of moods).
You aren't supposed to unless you have a perverse fascination with ancient dialects of C.
>the line where the error is the "{" right after main
That is soooooo incredibly NOT helpful. Not even I can debug a program given one character (most of the time
). How about posting that line as well as five lines above it (using code tags, because I'm not in the best of moods). New members chased away this month: 3
![]() |
Similar Threads
- Computer Architecture Reference (Computer Science)
- Object Orientated C+++.net Calculator! (C++)
- Exponents: whats double etc? (C++)
- class polynomial (C++)
- Complex Numbers (C)
Other Threads in the C++ Forum
- Previous Thread: Reading data into files
- Next Thread: PUTTING C++ TO USE!!! (GUIs & MS Windows)
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






