Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main(){
- ifstream portfp;
- string c;
- system("mode com1: baud=115200 parity=o data=8 stop=1 xon=off");
- portfp.open("com1", ios::in);
- system("CLS");
- cout<<"Pronto a ricevere:\n\n\n";
- while(!(portfp >> c));
- cout<<"\n\n\n"<<portfp;
- portfp.close();
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement