Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
dharm1
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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; }
cl.exe
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
Compilation time: 2,52 sec, absolute running time: 0,44 sec, absolute service time: 2,98 sec
edit mode
|
history
|
discussion