6 solutions

  • 0
    @ 2024-11-26 19:49:48

    飞舞

    • 0
      @ 2023-10-25 16:17:48
      #include <bits/stdc++.h>
      using namespace std;
      
      int main() {
          char s[] = "Hello";
          char * p;
          for(p = s;*p != '\0';p++)// 在该行补充你的代码
              cout << * p;
          return 0;
      }
      
      • 0
        @ 2023-10-20 20:34:04

        #include <bits/stdc++.h> using namespace std;

        int main() { char s[] = "Hello"; char * p; for(p=s;*p!='\0';p++) cout<<*p; return 0; }

        • -1
          @ 2023-10-20 20:33:11
          #include<bits/stdc++.h>
          using namespace std;
          int main() {
          	cout<<"Hello";
          	return 0;
          }
          
          • -2
            @ 2023-10-20 20:32:58
            #include <bits/stdc++.h>
            using namespace std;
            
            int main() {
                char s[] = "Hello";
                char * p;
                for(p=s;*p!='\0';p++)// p=s“先让p指针指向s的第一位”,*p!='\0'“如p不等于s的最后一位”
                    cout << * p;
                return 0;
            }
            
            
          • -7
            @ 2024-10-25 19:57:55

          • 1

          Information

          ID
          919
          Time
          1000ms
          Memory
          256MiB
          Difficulty
          2
          Tags
          # Submissions
          95
          Accepted
          56
          Uploaded By