1 | ~yvals.h(513) : error C2143: syntax error : missing ';' before 'namespace' |
其下也跟著一堆
1 | error C2061: syntax error : identifier 'DWORD' |
詳細檢查結果,是定義某個結構時少了個分號……
特此記錄,以便日後再犯時參考~(= =)~
1 | ~yvals.h(513) : error C2143: syntax error : missing ';' before 'namespace' |
1 | error C2061: syntax error : identifier 'DWORD' |
01 | bool isPrime( const DWORD n ){ |
02 | if ( n < 2 ) |
03 | return FALSE; |
04 | if ( n == 2 || n == 3 ) |
05 | return TRUE; |
06 | if ( !(n%2) || !(n%3) ) |
07 | return FALSE; |
08 | DWORD limit = ( DWORD ) sqrt ( ( double )n ); |
09 | for ( DWORD i=5, gap=2; i<=limit; i+=gap, gap=6-gap ){ |
10 | if ( !(n%i) ){ |
11 | return FALSE; |
12 | } |
13 | } |
14 | return TRUE; |
15 | } |
01 | bool * eratosthenes( const DWORD n ){ |
02 | bool * pPrime = new bool [n+1]; |
03 | pPrime[0] = pPrime[1] = FALSE; |
04 | for ( DWORD i=2; i<=n; ++i ){ |
05 | pPrime[i] = TRUE; |
06 | } |
07 | DWORD limit = ( DWORD ) sqrt ( ( double )n ); |
08 | for ( DWORD i=2; i<limit; ++i ){ |
09 | if ( pPrime[i] ){ |
10 | for ( DWORD j=i*i; j<=n; j+=i ){ |
11 | pPrime[j] = FALSE; |
12 | } |
13 | } |
14 | } |
15 | return pPrime; |
16 | } |
€815,000 Lottery Prize [ REF. NUMBER: TCC/0204/ESP/971]
差出人: EURO MILLIONES AUTHORITY (denfo@newscet.es)
送信日時: 2010年2月2日 11:08:49
宛先: (Beep)
EURO MILLIONES LOTTERY BOARD.
REF. NUMBER: TCC/0204/ESP/971
BATCH NUMBER: 2010/BTH/30046
EMAIL: (Beep)
Dear Email Client,
This is to notify you that your email address shown above has won the EURO MILLIONES LOTTERY
Online Computer ballot draw that was hosted in Madrid Spain. You have been awarded the prize
of €815,000 (EIGHT HUNDRED AND FIFTEEN THOUSAND EUROS) with the Winning information listed above.
If you are the accredited owner of this email address [ (Beep) ], please contact the appointed agent
company (GLOBAL GESTORES S. A) with the below requirements including the winning datas above.
1. Fulnames
2. Telephone number
3. Mobile number
4. Country
GLOBAL GESTORES S. A.
MR. FERNAND CORTES (claim officer)
TEL: +34 672-892-907
FAX: +34 911-820-312
Email: globagestores@live.com or globalgestores@luckymail.com
All information will be strictly verified by your agent before payment will be carried out.
Congratulations once again from our board of Directors.
Mrs. Angela De La Costa
EURO MILLIONES BOARD.
Madrid, 2nd Jan. 2010.
ブラックホールのことを学術的にはマッチョと呼ぶのがそんなに気になるのかい、球筋に出てるぜ