字符型数字,不能做数学运算,只能做字符运算。
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream> using namespace std; int main() { int x=10,y=20; cout<<x+y<<endl; string a="10",b="20"; cout<<a+b<<endl; // cout<<x+a; return 0; }
Username or Email Address
Password
Remember Me
Username
Email
Registration confirmation will be emailed to you.