在下列代码的横线处填写(),可以保证输出是“1357”,不会有多余字符。
#include <iostream>
#include <string> using namespace std; int main() {
char str[] = "1234567";
for ( ) // 在此处填入代码
cout << str[i]; return 0;
}
int i = 0; i < strlen(str); i++
int i = 0; str[i] != '\0'; i++
int i = 1; i <= 7; i += 2
int i = 0; i <= 6; i += 2