[ create a new paste ] login | about

Link: http://codepad.org/g1useOST    [ raw code | output | fork ]

C, pasted on May 19:
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
	/*char s1[10], s2[10];

	strcpy_s(s1, "abc");
	strcpy_s(s2, "d");

	int Kq = strcmp(s1, s2);
	printf("\nKq = %d", Kq);*/

	char s[] = "123";
	int so = atoi(s);
	printf("\nso = %d", so);

	int x = 250;
	char ketqua[30];
	_itoa_s(x, ketqua, 16);
	printf("\nHe 16: %s", ketqua);

	char s1[30];
	strcpy(s1, "Son,dep,trai");
	char *p, *p1;
	p = strtok(s1, ",");
	p1 = strtok(NULL, ",");
	printf("\np = %s", p);
	printf("\np1 = %s", p1);
	_getch();
	return 0;
}


Output:
1
Line 17: error: conio.h: No such file or directory


Create a new paste based on this one


Comments: