Skip to content

Instantly share code, notes, and snippets.

View samebchase's full-sized avatar
🦑

Samuel Chase samebchase

🦑
View GitHub Profile
#include<iostream>
#include<vector>
using std::vector;
using std::cout;
using std::endl;
using std::cin;
int main(void)
use std::strbuf::StrBuf;
fn reverse_sentence(sentence: ~str) -> ~str {
let mut buffer = StrBuf::new();
let mut string_vector: Vec<~str> = Vec::new();
for word in sentence.split(' ') {
string_vector.push(word.to_owned());
}