Repository navigation
Expand file tree
/
Copy pathtest.cpp
More file actions
114 lines (100 loc) · 2.33 KB
/
Copy pathtest.cpp
File metadata and controls
114 lines (100 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#include <bits/stdc++.h>
using namespace std;
// int gcd(int a,int b){return !b?a:gcd(b,a%b);}
// int qp(int a, int b)
// {
// if (b == 0)
// return 1;
// if (b % 2 == 1)
// return qp(a, b / 2) * qp(a, b / 2) * a;
// if (b % 2 == 0)
// return qp(a, b / 2) * qp(a, b / 2);
// return 1;
// }
// inline void write(int res)
// {
// if (res < 0)
// {
// putchar('-');
// res = -res;
// }
// if (res > 9)
// write(res / 10);
// putchar(res % 10 + '0');
// }
// inline int read()
// {
// int s = 0, w = 1;
// char c = getchar();
// while (c > '9' || c < '0')
// {
// if (c == '-')
// w = -1;
// c = getchar();
// }
// while (c <= '9' && c >= '0')
// {
// s += (s << 3) + (s << 1) + c - 48;
// c = getchar();
// }
// return s * w;
// }
int main()
{
// int arr[5]={1,3,5,7,9};
// int *p;
// p=arr;
// cout<<*p++<<" "<<*(++p)<<" "<<++(*p)<<" "<<(*p)++<<" "<<*p<<endl;
// // ++ > * 自增运算符的优先级更高
// cout<<*p+*p++<<" "<<*p<<endl;
// for(int i=0;i<5;i++) cout<<arr[i]<<" ";
// int a=-2,b=-1;
// while(a++ || ++b)
// {
// printf("%d %d \n",a,b);
// }
// printf("%d %d \n",a,b);
// printf("%d",'\o7');
// printf("%d",0x3f);
// printf("\077 \n \77");
// printf("%c\n",'\x3f');
// printf("\x3f");
// printf("%c",'9');
// printf("%d",NULL);
FILE *fp1,*fp2;
int i=123123;
char str[100];
char ch;
// if((fp1=fopen("/Users/make/Desktop/cpp/cppcode/t1.txt","r+"))==NULL){
// printf("null");
// exit(0);
// }
// fp2=fopen("/Users/make/Desktop/cpp/cppcode/t2.txt","w+");
// fp1=fopen("/Users/make/Desktop/cpp/cppcode/t1.txt","r+");
// while((ch=fgetc(fp1))!=-1)
// {
// str[i]=ch;
// i++;
// }
// fputs(str,fp2);
// printf("%d\n",i);
// printf("%s\n",str);
// fclose(fp1);
// fclose(fp2);
// printf("%3d",i);
// float t=1.00;
// printf("%6.2f\n ",t);
// int x=10;
// printf("%5.3d\n",x);
// int x[10]={1,2,3};
// int n=sizeof(x);
// printf("%d",n);
// char c[100];
// scanf("%s",c);
// printf("%d",strlen(c));
int x;
scanf("%x",&x);
printf("%d",x);
return 0;
}
//0