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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mike</title> | |
<link rel="stylesheet" href="../styles.css"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<header> |
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
struct Vector3_A { | |
float x; | |
float y; | |
float z; | |
}; | |
class Vector3_B { | |
Vector3_B(float x, float y, float x); | |
float getX(); |
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
The "right-left" rule is a completely regular rule for deciphering C | |
declarations. It can also be useful in creating them. | |
First, symbols. Read | |
* as "pointer to" - always on the left side | |
[] as "array of" - always on the right side | |
() as "function returning" - always on the right side | |
as you encounter them in the declaration. |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace PrimeSieve | |
{ | |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static uint CollatzNumber(uint number) |
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> | |
bool IsPrime(int number) | |
{ | |
if(number == 2) return true; | |
if(number % 2 == 0 || number == 1) return false; | |
bool isPrime = true; | |
int n = 3; | |
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 Reverse(int number) | |
{ | |
int reversed = 0; | |
while(number > 0) | |
{ | |
reversed = (reversed * 10) + number%10; | |
number /= 10; |
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 "main.hpp" | |
#include "wx/dnd.h" | |
#include "wx/filename.h" | |
#define APP_NAME wxString("Drag 'n' Drop Example") | |
class MyApp: public wxApp | |
{ | |
virtual bool OnInit(); |
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 "wx/wx.h" | |
#include "wx/filename.h" | |
#include "wx/filehistory.h" | |
#include "wx/config.h" | |
#define APP_NAME wxString("File History Example") | |
class MyApp: public wxApp | |
{ | |
virtual bool OnInit(); |
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 DelegateExample | |
{ | |
public class MyClass | |
{ | |
delegate float MyDelegate(float input); | |
MyDelegate DelegateFunction; | |
public void Initialise(bool square) |
NewerOlder