Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>
#include<windows.h>
#include<malloc.h>
int main(void)
{
int c;
int i;
int j;
nihao:
#include <stdio.h>
int main()
{
char op;
double data1,data2,r;
printf("请输入式子\n");
scanf("%lf%c%lf",&data1,&op,&data2);
switch(op)
{
case '+':r=data1+data2;break;
@donly
donly / gist:1294543
Created October 18, 2011 03:28
代码风格示范
// 设置标题背景图
[functionButton setBackgroundImage:(i == 0 ? firestImageNormal : othersImageNormal)
forState:UIControlStateNormal];
[functionButton setBackgroundImage:(i == 0 ? firestImageHighlighted : othersImageHighlighted)
forState:UIControlStateHighlighted];
// 未完