update,
This commit is contained in:
19
marissa.sam/task1/_ref/Chapter02/helloworld.cpp
Normal file
19
marissa.sam/task1/_ref/Chapter02/helloworld.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Price list of a restaurant"<<endl;
|
||||
std::cout << setw(20)
|
||||
<< setfill(' ')
|
||||
<< left
|
||||
<< "Cheese burger: "
|
||||
<< " $"
|
||||
<< setw(4)
|
||||
<< setfill(' ')
|
||||
<< right
|
||||
<< "14"
|
||||
<< endl;
|
||||
}
|
Reference in New Issue
Block a user