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
| //reallySimpleClock.cpp | |
| //for KT_Monda | |
| #include <conio.h> | |
| #include <iostream> | |
| #include<fstream> | |
| #include <ctime> | |
| using namespace std; | |
| int main() |
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
| /* doSomethingWhenYouFindaCSV.cpp | |
| reads from, line by line, a text file: INPUT.txt | |
| adds a newline when it encounters a comma | |
| writes to, line by line, a text file: OUTPUT.txt | |
| *********************************************************/ | |
| #include<iostream> | |
| #include<string.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
| /* input_temp_output.cpp | |
| reads from, line by line, an input text file | |
| writes to temp the reads from temp and writes to out | |
| *********************************************************/ | |
| #include<iostream> |
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
| /* fedexAPP.cpp | |
| *********************************************************/ | |
| #include<iostream> | |
| #include<string.h> | |
| #include<fstream> | |
| using namespace std; | |
| int main () { |
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
| //re-name-file-usr-input.cpp | |
| #include<iostream> | |
| #include<fstream> | |
| #include<string.h> | |
| using namespace std; | |
| int main() | |
| { |
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
| //re-name-file-usr-input.cpp | |
| #include<iostream> | |
| #include<fstream> | |
| #include<cstring> | |
| using namespace std; | |
| int main() | |
| { |
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
| //reallySimpleClock.cpp | |
| //for KT_Monda [FINAL] | |
| #include<conio.h> | |
| #include<iostream> | |
| #include<fstream> | |
| #include<ctime> | |
| #include<windows.h> | |
| using namespace std; |
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
| # read_write.rb | |
| # reads from input file | |
| # writes to output file | |
| # printing line nums | |
| counter = 1 | |
| outFile = File.new("output.txt", "w") | |
| inFile = File.new("input.txt", "r") | |
| while (line = inFile.gets) | |
| outFile.puts "#{counter}: #{line}" |
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
| // recursive function examples | |
| #include<iostream> | |
| using namespace std; | |
| void printForward(int p) { | |
| if (p==0) | |
| return; | |
| cout << p; | |
| printForward(p-1); |