This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (sb.length() > 4000) { | |
| Log.v(TAG, "sb.length = " + sb.length()); | |
| int chunkCount = sb.length() / 4000; // integer division | |
| for (int i = 0; i <= chunkCount; i++) { | |
| int max = 4000 * (i + 1); | |
| if (max >= sb.length()) { | |
| Log.v(TAG, "chunk " + i + " of " + chunkCount + ":" + sb.substring(4000 * i)); | |
| } else { | |
| Log.v(TAG, "chunk " + i + " of " + chunkCount + ":" + sb.substring(4000 * i, max)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.os.Bundle; | |
| import com.google.android.youtube.player.YouTubeBaseActivity; | |
| import com.google.android.youtube.player.YouTubeInitializationResult; | |
| import com.google.android.youtube.player.YouTubePlayer; | |
| import com.google.android.youtube.player.YouTubePlayer.OnInitializedListener; | |
| import com.google.android.youtube.player.YouTubePlayer.Provider; | |
| import com.google.android.youtube.player.YouTubePlayerView; | |
| public class MainActivity extends YouTubeBaseActivity implements | |
| OnInitializedListener { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <hash_map> | |
| #include <iostream> | |
| #include <list> | |
| #include <vector> | |
| #include <algorithm> | |
| using namespace std; | |
| using namespace stdext; | |
| int R,C;//地图行列 |