C++ library that seeks to add basic I/O features
-
getIntArr();
: Get int array -
getFloatArr();
: Get float array -
getCharArr();
: Get char array NEEDS FIXING -
showIntArr();
: Display any argument with formatting BAREBONES FOR NOW -
showCharArr();
: Display any argument with formatting BAREBONES FOR NOW -
showFloatArr();
: Display any argument with formatting BAREBONES FOR NOW -
count;
: count elements in array
- : Proper display functionality for each of the primitives and arrays with more formatting
- : Fix buffer related issues resulting in various bugs for incorrect inputs
- : Implement proper error handling - WIP
- : Write errors to a proper error stream and log file to a log stream with
cerr
andclog
- : Update the release
- : Implement a bashscript for each install
- : Sum all elements of int, float arrays - WIP
- : Average all elements of int, float arrays - WIP
- : Find element by value or index in arrays - WIP
- Get Integer :
getInt("Prompt Goes Here");
- Get Float :
getFloat("Prompt Goes Here");
- Get Char :
getChar("Prompt Goes Here");
- Get String :
getString("Prompt Goes Here");
- Get Bool :
getBool("Prompt Goes Here");
- Get Int Array :
getIntArr(size, "Prompt Goes Here");
- Get Float Array :
getFloatArr(size, "Prompt Goes Here");
- Get Char Array :
getCharArr(size, "Prompt Goes Here");
- Get Bool Array :
getBoolArr(size, "Prompt Goes Here");
- Display Int Array :
showIntArr(arr_ptr, size);
- Display Float Array :
showFloatArr(arr_ptr, size);
- Display Char Array :
showCharArr(arr_ptr, size);
- Display Bool Array :
showBoolArr(arr_ptr, size);
- Find If An Int Exists In An Unique Int Array :
intExists(arr_ptr, val, size);
- Find If Float Exists In An Unique Float Array :
floatExists(arr_ptr, val, size);
- Find If Char Exists In An Unique Char Array :
charExists(arr_ptr, val, size);
- Int Array :
count(arr_ptr, val);
- Float :
count(arr_ptr, val);
- Char Array :
count(arr_ptr, val);
- BoolArray :
count(arr_ptr, val);
- Download ext_io.h
- Place it on the directory of your project
- Include ext_io.h :
#include "ext_io.h"
MUST BE IN SAME DIRECTORY
Check the test.cpp file for implementation details
- Input buffer might break things, specially
getString();
- Exception handling not implemented yet
- Out of bound values might cause stack overflows
showCharArr();
has problems printing the memory locationshowXArr();
is just a demo function for now, and causes several issues with formattinggetBoolArr();
has a hard time with any nontrue
orfalse
inputs and gives unexpected results- find algos are linear and need to be optimized