Skip to content

Commit

Permalink
try to tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ulmer committed Oct 29, 2024
1 parent 9befe3c commit 63269ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
6 changes: 2 additions & 4 deletions src/libraries/Echo/echo.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#include "include/echo.h"
#include <iostream>
#include "echo.h"

void echo(std::string echo_string) {
std::cout << "The echo says " << echo_string << std::endl;
}

void echo2() {
echo("2");
}
void echo2() { echo("2"); }
4 changes: 1 addition & 3 deletions src/programs/hello_c/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include <stdio.h>

int main(int argc, char** argv) {
printf("Hello World!\n");
}
int main(int argc, char **argv) { printf("Hello World!\n"); }
4 changes: 2 additions & 2 deletions src/programs/hello_world/hello.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <iostream>
#include <echo.h>

#include "hello.h"
#include "include/hello.h"

void say_hello() {
// not found header
echo("Hello World!");
}
8 changes: 5 additions & 3 deletions src/programs/hello_world/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "hello.h"
#include "include/hello.h"
// #include <echo.h>
#include <string>
// #include <string>

int main(int argc, char **argv) {
// ahoi

int main(int argc, char** argv) {
say_hello();
}
3 changes: 2 additions & 1 deletion src/programs/say_hello/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <iostream>

int main(int argc, char ** argv) {
int main(int argc, char **argv) {
// just for info
std::cerr << "Hello" << std::endl;
}

0 comments on commit 63269ba

Please sign in to comment.