Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion InputValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <string>
using namespace std;

int main2();

int main()
{
int feet;
Expand Down Expand Up @@ -36,4 +38,4 @@ int main2()
cout << "Age: " << age << endl;

return 0;
}
}
4 changes: 2 additions & 2 deletions OutputStatements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main()
cout << 29 / 4 << endl;
cout << 3.0 / 2 << endl;
cout << "Hello there.\n";
cout << 7 < endl;
cout << 7 << endl;
cout << 3 + 5 << endl;
cout << "3 + 5";
cout << endl;
Expand All @@ -20,4 +20,4 @@ int main()
cout << 2*b << endl;

return 0;
}
}
4 changes: 2 additions & 2 deletions TypeCasting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int main()
<< static_cast<int>(7.8 + static_cast<double>(15) / 2)
<< endl;
cout << "static_cast<int>(7.8 + static_cast<double>(15/2) = "
<< static_cast<int>(7.8 + static_cast<double>(15/2)
<< static_cast<int>(7.8 + static_cast<double>(15/2))
<< endl;
return 0;
}
}