Skip to content

Instantly share code, notes, and snippets.

<?php
/*
Question2Answer 1.4 (c) 2011, Gideon Greenspan
http://www.question2answer.org/
File: qa-external-example/qa-external-users.php
Version: 1.4
.file "c.cpp"
.intel_syntax noprefix
.def ___main; .scl 2; .type 32; .endef
.text
.p2align 4,,15
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
push ebp
mov ebp, esp
.file "c.cpp"
.intel_syntax noprefix
.def ___main; .scl 2; .type 32; .endef
.text
.p2align 4,,15
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
push ebp
mov ebp, esp
#include <stdio.h>
#include <math.h>
#include <stddef.h>
class Square
{
private:
float _edge;
public:
all: prop
prop: prop_post.cpp
g++ prop_post.cpp -o prop
prop_post.cpp: prop.cpp prop.php
php prop.php prop.cpp prop_post.cpp
<?php
printf("properties: %s -> %s\n", $argv[1], $argv[2]);
$text = file_get_contents($argv[1]);
function find_close($text, $start)
{
$i = $start + 1;
$level = 1;
#include <stdio.h>
#include <math.h>
#include <stddef.h>
class Square
{
private:
float _edge;
public: