This file contains 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 <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
//Output a line with each word reversed without changing the order of the words. | |
int main() | |
{ | |
//ifstream cin("word_reversal.txt"); |
This file contains 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 <fstream> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
//Reverse the text. | |
int main() | |
{ | |
//ifstream cin("reverse_text.txt"); | |
int n; | |
int index=1; |
This file contains 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 <fstream> | |
#include <iostream> | |
#include <cmath> | |
using namespace std; | |
//Computing the length of the third side in a right-angled triangle. | |
int main() | |
{ | |
//ifstream cin("geometry_made_simple.txt"); | |
int a,b,c; | |
int index=0; |
This file contains 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 <fstream> | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
//Make all stacks the same height within the minimum moves. | |
int main() | |
{ | |
//ifstream cin("box_of_bricks.txt"); | |
int n; | |
int index=1; |
This file contains 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 <fstream> | |
#include <iostream> | |
#include <sstream> | |
using namespace std; | |
//Summing the digits of the integer. | |
int main() | |
{ | |
//ifstream cin("digital_roots.txt"); | |
string s; | |
while(cin >> s) |
This file contains 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 <fstream> | |
#include <iostream> | |
#include <string> | |
#include <map> | |
using namespace std; | |
//Percent-encode a string of characters. | |
int main() | |
{ | |
//ifstream cin("the_seven_percent_solution.txt"); | |
map<char,char> m; |
This file contains 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; | |
//Hello World. | |
int main() | |
{ | |
cout<<"hello world!"<<endl; | |
return 0; | |
} |
NewerOlder