涓汉椤圭洰璇勬祴鈥斺€斾腑灏忓鏁板鍗峰瓙鐢熸垚

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了涓汉椤圭洰璇勬祴鈥斺€斾腑灏忓鏁板鍗峰瓙鐢熸垚相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/style' title='style'>style   str   鏁板   璇勬祴   瀛︿範   琛ㄧず   鐢熸垚鏂囦欢   鎯虫硶   涓汉   

缁撳缂栫▼涓弻鏂逛簰鐩稿鏌ヤ唬鐮佹槸涓€涓浉浜掑涔犵殑杩囩▼锛屼粠瀵规柟鐨勪唬鐮佷腑鍙互瀛﹀埌涓€浜涙兂涓嶅埌鐨勬柊鐨勬兂娉曘€傛鎵€璋撳瓟瀛愯鐨?ldquo;涓変汉琛岋紝蹇呮湁鎴戝笀鐒?rdquo;銆?/p>

浼樼偣锛?/p>

1銆佸缓绔嬩竴涓敤鎴风被锛屽皢瀵圭敤鎴风殑鐧诲綍銆佸垏鎹€佺敓鎴愯瘯鍗枫€佽緭鍑烘枃浠剁瓑鎿嶄綔灏佽鍒扮被涓紝鍏锋湁鑹ソ鐨勫皝瑁呮€у拰鍙墿灞曟€с€?/p>

class User {
    private:
        string Passward;
        int Number;
        string Name;
        string Type;
        string folderPath;
        string Path;
        ofstream Paper;
        stringstream question;
    public:
        void SignIn();
        void Exam_Paper();
        void Symbol(int option,int ope);
        void Switch_Type();
        void Name_File();
        bool Check();
};

2銆佸湪鐢熸垚璇曞嵎鐨勫嚱鏁颁腑瀵逛唬鐮佽繘琛屼簡閲嶇敤锛屽噺灏戜簡浠g爜閲忋€傦紙鐩歌緝涔嬩笅鑷繁鍒嗕簡涓夌被澶勭悊锛屾暣涓嚱鏁扮殑浠g爜鏄惧緱鍐楅暱锛?/p>

3銆佹€濊矾娓呮櫚锛屼富鍑芥暟涓彧绠€鍗曡皟鐢ㄤ簡鍑芥暟锛屼唬鐮侀噺寰堝皯銆?/p>

4銆佸浜庢搷浣滄暟锛屾湁鍏堝悗闂锛堟瘮濡傛牴鍙峰湪鎿嶄綔鏁板墠鑰屽钩鏂瑰湪鎿嶄綔鏁板悗锛夛紝濂归噰鍙栫殑鏂瑰紡鏄缓绔嬩竴涓嚱鏁板鎿嶄綔鏁拌繘琛屽鐞嗭紝杩欓潪甯稿ぇ鍦板噺灏戜簡鍑芥暟鐨勪唬鐮侀噺銆?/p>

void User::Symbol(int option,int ope) {//瀵规瘡涓搷浣滄暟杩涜澶勭悊
    switch(option) {
        case 0://涓嶅鐞嗭紝鍗冲皬瀛︾殑棰樼洰
            question<<ope;
            break;
        case 1:
            question<<ope<<"^2";
            break;
        case 2://option涓?-2鏃讹紝琛ㄧず鐢熸垚鍒濅腑鐨勯鐩?/span>
            question<<""<<ope;
            break;
        case 3:
            question<<"sin"<<ope;
            break;
        case 4:
            question<<"cos"<<ope;
            break;
        case 5://option涓?-5鏃讹紝鐢熸垚鐨勬槸楂樹腑鐨勯鐩?/span>
            question<<"tan"<<ope;
            break;
    }
}

 

缂虹偣锛?/p>

1銆佸浜庢鏌ユ槸鍚︾敓鎴愮浉鍚岄鐩繕瀛樺湪涓€瀹氶棶棰樸€?/p>

2銆佹病鏈夌敓鎴愭枃浠跺す锛屽湪瀹為檯鎿嶄綔涓剰涔変笉澶с€?/p>

以上是关于涓汉椤圭洰璇勬祴鈥斺€斾腑灏忓鏁板鍗峰瓙鐢熸垚的主要内容,如果未能解决你的问题,请参考以下文章

TiKV 鎴愪负 CNCF 鎵樼椤圭洰鈥斺€旀灦鏋勫師鐞嗕簡瑙d竴涓嬶紵| Meetup 棰勫憡

鐧藉珫鐗?2019Java寮€鍙戝叏缁堢瀹炴垬绉熸埧椤圭洰瑙嗛鏁欑▼

灏忕▼搴忕煭瑙嗛椤圭洰鈥斺€斺€斿紑鍙戠敤鎴蜂俊鎭箣鐢ㄦ埛閫€鍑烘敞閿€

浠巊olang-gin-realworld-example-app椤圭洰瀛﹀啓httpapi (涓?

鍖诲鑷劧璇█澶勭悊鐩稿叧璧勬簮鏁寸悊

鍩轰簬SpringBoot鎼缓涓€涓甫鏁版嵁搴撹闂殑WEB椤圭洰(璁板綍鎵€闇€鐨勪緷璧?閰嶇疆,椹卞姩瀹夎绛夋敞鎰忎簨椤?