Skip to content

Instantly share code, notes, and snippets.

@dhirabayashi
Last active June 25, 2019 11:50
Show Gist options
  • Save dhirabayashi/833720235d77a739c95a252b84bbba82 to your computer and use it in GitHub Desktop.
Save dhirabayashi/833720235d77a739c95a252b84bbba82 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
cout << "何か入力してください >";
int n;
cin >> n;
cout << "入力値: " << n << endl;
return 0;
}
#include <cstdio>
using namespace std;
int main() {
printf("Hello world!\n");
return 0;
}
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
#include <cstdio>
int main() {
printf("何か入力してください >");
int n;
scanf("%d", &n);
printf("入力値: %d\n", n);
return 0;
}
#include <iostream>
using namespace std;
int main()
{
string s = "test";
transform(s.begin(), s.end(), s.begin(), ::toupper);
cout << s << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment