Add Initial commit

This commit is contained in:
Lev
2021-05-19 23:16:26 -05:00
parent a4a095d0b0
commit ff3a07f9d2
2 changed files with 24 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,24 @@
#include <iostream>
#include <string>
#include <vector>
enum class Colours{blue, green, red};
int main()
{
//unsigned short usi=65536;
signed long sli=65536;
std::cout << " size of unsigned short: " << sizeof(unsigned short) << std::endl;
std::cout << " size of unsigned short: " << sizeof(unsigned long) << std::endl;
std::cout << " size of unsigned short: " << sizeof(int) << std::endl;
//std::cout << "i contains: " << usi << std::endl;
std::cout << "i contains: " << sli << std::endl;
std::cout << "--enum--" << std::endl;
std::string s = {"hello"};
Colours col = Colours::red;
//std::cout << "color is: " << col.toString() << std::endl; this doesn't work
return 0;
}