いろいろがんばりたいブログ

情報科学科の人がいろいろ書きます。

2012-10-01から1ヶ月間の記事一覧

東京工業大学理学部情報科学科のPCにsshでリモートアクセス。

情報科学科のPCの環境はうんちなので、使いたくない。 でも、課題はそこからしか出せない。 そのめも。環境としては、クライアントはLinuxを仮定。 WindowsとかMacでも基本は多分おなじ。まずは、sshの公開鍵を作る。すでにある場合は不要。 $ ssh-keygen演…

string中のアルファベットを全部小文字にする。

#include <iostream> #include <string> #include <algorithm> #include <locale> using namespace std; int main(){ string s; cin >> s; transform(s.begin(),s.end(),s.begin(),::tolower); cout << s << endl; }</locale></algorithm></string></iostream>