[英]How do you run code up until a certain line on Xcode?
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
cout << argv[0]; //ONLY WANT TO RUN TILL HERE
for(int x = 1; x < argc; x++)
{
string s(argv[x]);
if(
}
return 0;
}
I added and enabled a breakpoint on that line, but it still runs the whole program. 我在该行添加并启用了一个断点,但它仍然运行整个程序。
Screenshot of code: 代码截图:
You need to fix the errors in your code. 您需要修复代码中的错误。 The line with the red dot next to it has a syntax error that needs to be solved.
旁边带有红点的行有一个需要解决的语法错误。 Once you fix the error the program will run as desired.
修复错误后,程序将按需运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.