Ejemplo n.º 1
0
int main(int argc, char *argv[])
{
  VARTYPE a[] = {8,1,3,2,5,6,10,8,9};
  insertAtoN(a);


  //insertNa(findNode(5),9);
  printN();
  extractList(1,4);
  printN();
  return 0;
}
Ejemplo n.º 2
0
void printIrene(int x, int y) {
	printI(x,y);
	printR(x+SIZE+GAP,y);
	printE(x+5*SIZE+2*GAP,y);
	printN(x+8*SIZE+3*GAP,y);
	printE(x+12*SIZE+4*GAP,y);
}
Ejemplo n.º 3
0
void printKevin(int x, int y) {
	printK(x,y);
	printE(x+4*SIZE+GAP,y);
	printV(x+7*SIZE+2*GAP,y);
	printI(x+11*SIZE+3*GAP,y);
	printN(x+12*SIZE+4*GAP,y);
}
Ejemplo n.º 4
0
Archivo: printn.c Proyecto: clsera/CLab
int main()
{
	int n;
	puts("Input n: ");
	scanf("%d", &n);
	printN(n);
    return 0;
}
Ejemplo n.º 5
0
void printDevina(int x, int y) {
	printD(x,y);
	printE(x+4*SIZE+GAP,y);
	printV(x+7*SIZE+2*GAP,y);
	printI(x+11*SIZE+3*GAP,y);
	printN(x+12*SIZE+4*GAP,y);
	printA(x+16*SIZE+5*GAP,y);
}
Ejemplo n.º 6
0
void printAngela(int x, int y) {
	printA(x,y);
	printN(x+3*SIZE+GAP,y);
	printG(x+7*SIZE+2*GAP,y);
	printE(x+12*SIZE+3*GAP,y);
	printL(x+15*SIZE+4*GAP,y);
	printA(x+18*SIZE+5*GAP,y);
}
Ejemplo n.º 7
0
int main() {
	int n;
	scanf("%d", &n);
	start = clock();
	printN(n);
	stop = clock();
	duration = ((double)(stop-start))/CLK_TCK;
	
	printf("duration=%f\n", duration); 
	
	return 0;
}
Ejemplo n.º 8
0
void printNumber(int n) {
	int m;
	if (n < 0) {
		printf("%s", "fu ");
		n = abs(n);
	} 

	if ( n >= 10) {
		printNumber(n / 10);
		printf("%s", " ");
	}
	m = n % 10;	
	printN(n % 10);
		
	
}
Ejemplo n.º 9
0
void printFilePath(const SBFilePath *path)
{
  SBString *tStr;

  print("'");
  if( path->nElems == 0 )
    print("/");

  for(int i=0; i < path->nElems; i++)
  {
    if( sbArrayElemAt(path, i, (void **)&tStr, NULL) != 0 )
    {
      print("unable to print path\n");
      return;
    }
    print("/");
    printN(tStr->data, sbStringLength(tStr));
  }
  print("'");
}
Ejemplo n.º 10
0
void printN(int n) {
	if (n) {
		printN(n-1);
		printf("%d\n", n);
	}
}
Ejemplo n.º 11
0
Archivo: printn.c Proyecto: clsera/CLab
void printN(int n)
{
	printN(n - 1);
	puts(n + "\n");
	return;
}
int main() {
  printN(n); printf("\n");
  return 0;
}
void printN(unsigned n)
{ if (n >= 10) printN(n / 10);
  printf("%u ", n % 10);
}