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
CXXFLAGS = -g -Wall -Werror -std=c++11 | |
LDLIBS = | |
PRGM = project | |
SRCS := $(wildcard *.cpp) | |
OBJS := $(SRCS:.cpp=.o) | |
DEPS := $(OBJS:.o=.d) | |
.PHONY: all clean |
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 <algorithm> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
// is_vowel returns true if the given | |
// character is a vowel; false otherwise. | |
bool is_vowel(char c) | |
{ |
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 <stdio.h> | |
#include <string.h> | |
void strrev(char *str) | |
{ | |
char tmp, *end; | |
if (str) { | |
end = str + strlen(str) - 1; | |
while (str < end) { |
NewerOlder