Code
  • 首页
  • cpu-architecture
  • performance
  • c++
  • branch-prediction
  • java

如何正确比较C中的字符串?

我试图得到一个程序,让用户输入一个单词或字符,存储它,然后打印它,直到用户再次键入它,退出程序。我的代码是这样的:问题是,我一直得到输入字符串的打印,即使当用户的输入(检查)匹配原始(输入)。我把两者

cstringstrcmp
2024-12-02 10:00:01
  • 1

aliyun

最新文章

  • 如何使用JSON确保字符串是有效的JSON。网
  • 无法读取未定义的属性“msie”- jQuery工具
  • 将旋转的xtick标签与各自的xtick对齐
  • 如何配置slf4j-simple
  • 如何取消最大高度?
  • Shared_ptr转换为数组:应该使用它吗?
  • elasticsearch vs . MongoDB用于过滤应用程序
  • 形式内联内的形式水平在twitter bootstrap?
  • 如何撤消最后的git添加?
  • 我可以在Visual Studio 2012/2013/2015/2017/2019中录制/播放宏吗?
  • 使用C返回一个数组
  • 准备好开发人员ID的macOS安装程序包
  • 我的蛋蛋怎么不见了?
  • Printf与std::字符串?
  • AppSettings从.config文件中获取值

标签

cpu-architectureperformancec++branch-predictionjavaundogit-commitgitversion-controlgit-remotegit-pushgit-branchgit-pullgit-fetchpythongeneratoriteratorjsonmime-typescontent-typearraysjavascriptgit-addcode-formattingcstandards-complianceoperatorscommentsdynamic-memory-allocationstackmemory-managementheap-memorylanguage-agnosticoverwritebackground-colorbrowserhtmldomjqueryvisibilityuse-strictsyntaxjslintremote-branchgit-checkoutpython-moduleidiomsprogram-entry-pointnamespacesbranch
2025 code 京ICP备15047053号-1