没事找事,用字符串写一个川普戒网瘾2025-05-28 15:50:13发布于:广东1阅读0回复0点赞#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; if(s[0]'-') cout<<"negative"; else if(s[0]'0') cout<<"zero"; else cout<<"positive"; return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个