Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
dharm1
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include<windows.h> #include<iomanip> using namespace std; int main() { cout << "Hello, world!\n"; int i = 52; float a = 425.0; float b = 123.500328f; char str[] = "Dream. Then make it happen!"; system("cls"); cout << setiosflags(ios::unitbuf|ios::showpos); cout << i << endl; cout << setiosflags(ios::showbase|ios::uppercase); cout << hex << i << endl; cout << oct << i << endl; cout << setfill('0'); cout << "Fill character :" << cout.fill() << endl; cout << dec << setw(10) << i << endl; cout << setiosflags(ios::left) << dec << setw(10) << i << endl; cout << setiosflags(ios::internal) << dec << setw(10) << i << endl; cout << i << endl; cout << setw(10) << str << endl; cout << setw(40) << str << endl; cout << setiosflags(ios::left) << setw(40) << str << endl; cout.precision(6); cout << "Precision: " << cout.precision(); cout << setiosflags(ios::showpoint) << resetiosflags(ios::showpos) << endl << a; cout << resetiosflags(ios::showpoint) << endl << a; cout << setiosflags(ios::fixed) << endl << b; cout << setiosflags(ios::scientific) << endl << b; b = 5.375; cout.precision(14); cout << setiosflags(ios::fixed) << endl << b; cout << setiosflags(ios::scientific) << endl << b; cout << resetiosflags(ios::showpoint|ios::unitbuf) << endl; return 0; }
run
|
edit
|
history
|
help
0
post_decrement_example
#19
Ελλάδα !!!!
map_file_mangling
fun
get_number_of_threads, windows
CIS-2207 Week1 Assignment1 Company Devisions
복소수 클래스 생성하기
Regex success
Cannot allocate an array of constant size 0