🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
21
node_modules/shiki/samples/cpp.sample
generated
vendored
Normal file
21
node_modules/shiki/samples/cpp.sample
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Working of implicit type-conversion
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
|
||||
int num_int;
|
||||
double num_double = 9.99;
|
||||
|
||||
// implicit conversion
|
||||
// assigning a double value to an int variable
|
||||
num_int = num_double;
|
||||
|
||||
cout << "num_int = " << num_int << endl;
|
||||
cout << "num_double = " << num_double << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// From https://www.programiz.com/cpp-programming/type-conversion
|
||||
Loading…
Add table
Add a link
Reference in a new issue