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 <string> | |
| #include <iostream> | |
| #include <cstdlib> | |
| #include <FL/Fl.H> | |
| #include <FL/fl_draw.H> | |
| #include <FL/Fl_Window.H> | |
| #include <FL/Fl_Box.H> | |
| #include <FL/Fl_Native_File_Chooser.h> | |
| #include <FL/Fl_Output.H> |
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 <string> | |
| #include <iostream> | |
| #include <cstdlib> | |
| #include <sstream> | |
| #include <FL/Fl.H> | |
| #include <FL/fl_draw.H> | |
| #include <FL/Fl_Window.H> | |
| #include <FL/Fl_Box.H> | |
| #include <FL/Fl_Native_File_Chooser.h> |
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
| Git and GitHub: | |
| Configuration hierarchy: | |
| /etc/gitconfig | |
| ~/.gitconfig | |
| $GIT_REPOSITORY/.git/config | |
| .git/index - files added to the staging area. Git status actially parses and displays this file. | |
| File states: |
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 <stdlib.h> | |
| //the first struct contains configurational data | |
| //it will be written to the beginning of the file and always be skipped with fseek | |
| struct Sizes { | |
| int max_rows; | |
| int max_data; | |
| }; |
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 <stdlib.h> | |
| #include <string.h> | |
| //write struct data to a file | |
| //the first struct contains configuration data that will be skipped when read from the file | |
| struct Sizes { | |
| int max_rows; | |
| int max_data; |
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 <stdlib.h> | |
| //#define DO_WRITE | |
| struct Sizes | |
| { | |
| int max_rows; | |
| int max_data; | |
| }; |
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 <stdlib.h> | |
| struct Sizes { | |
| int max_data; | |
| int max_rows; | |
| }; | |
| int main(int argc, char** argv) { |
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 <assert.h> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #define MAX_DATA 512 | |
| #define MAX_ROWS 100 | |
| struct Address { |
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 <string> | |
| #include <sstream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <boost/regex.hpp> | |
| #include <boost/date_time/gregorian/gregorian.hpp> | |
| int main (int argc, char** argv) { |
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 <string> | |
| #include <iostream> | |
| #include <boost/regex.hpp> | |
| #include <boost/date_time/gregorian/gregorian.hpp> | |
| int main(int argc, char** argv) { | |
| boost::regex date(R"((\d{2})\.(\d{2})\.(\d{4}))"); | |
| boost::smatch match; |