This file contains 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 <limits.h> | |
#include <float.h> | |
int main(int argc, char** argv) { | |
/* Shows size of variables and types */ | |
printf("CHAR_BIT : %d\n", CHAR_BIT); | |
printf("CHAR_MAX : %d\n", CHAR_MAX); | |
printf("CHAR_MIN : %d\n", CHAR_MIN); |
This file contains 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> | |
int main(void) | |
{ | |
printf(""); | |
printf(""); | |
printf("Hello World!\n"); | |
printf("press a key to end program..."); | |
getchar(); |
This file contains 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
public static string GetExecutingDirectoryName() | |
{ | |
var location = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase); | |
return new FileInfo(location.AbsolutePath).Directory.FullName; | |
} |
This file contains 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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
namespace ConsoleApplication { | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains 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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
namespace ConsoleApplication { | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains 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
using System; | |
using System.Reflection; //required for Assembly namespace | |
using System.IO; //required for Path namespace | |
namespace HelloWorld { | |
class Hello { | |
static void Main(string[] args){ | |
Console.WriteLine("\n Now executing: {0}", ExecutingAssemblyPath()); | |
Console.Write("\n Press any key to exit... "); |
This file contains 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
using System; | |
namespace EarthApotheosis { | |
public class EarthApotheosisConstants | |
{ | |
public static string TITLE = Properties.Resources.Title; | |
public const int KILLS_TO_EARN_ONE_COMBAT_ADV_POINT = 50; | |
public const int MAX_CHARS_PER_LINE_IN_LABEL_DISPLAY = 80; | |
public const string INPUT_CURRENTLY_DISABLED = "Input currently disabled..."; |
This file contains 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
Function QuickZip(path) | |
'@description: Compress and uncompress zip files. | |
'@author: Jeremy England (SimplyCoded) | |
Dim oFso : Set oFso = CreateObject("Scripting.FileSystemObject") | |
Dim oSap : Set oSap = CreateObject("Shell.Application") | |
Dim oWss : Set oWss = CreateObject("WScript.Shell") | |
Dim isZip, count, root, base, add, out | |
Dim isZipping, isCancelable | |
Const NOT_FOUND = 1 | |
Const NOT_A_ZIP = 2 |
This file contains 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
using System; | |
using NAudio; | |
using NAudio.Wave; | |
namespace PlayMp3{ | |
class Program { | |
static void Main(string[] args) | |
{ |
This file contains 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
/* | |
===== Capturing Output From A Console Process ===== | |
This example program relies upon hello_world.exe being in the same directory as this source code's | |
compiled output, which is directory C:\Users\kyrat\Dropbox\csdev\examples\ as of 12 Aug 2022 | |
*/ | |
using System; | |
using System.Diagnostics; |
NewerOlder