2020年6月14日 星期日

我要學會c語言1090530

1、https://noob.tw/c-language/

https://kopu.chat/   寫點科普

http://it-easy.tw/crand/   亂數

https://openhome.cc/Gossip/CGossip/Datatype.html 資料型態

https://matis.pixnet.net/blog/post/22918475

https://lovelinyj.pixnet.net/blog/post/46281003  例題100題

https://openhome.cc/Gossip/CGossip/OneDimArray.html   陣列

https://1applehealth.com/video/52860547

http://cc.cust.edu.tw/~ccchen/doc/C-Ch07.pdf

https://www.csie.ntu.edu.tw/~b98902112/cpp_and_algo/cpp02/escape_character.html

http://coding-frenzy.arping.me/

http://dhcp.tcgs.tc.edu.tw/c/p009.htm

https://kknews.cc/zh-tw/tech/6p35xrl.html

https://noob.tw/c-language-data-type/

http://it-easy.tw/crand/
https://www.itdaan.com/tw/8c41761f0d0833f018b0b415adf79398

https://blog.csdn.net/hsk_scnu/article/details/55827944

http://gundambox.github.io/2015/10/23/C%E8%AA%9E%E8%A8%80-%E9%99%A3%E5%88%97%E8%88%87%E5%AD%97%E4%B8%B2/

https://openhome.cc/Gossip/CGossip/PrintfScanf.html

https://www.youtube.com/playlist?list=PLY_qIufNHc293YnIjVeEwNDuqGo8y2Emx

字串
https://medium.com/@sharonpeng881003/c-%E8%AA%9E%E8%A8%80%E7%AD%86%E8%A8%98-%E5%AD%97%E4%B8%B2-strings-ffe70ee5f5b8

數科平台C
入門練習一級
8536基礎輸出一
#include<stdio.h>
int main(){
    puts("Hello KH");
    return 0;
}

8541基礎整數運算一
#include <stdio.h>
int main(){
int input;
scanf("%d", &input);
        printf("%d",2*input);
return 0;
}

8542基礎整數運算二
#include <stdio.h>
int main(){
int input;
scanf("%d", &input);
        printf("%d\n",input);
        printf("%d\n",input*input);
        printf("%d\n",input*input*input);
return 0;
}

8542基礎整數運算二
#include <stdio.h>
int main(){
int input;
scanf("%d", &input);
        printf("%d\n%d\n%d\n",input,input*input,input*input*input);
        return 0;
}

8543基礎整數運算三
#include<stdio.h>
int main(){
    int x;
    int y;
    scanf("%d",&x);
    scanf("%d",&y);
    printf("%d",3*x*y);
    return 0;
}


8544基礎整數運算四
#include<stdio.h>
int main(){
    int x;
    int y;
    scanf("%d",&x);
    scanf("%d",&y);
    printf("%d",-1*x*y);
    return 0;
}

8544基礎整數運算四
#include<stdio.h>
int main(){
    int x,y;
    scanf("%d%d",&x,&y);
    printf("%d",-1*x*y);
    return 0;
}


8545基礎整數運算五
#include<stdio.h>
int main(){
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    printf("%d\n%d",x*y/z,x*y%z);
    return 0;
}


基礎一級
3002數值之輸人與輸出操作
#include<stdio.h>
int main(){
    int x;
    scanf("%d",&x);
    printf("%d\n%d\n",x,x);
    return 0;
}




  • %c:以字元方式輸出
  • %d:10 進位整數輸出
  • %o:以 8 進位整數方式輸出
  • %u:無號整數輸出
  • %x%X:將整數以 16 進位方式輸出
  • %f:浮點數輸出
  • %e%E:使用科學記號顯示浮點數
  • %g%G:浮點數輸出,取 %f 或 %e%f 或 %E),看哪個表示精簡
  • %%:顯示 %
  • %s:字串輸出
  • %lulong unsigned 型態的整數
  • %p:指標型態

  • %d:顯示整數(十進位,d 是 decimal 的意思)
  • %o:顯示整數(八進位,octal)
  • %x:顯示整數(十六進位,heximal)
  • %c:顯示字元
  • %f:顯示浮點數
  • %e:顯示浮點數(以科學記號方式表示)
  • %lld:顯示長整數
  • %s:顯示字串
  • %%:顯示一個 % 符號

沒有留言:

張貼留言

Chrome教學5-建立桌面捷徑1110217

 建立桌面捷徑