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
{ | |
"cmd": | |
[ | |
"echo", "================================================================","&", | |
"echo", "building", "&", | |
"echo", "================================================================", "&", | |
"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat", "&", | |
"cl.exe", "${file}", "/EHsc" | |
], | |
"encoding": "cp949", |
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 <iostream> | |
using namespace std; | |
void print2bin(int d) | |
{ | |
for(int i = 0; i < 32; ++i) | |
cout << ((d >> (31 - i )) & 1); | |
cout << endl; | |
} |
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 <iostream> | |
void right_rotate(int arr[], int s, int t) | |
{ | |
int i, last; | |
last = arr[t]; | |
for(i = t; i > s; i--) | |
{ | |
arr[i] = arr[i - 1]; |
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 <list> | |
#include <algorithm> | |
using namespace std; | |
void printlist(list<int>::iterator iter, list<int>::iterator& end) | |
{ | |
if( iter == end) | |
return; |
NewerOlder