ASDV-Cpp/Assignments/lab2_CalebFontenot/main.cpp
2024-02-28 16:11:37 -06:00

40 lines
803 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/cppFiles/main.cc to edit this template
*/
/*
* File: main.cpp
* Author: caleb
*
* Created on February 26, 2024, 10:03AM
*/
#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;
/*
*
*/
int main(int argc, char** argv) {
double d = 8.21;
int x, y;
x = (int) d;
y = static_cast<int> (d);
cout << x << " " << y;
cout << endl;
int num1= 2987, num2 = 5, num3= 122;
cout << setw(25) << num1 << setw(3) << num2 << setw(25) << endl;
string name;
cout << "please enter your first and last name:";
getline(cin, name);
cout << "\n" << name;
return 0;
}