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
int writedatatoFile(){ | |
std::ofstream file("c:\\demo.dat",std::ios_base::app); | |
if(file.is_open()){// IF EXITS OPEN AND APPEND DATA | |
string data="dummy"; | |
file<<dummy<<endl; | |
file.close(); | |
return 1; | |
} | |
else{// Create a file | |
try{ |
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
viewpager.setPageMargin(30); | |
/** | |
*Clip to Padding - Sets whether this ViewGroup will clip its children to | |
*its padding and resize (but not clip) any EdgeEffect to the padded region, if padding is present. | |
*/ | |
viewpager.setClipToPadding(false); | |
viewpager.setPadding(120, 0, 120, 0); |
NewerOlder