Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. int main(){
  8. ifstream portfp;
  9. string c;
  10. system("mode com1: baud=115200 parity=o data=8 stop=1 xon=off");
  11. portfp.open("com1", ios::in);
  12. system("CLS");
  13. cout<<"Pronto a ricevere:\n\n\n";
  14. while(!(portfp >> c));
  15. cout<<"\n\n\n"<<portfp;
  16. portfp.close();
  17. system("PAUSE");
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement