Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
void input(int *i, int *j);
int solveIJ3NPlus1MaxCycleLengthProblem(int i, int j);
int solve3NPLus1Problem(int n);
int main()
{
while(1){
@housemeow
housemeow / hello.c
Last active August 29, 2015 13:57 — forked from anonymous/hello.c
something
#include <stdio.h>
int main()
{
printf("hello\n");
printf("world\n");
return 0;
}
scanf("%d %d", &x_size, &y_size);
for(x=0;x<x_size;x++)
{
for(y=0;y<y_size;y++)
{
int value;
scanf("%d", &value);
mapArray[y][x] = value;
}
}
int strcmp(const char* s1, const char* s2)
{
while(1)
{
if(*s1>*s2)
{
return 1;
}else if(*s1<*s2)
{
return -1;
<?xml version="1.0" encoding="utf-8" ?>
<androidstation>
<phone>
<phoneid>1</phoneid>
<name>Desire 200 </name>
<brand>HTC</brand>
<CPU>單核心1.0Ghz</CPU>
<RAM>512</RAM>
<screenSize>3.5</screenSize>
<memory>4</memory>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<script src="scripts/jquery-2.0.2.min.js"></script>
<script>
var phonesXml = null;
var url = "phones.xml";
@model IEnumerable<MvcApplication1.Models.UnitCounter>
@{
ViewBag.Title = "公部門函轉統計資料庫";
}
@section Scripts{
@Scripts.Render("~/bundles/jqueryui")
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
<script type="text/javascript">
public ActionResult SignUp(string email, string password, string name, string nickname, string description)
{
member member = new member();
member.email = email;
member.password = password;
member.name = name;
member.nickname = nickname;
member.description = description;
UMSModel umsModel = new UMSModel();
private void sweepDeadBodies() {
Array<Body> bodies = new Array<Body>();
world.getBodies(bodies);
for (Body body : bodies) {
if (body != null) {
BodyData bodyData = (BodyData) body.getUserData();
if (bodyData.isDead()) {
body.setUserData(null);
world.destroyBody(body);
body = null;
ShapeRenderer shapeRenderer = new ShapeRenderer();
shapeRenderer.setProjectionMatrix(camera.combined);
shapeRenderer.begin(ShapeType.Line);
shapeRenderer.setColor(1, 0, 0, 1);
shapeRenderer.rect(earthSprite.getX(), earthSprite.getY(),
earthSprite.getWidth(), earthSprite.getHeight());
shapeRenderer.circle(0, 0, earthSprite.getWidth());
shapeRenderer.end();