This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Demo program for CS31 Discussion 1C Week 2 | |
Oct 8, 2021, Mingyu Derek Ma | |
*/ | |
#include <string> | |
#include <iostream> | |
using namespace std; | |
void example1(){ | |
/* | |
Example 1: cin only takes numeric part |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Demo program for CS31 Discussion 1C Week 1 | |
Oct 1, 2021, Mingyu Derek Ma | |
*/ | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ |