摘要:
1 TITLE MASM Template (main.asm) 2 3 ; Description: 4 ; 5 ; Revision date: 6 7 .686P ; Pentium Pro or later 8 .MODEL flat, stdcall 9 .STACK 409610 option casemap:none; 大小写不敏感11 12 13 printf PROTO C :ptr byte,:vararg14 scanf PROTO C :dword,:va... 阅读全文
摘要:
1 TITLE MASM Template (main.asm) 2 3 ; Description: 4 ; 5 ; Revision date: 6 7 .686P ; Pentium Pro or later 8 .MODEL flat, stdcall 9 .STACK 409610 option casemap:none; 大小不敏感11 12 13 printf PROTO C :dword,:vararg14 scanf PROTO C :dword,:vararg15 gets PROTO C ... 阅读全文
摘要:
1 TITLE MASM Template (main.asm) 2 3 ; Description: 4 ; 5 ; Revision date: 6 7 .386P ; Pentium Pro or later 8 .MODEL flat, stdcall 9 .STACK 409610 option casemap:none; 大小不敏感11 12 13 printf PROTO C :dword,:vararg14 scanf PROTO C :dword,:vararg15 gets PROTO C ... 阅读全文
摘要:
1 #include<std_lib_facilities.h> 2 int main() 3 { 4 int n; 5 cin>>n; 6 /*if (cin.fail()) 7 cin.clear();*/ 8 if(!cin) 9 cout<<"asf";10 system("pause");11 }12 clear()will chang the condition ofstream to good().This part of date's input and output are as follow 阅读全文
摘要:
1 #include <stdio.h> 2 #include <math.h> 3 #define e 2.718281828459 4 #define pi 3.1415926535898 5 int main() 6 { 7 int n; 8 scanf("%d", &n); 9 while(n--)10 {11 long long i, j;12 scanf("%lld", &i);13 j = (long long)(double)(log10(sqrt(2*pi*i)) + i*log10(i/e))+ 阅读全文
摘要:
1 #include<iostream> 2 #include"std_lib_facilities.h" 3 using namespace std; 4 class practice 5 { 6 public: 7 practice& a(char m) 8 { 9 cout<<m;10 return *this;11 }12 practice& b(char n)13 {14 cout<<n;15 return *this;16 }17 private:18 char... 阅读全文
摘要:
#include<iostream>#include<iterator>#include<std_lib_facilities.h>int main(){ vector<int>aa; int a; while(cin>>a) { aa.push_back(a); } vector<int>::iterator it=aa.begin(); aa.erase(it); for( vector<int>::size_type i=0;i<aa.size();i++) { cout<<aa[i]& 阅读全文
摘要:
以下是我自己做的习题代码:#include"std_lib_facilities.h"vector<int> first;void f1(vector<int> first){ for(int i=0;i<(first.size()/2);i++) { swap(first[i],first[first.size()-1-i]); } for(int i=0;i<first.size();i++) cout<<first[i]<<" ";}int main(){ int firstt; whil 阅读全文