2017-02-09 19 views
1
#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; 
} 

我在該行添加並啓用了斷點,但它仍然運行整個程序。如何運行代碼直到Xcode上的某一行?

截圖代碼:

+0

張貼截圖。也許有些東西與您設定的斷點(您認爲?)有些魚腥味。 – shallowThought

+0

添加屏幕截圖 – DoABarrelRoll94

+0

由於出錯(紅點),您的構建失敗。 – shallowThought

回答

0

您需要修復代碼中的錯誤。帶有紅點的行有一個需要解決的語法錯誤。一旦你解決了錯誤,程序將按需要運行。