我一直在學習C++大約一週,而且我認爲我已經掌握了一切,但顯然不是。我是中期節目,並決定爲了看看事情的進展而跑步。程序運行,但永遠不會結束。我期待它至少可以打印出第一個cout聲明。 #include <iostream>
using namespace std;
int main()
{
int floors, rooms, i = 0;
cout << "floor
我希望你看看下面的兩個代碼,並告訴我爲什麼第一個工作,另一個不工作。 第一個代碼(工作): #include <iostream>
#include <string.h>
using namespace std;
char* getCoordinates(char* AndroidID)
{//Access the database and get the South Latitude