Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main()
- {
- float myfloat = 100.50;
- double mydouble = 100.50;
- char mychar = 120;
- bool istrueorfalse = true;
- istrueorfalse = 1;
- string firstname$ = "david";
- cout << firstname$ << endl;
- cout << mychar << endl;
- cout << "this first name has" << firstname$.length() << "characters in it "<< endl;
- cout << "the third letter in the name is " << firstname$[2] << endl;
- unsigned int myunsignedint = 200;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement