Skip to content

Instantly share code, notes, and snippets.

View lbwanghr's full-sized avatar

Mightypants lbwanghr

View GitHub Profile
@lbwanghr
lbwanghr / Return Value and Parameters of Main Function
Last active April 5, 2024 01:40
We often encounter a situation where there are several parameters in main function, so how to use the executable file with parameter(s)?
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(int argc, char* argv[]){
if(argc!=3){
printf("Bad argument!\n");
return -1;
}
double a = atof(argv[1]);
double n = atof(argv[2]);
@lbwanghr
lbwanghr / Mastering Markdown
Last active July 26, 2018 01:49
This gist is to test several ordinary use of MarkDown
# This is `h1` head
## This is `h2` head
**Bolt Font**
__Bolt Font__
*Italic Font*
_Italic Font_
_Italic **Bolt** Font_
>I like pig. Dog admires human, cat despise human, while pig treat everything equally.
![Sample Image](https://daringfireball.net/graphics/markdown/mt_textformat_menu.png)
- list1