老師那天跟我說:「我覺得你對這個很有興趣 你來做這個好了」
不能推掉嗎
就說你剛才暈頭了,需要更多時間思考之類的
QQ我想在學生議會推mail他們都不太想了,社團更...
是 12 小時制沒表示上午下午或 AM PM 的都該去撒大海
我反而覺得在 JSON 輸出時間欄位沒用 ISO 8601 或 unix time 的根本就該撒大海
MS .NET Date time format(X
我說的兩個都包含了啊, ISO 8601 本來就該帶表示的時區或時間偏差,然後 unix time 本來就是換算成無時區狀態,然後各自表述
我覺得寫了 Oct 的也該火葬,縮寫應該要 Oct. 啊!
you really should to add a space, shouldn't you?
這樣在 git diff 的時候才不會多一行 (#
mv /home/@koru1130 /dev/中華人民共和國
問個
int array[10] = {0};
cout << array << "\n";
cout << array + 20;這會出現 undefined behavior 還是 runtime error 還是一切正常
還有這個
int array[10] = {0};
cout << array[0] << "\n";
cout << array[20];
/cpp int array[10] = {0};
cout << array << "\n";
cout << array + 20;
/cpp int array[10] = {0};
std::cout << array << "\n";
std::cout << array + 20;
/cpp #include <iostrem>
int array[10] = {0};
std::cout << array << "\n";
std::cout << array + 20;
#include <iostream>
int array[10] = {0};
std::cout << array << "\n";
std::cout << array + 20;
/cpp #include <iostream>
int array[10] = {0};
std::cout << array << "\n";
std::cout << array + 20;
/cpp #include <iostream>
int array[10] = {0};
cout << array << "\n";
cout << array + 20;
Language:
cpp
Source:
#include <iostream>
using namespace std ;
main(){
int array[10] = {0};
cout << array << "\n";
cout << array + 20;
}Warnings:
source_file.cpp:3:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main(){
^Result:
0x7ffd7a97ba50
0x7ffd7a97baa0
Note:
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
Language:
cpp
Source:
#include <iostream>
using namespace std ;
int main(){
int array[10] = {0};
cout << array << "\n";
cout << array + 20;
}Result:
0x7fffa1d54e10
0x7fffa1d54e60
Note:
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
Language:
cpp
Source:
#include <iostream>
using namespace std ;
main(){
int array[10] = {0};
cout << array[0] << "\n";
cout << array[20];}Warnings:
source_file.cpp:3:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main(){
^
source_file.cpp: In function ‘int main()’:
source_file.cpp:6:18: warning: ‘array[20]’ is used uninitialized in this function [-Wuninitialized]
cout << array[20];}
^Result:
0
0
Note:
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
cout << "x = ";
is the same as
put(cout,"x = ");
```
while(x --> 0)
這叫作 x 趨近於 0
Error: 413 Request Entity Too Large
其實 stdio 跟 iostream 哪個效能比較好?
iostream 會慢是因為要跟 std sync
Language:
cpp
Source:
#include <iostream>
using namespace std;
int main(){
int array[10] = {0};
cout << array[0] << "\n";
cout << array[20];
}Warnings:
source_file.cpp: In function ‘int main()’:
source_file.cpp:6:18: warning: ‘array[20]’ is used uninitialized in this function [-Wuninitialized]
cout << array[20];
^Result:
0
0
Note:
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.
/cpp@mmis_js_bot #include <iostream>
using namespace std ;
main(){
int array[10] = {0};
cout << array[0] << "\n";
cout << array[20];
}
/cpp@mmis_js_bot #include <iostream>
using namespace std ;
int main(){
int array[10] = {0};
cout << array << "\n";
cout << array + 20;
}
/cpp@mmis_js_bot #include <iostream>
using namespace std ;
main(){
int array[10] = {0};
cout << array[0] << "\n";
cout << array[10000000000];
}
array[10] 就是 *(array+10) ㄅ
是適合直播的時間了呢,等等又要開一個沒人看的直播了
array 是 address 吧
array + 20 只是個 address 沒有 *()
跟研究數學物理差不多吧,我都已經物理系了,其實不是很在乎有沒有實用性了 :(
我覺得總有一天我會在FB上發文抱怨台灣不重視基礎科學跟社會科學
我對於「學生應該要會寫程式」這點已經有點厭煩了 ==
Non-deterministic function !?
因為我在想阿,我伺服器想讓玩家做出武器時隨機化武器數值,我在思考該怎麼設計
請問如何用那顆爛骰子的結果uniform地分配到abcd
umm 例如一把槍有幾個數值
距離
彈藥量
裝填速度
穩定度
..之類的
例如,總值介於 0.75 到 1.25
然後在隨機分給四項
這樣的話,刷不出每項都滿植的神槍,也刷不出我什麼都沒有的爛槍
你能用微積分證明,分隔34.1%和13.6%的那兩條直線,剛好通過曲線上的兩個反曲點嗎?
是說standard distribution不需要特別弄吧
有顆爛骰
1 - 1/20
2 - 2/20
3 - 3/20
4 - 4/20
5 - 5/20
6 - 5/20
1. 擲兩次
2. 兩次點數一樣的話,再擲
3. 不一樣的話,使用第一次的結果
然後擲到123算0,擲到456算1
擲到的兩個位元00 A, 01 B, 10 C, 11 D
那種都算在沒有用 ISO 8601 或 Unix Time 上面惹啦zzz
我今年還想要發點技術文章,可是我沒腦汁,所以想去壓榨議程組(不
因為每個 log web 和 log bot 都會嘗試和所有成員連線